Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001029/0.001028, allocations: 173 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008335/0.0008335, allocations: 86.7 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.565e-05/2.578e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08722/0.08726, allocations: 47.57 MB / 370.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3356/0.423, allocations: 81.97 MB / 452.1 MB, free: 11.31 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000209/0.4232, allocations: 69.17 kB / 452.2 MB, free: 11.28 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06276/0.486, allocations: 33.42 MB / 485.6 MB, free: 11.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.486, allocations: 0 / 485.6 MB, free: 11.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.343e-05/0.4861, allocations: 12 kB / 485.6 MB, free: 11.34 MB / 362.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.001171/0.4873, allocations: 1.008 MB / 486.6 MB, free: 10.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/0.4873, allocations: 8.031 kB / 486.6 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.365e-05/0.4874, allocations: 58.48 kB / 486.7 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.4876, allocations: 94.92 kB / 486.8 MB, free: 10.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006243/0.4882, allocations: 411.6 kB / 487.2 MB, free: 9.633 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.117e-05/0.4882, allocations: 16 kB / 487.2 MB, free: 9.617 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.766e-05/0.4883, allocations: 24 kB / 487.2 MB, free: 9.594 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007629/0.4891, allocations: 498.3 kB / 487.7 MB, free: 9.098 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.4891, allocations: 4 kB / 487.7 MB, free: 9.094 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.167e-05/0.4892, allocations: 12 kB / 487.7 MB, free: 9.082 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.4892, allocations: 11.89 kB / 487.7 MB, free: 9.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004878/0.4897, allocations: 360 kB / 488.1 MB, free: 8.719 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.4911, allocations: 0.9378 MB / 489 MB, free: 7.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006113/0.4918, allocations: 0.4951 MB / 489.5 MB, free: 7.223 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005617/0.4923, allocations: 484.9 kB / 490 MB, free: 6.746 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.5e-05/0.4924, allocations: 4 kB / 490 MB, free: 6.742 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007777/0.4931, allocations: 0.6267 MB / 490.6 MB, free: 6.078 MB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 1.773e-06/0.4931, allocations: 0 / 490.6 MB, free: 6.078 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.00161/0.4948, allocations: 1.141 MB / 491.7 MB, free: 4.887 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001938/0.495, allocations: 283.3 kB / 492 MB, free: 4.555 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/0.4964, allocations: 1.019 MB / 493 MB, free: 3.527 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.117e-05/0.4964, allocations: 37.7 kB / 493.1 MB, free: 3.484 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.4966, allocations: 149.9 kB / 493.2 MB, free: 3.332 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.4967, allocations: 63.42 kB / 493.3 MB, free: 3.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.832e-05/0.4967, allocations: 23.88 kB / 493.3 MB, free: 3.246 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.4969, allocations: 342.8 kB / 493.6 MB, free: 2.902 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004604/0.4973, allocations: 343.8 kB / 494 MB, free: 2.566 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004513/0.4978, allocations: 351.7 kB / 494.3 MB, free: 2.223 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005063/0.4983, allocations: 491.7 kB / 494.8 MB, free: 1.699 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4983, allocations: 0 / 494.8 MB, free: 1.699 MB / 362.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001374/0.4997, allocations: 1.094 MB / 495.9 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001749/0.4999, allocations: 247.9 kB / 496.1 MB, free: 276 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.4999, allocations: 0 / 496.1 MB, free: 276 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.4999, allocations: 4 kB / 496.1 MB, free: 272 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.268e-05/0.4999, allocations: 0 / 496.1 MB, free: 272 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.4999, allocations: 3.938 kB / 496.1 MB, free: 268 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/0.5003, allocations: 51.88 kB / 496.2 MB, free: 216 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001448/0.5004, allocations: 123.9 kB / 496.3 MB, free: 92 kB / 362.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.00036/0.5008, allocations: 414.9 kB / 496.7 MB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.845e-05/0.5009, allocations: 83.06 kB / 496.8 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002112/0.5011, allocations: 151.7 kB / 496.9 MB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-06/0.5011, allocations: 4 kB / 497 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.5011, allocations: 0 / 497 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.5011, allocations: 0 / 497 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002341/0.5035, allocations: 1.938 MB / 498.9 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.5035, allocations: 4 kB / 498.9 MB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.624e-06/0.5035, allocations: 3.938 kB / 498.9 MB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.5035, allocations: 0 / 498.9 MB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-05/0.5036, allocations: 35.98 kB / 498.9 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.5036, allocations: 4 kB / 498.9 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.5036, allocations: 0 / 498.9 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001642/0.5053, allocations: 1.361 MB / 0.4886 GB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007856/0.5061, allocations: 0.562 MB / 0.4891 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001398/0.5062, allocations: 55.97 kB / 0.4892 GB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002781/0.5065, allocations: 35.97 kB / 0.4892 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003858/0.5069, allocations: 235.7 kB / 0.4894 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001375/0.507, allocations: 131.9 kB / 0.4896 GB, free: 10.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001064/0.5081, allocations: 0.8539 MB / 0.4904 GB, free: 10 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5081, allocations: 0 / 0.4904 GB, free: 10 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000389/0.5085, allocations: 116 kB / 0.4905 GB, free: 9.891 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) * 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.002067/0.5106, allocations: 1.997 MB / 0.4925 GB, free: 7.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001551/0.5122, allocations: 1.523 MB / 0.4939 GB, free: 6.207 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.5122, allocations: 0 / 0.4939 GB, free: 6.207 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009494/0.5131, allocations: 1.132 MB / 0.495 GB, free: 4.988 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.5141, allocations: 256.2 kB / 0.4953 GB, free: 4.742 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002689/0.5169, allocations: 1.866 MB / 0.4971 GB, free: 2.832 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006814/0.5175, allocations: 1.039 MB / 0.4981 GB, free: 1.762 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000103/0.5177, allocations: 33.47 kB / 0.4982 GB, free: 1.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.839e-05/0.5178, allocations: 75.41 kB / 0.4982 GB, free: 1.656 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.5178, allocations: 0 / 0.4982 GB, free: 1.656 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02733/0.5451, allocations: 15.44 MB / 0.5133 GB, free: 1.941 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/0.5453, allocations: 147.3 kB / 0.5135 GB, free: 1.719 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.962/2.507, allocations: 0 / 0.5135 GB, free: 1.719 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGL.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat does not exist to compare? outputFormat=mat