Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREG.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.DLATREG,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREG",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.002207/0.002207, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.257/2.257, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001129/0.001128, allocations: 89.78 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.54e-05/3.551e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09782/0.09789, allocations: 47.58 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4138/0.5117, allocations: 81.94 MB / 451.1 MB, free: 10.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/0.512, allocations: 66.72 kB / 451.2 MB, free: 10.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09605/0.6081, allocations: 26.82 MB / 478 MB, free: 2.238 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.6082, allocations: 3.938 kB / 478 MB, free: 2.234 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.359e-05/0.6082, allocations: 8 kB / 478 MB, free: 2.227 MB / 346.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.001617/0.6098, allocations: 1.012 MB / 479 MB, free: 1.125 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.6099, allocations: 8.031 kB / 479 MB, free: 1.117 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001836/0.6101, allocations: 58.55 kB / 479.1 MB, free: 1.051 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002181/0.6103, allocations: 83.06 kB / 479.2 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000969/0.6113, allocations: 419.5 kB / 479.6 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.382e-05/0.6114, allocations: 19.98 kB / 479.6 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.6115, allocations: 28 kB / 479.6 MB, free: 480 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.6128, allocations: 494.3 kB / 480.1 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.6129, allocations: 7.953 kB / 480.1 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-05/0.613, allocations: 12 kB / 480.1 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.613, allocations: 0 / 480.1 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000915/0.6139, allocations: 364 kB / 480.5 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002461/0.6164, allocations: 0.9185 MB / 481.4 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.6176, allocations: 0.4947 MB / 481.9 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001009/0.6187, allocations: 488.9 kB / 482.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.6187, allocations: 4 kB / 482.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001339/0.6201, allocations: 0.6345 MB / 483 MB, free: 12.97 MB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 3.847e-06/0.6201, allocations: 0 / 483 MB, free: 12.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.00283/0.6229, allocations: 1.137 MB / 484.2 MB, free: 11.78 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002461/0.6232, allocations: 283.3 kB / 484.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002599/0.6258, allocations: 1.015 MB / 485.5 MB, free: 10.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002006/0.6261, allocations: 49.69 kB / 485.5 MB, free: 10.37 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001781/0.6263, allocations: 196.4 kB / 485.7 MB, free: 10.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.6265, allocations: 63.25 kB / 485.8 MB, free: 10.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.404e-05/0.6266, allocations: 15.98 kB / 485.8 MB, free: 10.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.6267, allocations: 322.8 kB / 486.1 MB, free: 9.773 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008717/0.6276, allocations: 347.8 kB / 486.4 MB, free: 9.434 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008495/0.6285, allocations: 347.6 kB / 486.8 MB, free: 9.094 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008889/0.6294, allocations: 491.7 kB / 487.2 MB, free: 8.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.6294, allocations: 7.938 kB / 487.3 MB, free: 8.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002555/0.632, allocations: 1.087 MB / 488.3 MB, free: 7.426 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002838/0.6323, allocations: 243.9 kB / 488.6 MB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.6324, allocations: 0 / 488.6 MB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.6324, allocations: 0 / 488.6 MB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.126e-05/0.6324, allocations: 0 / 488.6 MB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.6325, allocations: 4 kB / 488.6 MB, free: 7.141 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006253/0.6331, allocations: 51.73 kB / 488.6 MB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002398/0.6334, allocations: 127.9 kB / 488.8 MB, free: 6.965 MB / 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.dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].x,$PRE.dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].x,$PRE.dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.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.0005806/0.6339, allocations: 414.9 kB / 489.2 MB, free: 6.508 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002247/0.6342, allocations: 87.06 kB / 489.2 MB, free: 6.422 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004816/0.6347, allocations: 147.7 kB / 489.4 MB, free: 6.277 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.6347, allocations: 4 kB / 489.4 MB, free: 6.273 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.6347, allocations: 0 / 489.4 MB, free: 6.273 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.6347, allocations: 4 kB / 489.4 MB, free: 6.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004388/0.6391, allocations: 1.931 MB / 491.3 MB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.6392, allocations: 4 kB / 491.3 MB, free: 4.234 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.004e-05/0.6392, allocations: 0 / 491.3 MB, free: 4.234 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.078e-05/0.6392, allocations: 4 kB / 491.3 MB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001118/0.6394, allocations: 31.98 kB / 491.4 MB, free: 4.199 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.6394, allocations: 0 / 491.4 MB, free: 4.199 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.6394, allocations: 0 / 491.4 MB, free: 4.199 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003027/0.6424, allocations: 1.369 MB / 492.7 MB, free: 2.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0016/0.6441, allocations: 0.5543 MB / 493.3 MB, free: 2.195 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002862/0.6444, allocations: 59.97 kB / 493.3 MB, free: 2.137 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005853/0.645, allocations: 39.95 kB / 493.4 MB, free: 2.098 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006819/0.6457, allocations: 235.7 kB / 493.6 MB, free: 1.867 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002518/0.646, allocations: 131.9 kB / 493.7 MB, free: 1.738 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002118/0.6481, allocations: 0.8461 MB / 494.6 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.52e-07/0.6481, allocations: 0 / 494.6 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008652/0.649, allocations: 120 kB / 494.7 MB, free: 0.7773 MB / 362.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,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREG.dLATR.dataOut[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.next_assign_val[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.nextstate[1],dLATREG.dLATR.reset_flag,dLATREG.dLATR.enable_flag,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREG.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.003692/0.6527, allocations: 1.993 MB / 496.7 MB, free: 14.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002814/0.6556, allocations: 1.512 MB / 498.2 MB, free: 13.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.6557, allocations: 3.938 kB / 498.2 MB, free: 13.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001847/0.6575, allocations: 1.132 MB / 499.4 MB, free: 11.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001926/0.6595, allocations: 267.8 kB / 499.6 MB, free: 11.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005482/0.665, allocations: 1.945 MB / 0.4898 GB, free: 9.641 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001183/0.6663, allocations: 1.039 MB / 0.4908 GB, free: 8.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000155/0.6664, allocations: 67.42 kB / 0.4909 GB, free: 8.504 MB / 378.7 MB Notification: Performance of SimCode: time 1.653e-06/0.6665, allocations: 0 / 0.4909 GB, free: 8.504 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.78/3.446, allocations: 8.92 MB / 0.4996 GB, free: 15.43 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREG_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREG.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat