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.001503/0.001503, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.133/2.133, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001143/0.001143, allocations: 82.77 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.925e-05/2.92e-05, allocations: 4 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3294, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1341/0.4635, allocations: 81.28 MB / 443.7 MB, free: 4.945 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002888/0.4639, allocations: 75.89 kB / 443.8 MB, free: 4.871 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1003/0.5642, allocations: 26.63 MB / 470.4 MB, free: 10.36 MB / 363.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.5643, allocations: 3.938 kB / 470.4 MB, free: 10.36 MB / 363.1 MB Notification: Performance of Transformations before backend: time 3.806e-05/0.5643, allocations: 12 kB / 470.4 MB, free: 10.35 MB / 363.1 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.001655/0.566, allocations: 1.014 MB / 471.4 MB, free: 9.246 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/0.5661, allocations: 16.03 kB / 471.5 MB, free: 9.23 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002596/0.5664, allocations: 83.06 kB / 471.5 MB, free: 9.148 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009699/0.5673, allocations: 419.4 kB / 471.9 MB, free: 8.699 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.653e-05/0.5674, allocations: 16 kB / 472 MB, free: 8.684 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.5675, allocations: 20 kB / 472 MB, free: 8.664 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008539/0.5684, allocations: 340.1 kB / 472.3 MB, free: 8.328 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/0.5695, allocations: 478.2 kB / 472.8 MB, free: 7.855 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.5696, allocations: 0 / 472.8 MB, free: 7.855 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.381e-05/0.5697, allocations: 15.92 kB / 472.8 MB, free: 7.84 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.5697, allocations: 7.984 kB / 472.8 MB, free: 7.832 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00236/0.5721, allocations: 0.8757 MB / 473.7 MB, free: 6.918 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009953/0.5731, allocations: 498.6 kB / 474.2 MB, free: 6.418 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008924/0.574, allocations: 476.9 kB / 474.6 MB, free: 5.949 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.5741, allocations: 4 kB / 474.6 MB, free: 5.945 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001246/0.5753, allocations: 0.6266 MB / 475.3 MB, free: 5.281 MB / 363.1 MB Notification: Performance of pre-optimization done (n=32): time 6.552e-06/0.5753, allocations: 112 / 475.3 MB, free: 5.281 MB / 363.1 MB Notification: Performance of matching and sorting (n=32): time 0.002294/0.5777, allocations: 0.8791 MB / 476.1 MB, free: 4.395 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002349/0.5779, allocations: 283.3 kB / 476.4 MB, free: 4.062 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002265/0.5802, allocations: 0.98 MB / 477.4 MB, free: 3.074 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001694/0.5804, allocations: 33.7 kB / 477.4 MB, free: 3.035 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001651/0.5806, allocations: 204.3 kB / 477.6 MB, free: 2.836 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001595/0.5808, allocations: 63.25 kB / 477.7 MB, free: 2.773 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.996e-05/0.5808, allocations: 12 kB / 477.7 MB, free: 2.762 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.581, allocations: 326.8 kB / 478 MB, free: 2.434 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007761/0.5818, allocations: 335.8 kB / 478.4 MB, free: 2.105 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000737/0.5826, allocations: 334.2 kB / 478.7 MB, free: 1.781 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005537/0.5831, allocations: 243.8 kB / 478.9 MB, free: 1.543 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.5831, allocations: 0 / 478.9 MB, free: 1.543 MB / 363.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00203/0.5852, allocations: 0.8132 MB / 479.7 MB, free: 0.7227 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002672/0.5855, allocations: 247.9 kB / 480 MB, free: 448 kB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.575e-06/0.5855, allocations: 0 / 480 MB, free: 448 kB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.5855, allocations: 0 / 480 MB, free: 448 kB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.96e-05/0.5856, allocations: 7.938 kB / 480 MB, free: 440 kB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.5856, allocations: 0 / 480 MB, free: 440 kB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005529/0.5861, allocations: 43.81 kB / 480 MB, free: 396 kB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002273/0.5864, allocations: 127.9 kB / 480.1 MB, free: 268 kB / 363.1 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.0006148/0.587, allocations: 406 kB / 480.5 MB, free: 15.81 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00239/0.5894, allocations: 0.9572 MB / 481.5 MB, free: 14.85 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000186/0.5896, allocations: 91.06 kB / 481.6 MB, free: 14.76 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005033/0.5902, allocations: 152 kB / 481.7 MB, free: 14.6 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.5902, allocations: 0 / 481.7 MB, free: 14.6 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.5902, allocations: 0 / 481.7 MB, free: 14.6 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.5902, allocations: 4 kB / 481.7 MB, free: 14.6 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003499/0.5937, allocations: 1.595 MB / 483.3 MB, free: 12.96 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.5938, allocations: 0 / 483.3 MB, free: 12.96 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.148e-05/0.5938, allocations: 3.938 kB / 483.3 MB, free: 12.95 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.184e-06/0.5938, allocations: 0 / 483.3 MB, free: 12.95 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.5939, allocations: 31.98 kB / 483.4 MB, free: 12.92 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.594, allocations: 4 kB / 483.4 MB, free: 12.92 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.594, allocations: 0 / 483.4 MB, free: 12.92 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002417/0.5964, allocations: 1.064 MB / 484.4 MB, free: 11.84 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001519/0.5979, allocations: 0.5542 MB / 485 MB, free: 11.26 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002591/0.5982, allocations: 59.97 kB / 485.1 MB, free: 11.2 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005395/0.5988, allocations: 27.97 kB / 485.1 MB, free: 11.18 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007058/0.5995, allocations: 235.7 kB / 485.3 MB, free: 10.95 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002262/0.5997, allocations: 127.9 kB / 485.4 MB, free: 10.82 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.001829/0.6016, allocations: 0.8148 MB / 486.3 MB, free: 10.01 MB / 379.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6016, allocations: 3.938 kB / 486.3 MB, free: 10.01 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.0007897/0.6024, allocations: 124 kB / 486.4 MB, free: 9.887 MB / 379.1 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.003021/0.6054, allocations: 1.693 MB / 488.1 MB, free: 8.172 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.002508/0.608, allocations: 1.48 MB / 489.5 MB, free: 6.605 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.6081, allocations: 0 / 489.5 MB, free: 6.605 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001711/0.6098, allocations: 1.125 MB / 490.7 MB, free: 5.395 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001779/0.6116, allocations: 256.9 kB / 490.9 MB, free: 5.145 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005054/0.6167, allocations: 1.925 MB / 492.8 MB, free: 3.172 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001124/0.6179, allocations: 1.027 MB / 493.9 MB, free: 2.117 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001569/0.618, allocations: 83.34 kB / 494 MB, free: 2.035 MB / 379.1 MB Notification: Performance of SimCode: time 9.81e-07/0.618, allocations: 0 / 494 MB, free: 2.035 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.727/3.345, allocations: 8.888 MB / 0.4911 GB, free: 9.016 MB / 395.1 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