Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_3_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.00164/0.00164, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.409/1.409, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000818/0.0008179, allocations: 87.95 kB / 262.5 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.864e-05/1.865e-05, allocations: 8 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09786/0.09789, allocations: 47.58 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2911/0.389, allocations: 81.53 MB / 444.7 MB, free: 13.84 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001962/0.3893, allocations: 65.03 kB / 444.8 MB, free: 13.81 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0496/0.4389, allocations: 26.65 MB / 471.4 MB, free: 8.242 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.4389, allocations: 0 / 471.4 MB, free: 8.242 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.118e-05/0.4389, allocations: 12 kB / 471.4 MB, free: 8.23 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.001076/0.44, allocations: 1.009 MB / 472.4 MB, free: 7.184 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.4401, allocations: 12.03 kB / 472.4 MB, free: 7.172 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001319/0.4402, allocations: 83.06 kB / 472.5 MB, free: 7.09 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005528/0.4408, allocations: 412.3 kB / 472.9 MB, free: 6.68 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.921e-05/0.4408, allocations: 19.98 kB / 472.9 MB, free: 6.66 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.104e-05/0.4409, allocations: 27.5 kB / 473 MB, free: 6.637 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004625/0.4414, allocations: 343.1 kB / 473.3 MB, free: 6.402 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006395/0.442, allocations: 470.8 kB / 473.8 MB, free: 6.047 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.442, allocations: 0 / 473.8 MB, free: 6.047 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.977e-05/0.4421, allocations: 11.31 kB / 473.8 MB, free: 6.039 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.842e-06/0.4421, allocations: 4 kB / 473.8 MB, free: 6.035 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001304/0.4434, allocations: 0.8839 MB / 474.7 MB, free: 5.301 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005107/0.4439, allocations: 492 kB / 475.1 MB, free: 5.008 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004813/0.4444, allocations: 478.9 kB / 475.6 MB, free: 4.738 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.035e-06/0.4445, allocations: 4 kB / 475.6 MB, free: 4.734 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007109/0.4452, allocations: 0.6337 MB / 476.3 MB, free: 4.184 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 5.14e-06/0.4452, allocations: 7.922 kB / 476.3 MB, free: 4.176 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001387/0.4466, allocations: 0.8645 MB / 477.1 MB, free: 3.422 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002039/0.4468, allocations: 283.3 kB / 477.4 MB, free: 3.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001385/0.4482, allocations: 0.9839 MB / 478.4 MB, free: 2.098 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.732e-05/0.4483, allocations: 37.69 kB / 478.4 MB, free: 2.055 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.4484, allocations: 145.9 kB / 478.6 MB, free: 1.91 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.357e-05/0.4485, allocations: 71.25 kB / 478.6 MB, free: 1.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.371e-05/0.4486, allocations: 11.98 kB / 478.6 MB, free: 1.828 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.4487, allocations: 342.8 kB / 479 MB, free: 1.484 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000419/0.4491, allocations: 335.8 kB / 479.3 MB, free: 1.156 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004259/0.4496, allocations: 331.8 kB / 479.6 MB, free: 0.832 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002965/0.4499, allocations: 232 kB / 479.9 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4499, allocations: 4 kB / 479.9 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001182/0.4511, allocations: 0.8365 MB / 480.7 MB, free: 15.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002095/0.4513, allocations: 243.9 kB / 480.9 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.4513, allocations: 4 kB / 480.9 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.4513, allocations: 0 / 480.9 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.476e-05/0.4514, allocations: 4 kB / 480.9 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.4514, allocations: 0 / 480.9 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003589/0.4518, allocations: 47.75 kB / 481 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001568/0.4519, allocations: 123.9 kB / 481.1 MB, free: 15.3 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.0003717/0.4523, allocations: 406 kB / 481.5 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001348/0.4537, allocations: 0.9572 MB / 482.5 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.4538, allocations: 90.97 kB / 482.6 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002987/0.4541, allocations: 148 kB / 482.7 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.4541, allocations: 0 / 482.7 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4541, allocations: 0 / 482.7 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.4541, allocations: 4 kB / 482.7 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002067/0.4562, allocations: 1.599 MB / 484.3 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.4562, allocations: 0 / 484.3 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.204e-05/0.4562, allocations: 0 / 484.3 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.4563, allocations: 3.938 kB / 484.3 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.197e-05/0.4563, allocations: 31.98 kB / 484.3 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.4563, allocations: 0 / 484.3 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.4563, allocations: 3.984 kB / 484.3 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.4577, allocations: 1.061 MB / 485.4 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007838/0.4584, allocations: 0.562 MB / 486 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001505/0.4586, allocations: 51.97 kB / 486 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003056/0.4589, allocations: 35.97 kB / 486.1 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003817/0.4593, allocations: 231.7 kB / 486.3 MB, free: 9.984 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/0.4595, allocations: 131.9 kB / 486.4 MB, free: 9.855 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009976/0.4605, allocations: 0.8109 MB / 487.2 MB, free: 9.051 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4605, allocations: 0 / 487.2 MB, free: 9.051 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004306/0.4609, allocations: 124 kB / 487.3 MB, free: 8.93 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.001828/0.4628, allocations: 1.699 MB / 489 MB, free: 7.207 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001548/0.4643, allocations: 1.476 MB / 490.5 MB, free: 5.645 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4643, allocations: 0 / 490.5 MB, free: 5.645 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009672/0.4653, allocations: 1.125 MB / 491.6 MB, free: 4.434 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00111/0.4664, allocations: 259.4 kB / 491.9 MB, free: 4.176 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002951/0.4694, allocations: 1.842 MB / 493.7 MB, free: 2.293 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007904/0.4702, allocations: 1.035 MB / 494.8 MB, free: 1.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001329/0.4704, allocations: 37.81 kB / 494.8 MB, free: 1.195 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.856e-05/0.4704, allocations: 75.41 kB / 494.9 MB, free: 1.121 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4705, allocations: 0 / 494.9 MB, free: 1.121 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04069/0.5112, allocations: 14.74 MB / 0.4977 GB, free: 2.102 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001971/0.5114, allocations: 142.3 kB / 0.4978 GB, free: 1.898 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.066/2.578, allocations: 0 / 0.4978 GB, free: 1.898 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREG.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat