Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.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: translateModel(Modelica.Electrical.Digital.Examples.DFFREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREG.dFFR.clock|dFFREG.dFFR.reset|dFFREG.delay.inertialDelaySensitive.1..x|dFFREG.delay.inertialDelaySensitive.1..y|dFFREG.delay.inertialDelaySensitive.2..x|dFFREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG") translateModel(Modelica.Electrical.Digital.Examples.DFFREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREG.dFFR.clock|dFFREG.dFFR.reset|dFFREG.delay.inertialDelaySensitive.1..x|dFFREG.delay.inertialDelaySensitive.1..y|dFFREG.delay.inertialDelaySensitive.2..x|dFFREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 178.7 kB / 8.476 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.156/1.156, allocations: 205.2 MB / 214.1 MB, free: 5.242 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.0008255/0.0008255, allocations: 94.27 kB / 262.1 MB, free: 5.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.552e-06/6.582e-06, allocations: 4 kB / 315 MB, free: 41.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07019/0.07021, allocations: 47.57 MB / 362.5 MB, free: 9.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2369/0.3071, allocations: 81.38 MB / 443.9 MB, free: 10.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/0.3074, allocations: 67.12 kB / 444 MB, free: 10.89 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.04781/0.3552, allocations: 27.24 MB / 471.2 MB, free: 2.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.112e-05/0.3553, allocations: 9.094 kB / 471.2 MB, free: 2.23 MB / 314.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.001523/0.3568, allocations: 1.01 MB / 472.2 MB, free: 1.352 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.3569, allocations: 9.062 kB / 472.3 MB, free: 1.352 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003764/0.3572, allocations: 87.22 kB / 472.3 MB, free: 1.309 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009533/0.3582, allocations: 432.8 kB / 472.8 MB, free: 1.012 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.169e-05/0.3583, allocations: 16.14 kB / 472.8 MB, free: 1.008 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.3584, allocations: 26.31 kB / 472.8 MB, free: 1.004 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005431/0.3589, allocations: 354.6 kB / 473.2 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000662/0.3596, allocations: 0.4973 MB / 473.6 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.3596, allocations: 3.984 kB / 473.7 MB, free: 0.707 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.238e-05/0.3597, allocations: 11.88 kB / 473.7 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-06/0.3597, allocations: 7.906 kB / 473.7 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001596/0.3613, allocations: 0.8328 MB / 474.5 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000562/0.3619, allocations: 0.5073 MB / 475 MB, free: 15.67 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005047/0.3624, allocations: 495.7 kB / 475.5 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.446e-06/0.3624, allocations: 0 / 475.5 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006642/0.3631, allocations: 0.6145 MB / 476.1 MB, free: 14.85 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 1.833e-06/0.3631, allocations: 3.938 kB / 476.1 MB, free: 14.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.001139/0.3643, allocations: 0.7779 MB / 476.9 MB, free: 14.23 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001488/0.3644, allocations: 277.7 kB / 477.2 MB, free: 13.92 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001468/0.3659, allocations: 0.9974 MB / 478.2 MB, free: 13.1 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.809e-05/0.366, allocations: 40.64 kB / 478.2 MB, free: 13.05 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.363e-05/0.3661, allocations: 123.5 kB / 478.3 MB, free: 12.94 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.3662, allocations: 83.86 kB / 478.4 MB, free: 12.87 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.836e-05/0.3663, allocations: 8 kB / 478.4 MB, free: 12.86 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3664, allocations: 348.1 kB / 478.8 MB, free: 12.52 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004376/0.3668, allocations: 348 kB / 479.1 MB, free: 12.29 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000423/0.3673, allocations: 349 kB / 479.4 MB, free: 12.06 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003137/0.3676, allocations: 255.6 kB / 479.7 MB, free: 11.88 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3676, allocations: 0 / 479.7 MB, free: 11.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001/0.3686, allocations: 0.7302 MB / 480.4 MB, free: 11.32 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.3686, allocations: 4 kB / 480.4 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3687, allocations: 0 / 480.4 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.3687, allocations: 0 / 480.4 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.641e-05/0.3687, allocations: 11.84 kB / 480.4 MB, free: 11.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.3687, allocations: 7.844 kB / 480.4 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003425/0.3691, allocations: 27.97 kB / 480.5 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/0.3692, allocations: 151.9 kB / 480.6 MB, free: 11.13 MB / 330.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: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,$PRE.dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * 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.0003502/0.3696, allocations: 398.7 kB / 481 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/0.3698, allocations: 90.97 kB / 481.1 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002885/0.3701, allocations: 152.9 kB / 481.2 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.3701, allocations: 0 / 481.2 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3701, allocations: 4 kB / 481.2 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.3701, allocations: 0 / 481.2 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001875/0.372, allocations: 1.48 MB / 482.7 MB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.372, allocations: 4 kB / 482.7 MB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.278e-05/0.372, allocations: 0 / 482.7 MB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.372, allocations: 11.88 kB / 482.7 MB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.479e-05/0.3721, allocations: 31.61 kB / 482.8 MB, free: 9.254 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/0.3721, allocations: 7.984 kB / 482.8 MB, free: 9.246 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.3721, allocations: 0 / 482.8 MB, free: 9.246 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00117/0.3733, allocations: 0.9342 MB / 483.7 MB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008767/0.3742, allocations: 0.5781 MB / 484.3 MB, free: 8.059 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002043/0.3744, allocations: 68.02 kB / 484.4 MB, free: 8.012 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003425/0.3747, allocations: 31.89 kB / 484.4 MB, free: 7.98 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003833/0.3751, allocations: 238.9 kB / 484.6 MB, free: 7.801 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001771/0.3753, allocations: 157 kB / 484.8 MB, free: 7.652 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.001158/0.3765, allocations: 0.8254 MB / 485.6 MB, free: 6.984 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005195/0.377, allocations: 105.4 kB / 485.7 MB, free: 6.883 MB / 330.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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * 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.0002558/0.3773, allocations: 191.5 kB / 485.9 MB, free: 6.695 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001291/0.3786, allocations: 1.098 MB / 487 MB, free: 5.602 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3786, allocations: 0 / 487 MB, free: 5.602 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00088/0.3795, allocations: 0.9332 MB / 487.9 MB, free: 4.625 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/0.3806, allocations: 276.9 kB / 488.2 MB, free: 4.359 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002694/0.3833, allocations: 1.73 MB / 489.9 MB, free: 2.602 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007609/0.3841, allocations: 1.053 MB / 491 MB, free: 1.52 MB / 330.7 MB Notification: Performance of SimCode: time 4.61e-07/0.3841, allocations: 0 / 491 MB, free: 1.52 MB / 330.7 MB Notification: Performance of Templates: time 0.01775/0.4019, allocations: 13.02 MB / 0.4922 GB, free: 4.246 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DFFREG/DFFREG.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches