Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 221.5 MB / 230.3 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008165/0.000817, allocations: 88.05 kB / 281.2 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.878e-05/1.893e-05, allocations: 4 kB / 337.1 MB, free: 9.906 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.117, allocations: 50.41 MB / 387.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4021/0.5192, allocations: 82.23 MB / 469.8 MB, free: 12.44 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/0.5195, allocations: 69.66 kB / 469.9 MB, free: 12.37 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06842/0.5879, allocations: 33.56 MB / 0.4916 GB, free: 10.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.588, allocations: 0 / 0.4916 GB, free: 10.85 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.374e-05/0.588, allocations: 12 kB / 0.4916 GB, free: 10.84 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.00146/0.5895, allocations: 1.014 MB / 0.4926 GB, free: 9.738 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.5896, allocations: 8.031 kB / 0.4926 GB, free: 9.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002311/0.5898, allocations: 86.97 kB / 0.4927 GB, free: 9.645 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006664/0.5905, allocations: 407.7 kB / 0.4931 GB, free: 9.207 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.991e-05/0.5905, allocations: 19.94 kB / 0.4931 GB, free: 9.188 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.775e-05/0.5907, allocations: 20 kB / 0.4931 GB, free: 9.168 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005418/0.5912, allocations: 344.1 kB / 0.4935 GB, free: 8.828 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006967/0.5919, allocations: 478.2 kB / 0.4939 GB, free: 8.355 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.5919, allocations: 0 / 0.4939 GB, free: 8.355 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.936e-05/0.592, allocations: 19.97 kB / 0.4939 GB, free: 8.336 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.592, allocations: 0 / 0.4939 GB, free: 8.336 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001525/0.5935, allocations: 0.8911 MB / 0.4948 GB, free: 7.406 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005735/0.5941, allocations: 490.6 kB / 0.4953 GB, free: 6.914 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000537/0.5947, allocations: 480.9 kB / 0.4957 GB, free: 6.441 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.058e-05/0.5947, allocations: 0 / 0.4957 GB, free: 6.441 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007343/0.5954, allocations: 0.6305 MB / 0.4964 GB, free: 5.773 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.953e-06/0.5955, allocations: 0 / 0.4964 GB, free: 5.773 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001369/0.5968, allocations: 0.8829 MB / 0.4972 GB, free: 4.879 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001865/0.597, allocations: 283.3 kB / 0.4975 GB, free: 4.547 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001607/0.5986, allocations: 0.9761 MB / 0.4984 GB, free: 3.562 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.305e-05/0.5987, allocations: 41.7 kB / 0.4985 GB, free: 3.516 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.5989, allocations: 138 kB / 0.4986 GB, free: 3.379 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.599, allocations: 71.22 kB / 0.4987 GB, free: 3.309 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.442e-05/0.599, allocations: 12 kB / 0.4987 GB, free: 3.297 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.5992, allocations: 346.8 kB / 0.499 GB, free: 2.949 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004342/0.5996, allocations: 335.7 kB / 0.4993 GB, free: 2.621 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004035/0.6, allocations: 327.8 kB / 0.4997 GB, free: 2.301 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003059/0.6003, allocations: 247.9 kB / 0.4999 GB, free: 2.059 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.6004, allocations: 4 kB / 0.4999 GB, free: 2.055 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001174/0.6015, allocations: 0.817 MB / 0.5007 GB, free: 1.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002063/0.6018, allocations: 247.8 kB / 0.5009 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.6018, allocations: 0 / 0.5009 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/0.6018, allocations: 3.953 kB / 0.5009 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.346e-05/0.6018, allocations: 4 kB / 0.5009 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.6019, allocations: 0 / 0.5009 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003634/0.6022, allocations: 43.88 kB / 0.501 GB, free: 0.8945 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000166/0.6024, allocations: 127.9 kB / 0.5011 GB, free: 0.7695 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 7 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003957/0.6028, allocations: 414 kB / 0.5015 GB, free: 320 kB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001349/0.6042, allocations: 0.9456 MB / 0.5024 GB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.6043, allocations: 91.02 kB / 0.5025 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002873/0.6046, allocations: 152 kB / 0.5026 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.6046, allocations: 4 kB / 0.5027 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.6046, allocations: 3.938 kB / 0.5027 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.6046, allocations: 0 / 0.5027 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001994/0.6066, allocations: 1.599 MB / 0.5042 GB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.6067, allocations: 3.984 kB / 0.5042 GB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.035e-05/0.6067, allocations: 0 / 0.5042 GB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.85e-06/0.6067, allocations: 3.953 kB / 0.5042 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-05/0.6067, allocations: 31.98 kB / 0.5043 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.6068, allocations: 4 kB / 0.5043 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.6068, allocations: 4 kB / 0.5043 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001329/0.6081, allocations: 1.049 MB / 0.5053 GB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007329/0.6088, allocations: 0.5582 MB / 0.5058 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001562/0.609, allocations: 63.92 kB / 0.5059 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003328/0.6094, allocations: 31.88 kB / 0.5059 GB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003701/0.6097, allocations: 239.7 kB / 0.5062 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001369/0.6099, allocations: 128 kB / 0.5063 GB, free: 11.32 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001055/0.6109, allocations: 0.8109 MB / 0.5071 GB, free: 10.51 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.611, allocations: 0 / 0.5071 GB, free: 10.51 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004588/0.6114, allocations: 119.9 kB / 0.5072 GB, free: 10.39 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGL.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 7 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001824/0.6132, allocations: 1.702 MB / 0.5088 GB, free: 8.668 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00151/0.6148, allocations: 1.472 MB / 0.5103 GB, free: 7.109 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.6148, allocations: 0 / 0.5103 GB, free: 7.109 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000993/0.6158, allocations: 1.128 MB / 0.5114 GB, free: 5.895 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/0.6169, allocations: 251.1 kB / 0.5116 GB, free: 5.652 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003221/0.6202, allocations: 1.857 MB / 0.5134 GB, free: 3.754 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007925/0.621, allocations: 1.038 MB / 0.5145 GB, free: 2.688 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001668/0.6212, allocations: 33.81 kB / 0.5145 GB, free: 2.652 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.6213, allocations: 75.41 kB / 0.5146 GB, free: 2.578 MB / 394.7 MB Notification: Performance of SimCode: time 1.242e-06/0.6213, allocations: 4 kB / 0.5146 GB, free: 2.574 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03676/0.6581, allocations: 14.74 MB / 0.529 GB, free: 3.621 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002879/0.6584, allocations: 139.6 kB / 0.5291 GB, free: 3.422 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.982/2.64, allocations: 0 / 0.5291 GB, free: 3.422 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGL.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat does not exist to compare? outputFormat=mat