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.0009846/0.0009845, allocations: 180 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009166/0.0009165, allocations: 97.97 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002675/0.0002675, allocations: 8 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.2391, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.113/0.3522, allocations: 82.98 MB / 484.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/0.3525, allocations: 73.95 kB / 484.6 MB, free: 13.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2394/0.5919, allocations: 33.59 MB / 0.5061 GB, free: 99.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.206e-06/0.5919, allocations: 0.5312 kB / 0.5061 GB, free: 99.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.559e-05/0.592, allocations: 11.39 kB / 0.5061 GB, free: 99.05 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.002095/0.5941, allocations: 1.143 MB / 0.5072 GB, free: 98.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/0.5941, allocations: 9.844 kB / 0.5072 GB, free: 98.29 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002175/0.5944, allocations: 54.73 kB / 0.5073 GB, free: 98.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000308/0.5947, allocations: 86.19 kB / 0.5073 GB, free: 98.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.5958, allocations: 411.2 kB / 0.5077 GB, free: 97.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.321e-05/0.5959, allocations: 19.52 kB / 0.5077 GB, free: 97.94 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.5961, allocations: 24.47 kB / 0.5078 GB, free: 97.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.5972, allocations: 0.5081 MB / 0.5083 GB, free: 97.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.5972, allocations: 0 / 0.5083 GB, free: 97.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.754e-05/0.5973, allocations: 14.48 kB / 0.5083 GB, free: 97.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.5973, allocations: 3.719 kB / 0.5083 GB, free: 97.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000554/0.5979, allocations: 369 kB / 0.5086 GB, free: 97.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00183/0.5997, allocations: 0.9207 MB / 0.5095 GB, free: 97.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005801/0.6003, allocations: 0.5043 MB / 0.51 GB, free: 97.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.828e-06/0.6003, allocations: 112 / 0.51 GB, free: 97.53 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007484/0.6011, allocations: 0.6445 MB / 0.5107 GB, free: 97.35 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 2.074e-06/0.6011, allocations: 0 / 0.5107 GB, free: 97.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002075/0.6032, allocations: 1.749 MB / 0.5124 GB, free: 96.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.6033, allocations: 281.7 kB / 0.5126 GB, free: 96.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001409/0.6047, allocations: 1.021 MB / 0.5136 GB, free: 95.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.478e-05/0.6048, allocations: 43.73 kB / 0.5137 GB, free: 95.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.6049, allocations: 147.8 kB / 0.5138 GB, free: 95.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.426e-05/0.605, allocations: 75.14 kB / 0.5139 GB, free: 95.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.92e-05/0.605, allocations: 11.72 kB / 0.5139 GB, free: 95.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.117e-05/0.6051, allocations: 347.2 kB / 0.5142 GB, free: 95.31 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004524/0.6056, allocations: 345.5 kB / 0.5146 GB, free: 95.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004438/0.606, allocations: 373.7 kB / 0.5149 GB, free: 95.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004609/0.6065, allocations: 0.4906 MB / 0.5154 GB, free: 94.74 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.6065, allocations: 0 / 0.5154 GB, free: 94.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0013/0.6078, allocations: 1.12 MB / 0.5165 GB, free: 94.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000137/0.608, allocations: 244.2 kB / 0.5167 GB, free: 93.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.608, allocations: 7.172 kB / 0.5167 GB, free: 93.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.608, allocations: 0 / 0.5167 GB, free: 93.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.713e-05/0.6081, allocations: 7.406 kB / 0.5167 GB, free: 93.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.301e-06/0.6081, allocations: 0 / 0.5167 GB, free: 93.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003346/0.6084, allocations: 38.89 kB / 0.5168 GB, free: 93.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.6085, allocations: 123.4 kB / 0.5169 GB, free: 93.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dLATREGL.delay.inertialDelaySensitive[2].y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,$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,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,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 () * Number of clocked 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.0007439/0.6093, allocations: 0.7694 MB / 0.5176 GB, free: 93.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/0.6094, allocations: 88.59 kB / 0.5177 GB, free: 93.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002246/0.6097, allocations: 154.3 kB / 0.5179 GB, free: 93.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.6097, allocations: 0 / 0.5179 GB, free: 93.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.6097, allocations: 3.75 kB / 0.5179 GB, free: 93.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.6097, allocations: 2.953 kB / 0.5179 GB, free: 93.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00227/0.612, allocations: 1.939 MB / 0.5198 GB, free: 92.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.612, allocations: 4 kB / 0.5198 GB, free: 92.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.138e-05/0.612, allocations: 3.844 kB / 0.5198 GB, free: 92.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.612, allocations: 3.188 kB / 0.5198 GB, free: 92.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.495e-05/0.6121, allocations: 34.89 kB / 0.5198 GB, free: 92.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.6121, allocations: 0 / 0.5198 GB, free: 92.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.6121, allocations: 0 / 0.5198 GB, free: 92.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.6136, allocations: 1.379 MB / 0.5212 GB, free: 91.01 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008079/0.6144, allocations: 0.5536 MB / 0.5217 GB, free: 90.53 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001617/0.6146, allocations: 61.47 kB / 0.5218 GB, free: 90.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002964/0.6149, allocations: 31.88 kB / 0.5218 GB, free: 90.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003323/0.6152, allocations: 238.8 kB / 0.522 GB, free: 90.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/0.6154, allocations: 130.4 kB / 0.5221 GB, free: 90.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009926/0.6164, allocations: 0.8608 MB / 0.523 GB, free: 89.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6164, allocations: 0 / 0.523 GB, free: 89.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004513/0.6168, allocations: 124 kB / 0.5231 GB, free: 89.25 MB / 378.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) * Number of clocked states: 0 () * 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.001914/0.6188, allocations: 2.013 MB / 0.5251 GB, free: 87.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.6204, allocations: 1.528 MB / 0.5266 GB, free: 85.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.6204, allocations: 0 / 0.5266 GB, free: 85.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000942/0.6214, allocations: 1.156 MB / 0.5277 GB, free: 84.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/0.6226, allocations: 251.2 kB / 0.5279 GB, free: 84.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006919/0.6295, allocations: 4.798 MB / 0.5326 GB, free: 79.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000782/0.6304, allocations: 1.041 MB / 0.5336 GB, free: 78.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002197/0.6306, allocations: 37.5 kB / 0.5337 GB, free: 78.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.324e-05/0.6307, allocations: 67.42 kB / 0.5337 GB, free: 78.07 MB / 378.7 MB Notification: Performance of SimCode: time 1.442e-06/0.6307, allocations: 0 / 0.5337 GB, free: 78.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02753/0.6583, allocations: 15.42 MB / 0.5488 GB, free: 62.68 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001867/0.6585, allocations: 174 kB / 0.549 GB, free: 62.44 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.16/2.819, allocations: 3.75 kB / 0.549 GB, free: 62.44 MB / 378.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