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.001597/0.001597, allocations: 180 kB / 17.01 MB, free: 5.125 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.578/1.578, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0009176/0.0009175, allocations: 92.97 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002746/0.0002747, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2932, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1069/0.4002, allocations: 82.06 MB / 458 MB, free: 14.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/0.4005, allocations: 71.95 kB / 458 MB, free: 14.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06855/0.4691, allocations: 33.25 MB / 491.3 MB, free: 13.28 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.847e-06/0.4691, allocations: 0 / 491.3 MB, free: 13.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.143e-05/0.4692, allocations: 11.94 kB / 491.3 MB, free: 13.27 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.001336/0.4705, allocations: 1.135 MB / 492.4 MB, free: 12.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.4706, allocations: 11.97 kB / 492.4 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.195e-05/0.4707, allocations: 62.55 kB / 492.5 MB, free: 11.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.4708, allocations: 95 kB / 492.6 MB, free: 11.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006553/0.4715, allocations: 407.6 kB / 493 MB, free: 11.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.916e-05/0.4715, allocations: 16 kB / 493 MB, free: 11.4 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.27e-05/0.4716, allocations: 28 kB / 493 MB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008239/0.4724, allocations: 0.4928 MB / 493.5 MB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.4724, allocations: 0 / 493.5 MB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.468e-05/0.4725, allocations: 12 kB / 493.5 MB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.4725, allocations: 7.953 kB / 493.6 MB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005389/0.4731, allocations: 368 kB / 493.9 MB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001704/0.4748, allocations: 0.9301 MB / 494.8 MB, free: 9.516 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006912/0.4755, allocations: 0.5025 MB / 495.3 MB, free: 9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.278e-05/0.4755, allocations: 4 kB / 495.3 MB, free: 8.996 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008233/0.4763, allocations: 0.6383 MB / 496 MB, free: 8.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 2.234e-06/0.4764, allocations: 0 / 496 MB, free: 8.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002366/0.4787, allocations: 1.758 MB / 497.7 MB, free: 6.457 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001895/0.4789, allocations: 275.3 kB / 498 MB, free: 6.133 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001457/0.4804, allocations: 1.027 MB / 499 MB, free: 5.098 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.412e-05/0.4805, allocations: 41.7 kB / 499.1 MB, free: 5.051 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.4806, allocations: 145.9 kB / 499.2 MB, free: 4.902 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.61e-05/0.4807, allocations: 71.19 kB / 499.3 MB, free: 4.832 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.668e-05/0.4807, allocations: 8 kB / 499.3 MB, free: 4.824 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.4809, allocations: 346.8 kB / 499.6 MB, free: 4.477 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005076/0.4814, allocations: 347.7 kB / 500 MB, free: 4.137 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005284/0.4819, allocations: 376.6 kB / 0.4886 GB, free: 3.762 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000538/0.4825, allocations: 0.4969 MB / 0.4891 GB, free: 3.219 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.4825, allocations: 0 / 0.4891 GB, free: 3.219 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001486/0.484, allocations: 1.109 MB / 0.4902 GB, free: 2.062 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002/0.4842, allocations: 239.9 kB / 0.4904 GB, free: 1.785 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.4842, allocations: 0 / 0.4904 GB, free: 1.785 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.4842, allocations: 11.92 kB / 0.4904 GB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.046e-05/0.4843, allocations: 4 kB / 0.4904 GB, free: 1.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.4843, allocations: 4 kB / 0.4904 GB, free: 1.766 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003123/0.4846, allocations: 43.88 kB / 0.4905 GB, free: 1.723 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001638/0.4848, allocations: 127.9 kB / 0.4906 GB, free: 1.598 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.0009412/0.4857, allocations: 0.7641 MB / 0.4913 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.4859, allocations: 87.06 kB / 0.4914 GB, free: 0.6953 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000212/0.4861, allocations: 147.5 kB / 0.4916 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.4861, allocations: 0 / 0.4916 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.4861, allocations: 4 kB / 0.4916 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.4861, allocations: 0 / 0.4916 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2222/0.7083, allocations: 1.945 MB / 0.4935 GB, free: 108 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.7084, allocations: 0 / 0.4935 GB, free: 108 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.966e-05/0.7084, allocations: 1.219 kB / 0.4935 GB, free: 108 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.705e-06/0.7084, allocations: 0.5938 kB / 0.4935 GB, free: 108 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.089e-05/0.7085, allocations: 30.98 kB / 0.4935 GB, free: 108 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.7085, allocations: 0.5312 kB / 0.4935 GB, free: 108 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.7085, allocations: 7.516 kB / 0.4935 GB, free: 108 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001942/0.7105, allocations: 1.376 MB / 0.4949 GB, free: 107.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000965/0.7114, allocations: 0.5598 MB / 0.4954 GB, free: 107.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001604/0.7116, allocations: 60.92 kB / 0.4955 GB, free: 107.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003029/0.7119, allocations: 34.52 kB / 0.4955 GB, free: 107.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003924/0.7123, allocations: 244.4 kB / 0.4957 GB, free: 107.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001709/0.7125, allocations: 126.9 kB / 0.4958 GB, free: 107.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001106/0.7136, allocations: 0.8588 MB / 0.4967 GB, free: 107.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.7136, allocations: 1.781 kB / 0.4967 GB, free: 107.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004739/0.7141, allocations: 120.2 kB / 0.4968 GB, free: 107.3 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.001999/0.7161, allocations: 2.007 MB / 0.4988 GB, free: 106.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.7178, allocations: 1.535 MB / 0.5003 GB, free: 105.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.7178, allocations: 0 / 0.5003 GB, free: 105.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.7188, allocations: 1.148 MB / 0.5014 GB, free: 105.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009027/0.7197, allocations: 267.3 kB / 0.5016 GB, free: 105.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005718/0.7254, allocations: 4.802 MB / 0.5063 GB, free: 103 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005945/0.7261, allocations: 1.033 MB / 0.5073 GB, free: 102.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001668/0.7262, allocations: 34.36 kB / 0.5074 GB, free: 102.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.904e-05/0.7263, allocations: 72.22 kB / 0.5074 GB, free: 102.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.252e-06/0.7263, allocations: 0 / 0.5074 GB, free: 102.1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02589/0.7522, allocations: 15.43 MB / 0.5225 GB, free: 91.98 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001463/0.7524, allocations: 186.8 kB / 0.5227 GB, free: 91.72 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.083/2.836, allocations: 0 / 0.5227 GB, free: 91.72 MB / 378.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