Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.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.DFFREGL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGL.dFFR.clock|dFFREGL.dFFR.reset|dFFREGL.delay.inertialDelaySensitive.1..x|dFFREGL.delay.inertialDelaySensitive.1..y|dFFREGL.delay.inertialDelaySensitive.2..x|dFFREGL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL") translateModel(Modelica.Electrical.Digital.Examples.DFFREGL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGL.dFFR.clock|dFFREGL.dFFR.reset|dFFREGL.delay.inertialDelaySensitive.1..x|dFFREGL.delay.inertialDelaySensitive.1..y|dFFREGL.delay.inertialDelaySensitive.2..x|dFFREGL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL") [: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.00179/0.001791, allocations: 175 kB / 8.477 MB, free: 1.867 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.252/1.252, allocations: 205.2 MB / 214.1 MB, free: 5.504 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.0008309/0.0008309, allocations: 98.16 kB / 262.1 MB, free: 5.562 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.753e-06/6.913e-06, allocations: 4 kB / 315 MB, free: 41.54 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07549/0.07551, allocations: 47.57 MB / 362.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2253/0.3008, allocations: 81.42 MB / 444 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001752/0.301, allocations: 69.06 kB / 444 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.06329/0.3643, allocations: 36.83 MB / 480.8 MB, free: 11.1 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.469e-05/0.3644, allocations: 12 kB / 480.9 MB, free: 11.09 MB / 330.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.001423/0.3658, allocations: 1.009 MB / 481.9 MB, free: 10.04 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.3659, allocations: 15.97 kB / 481.9 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002338/0.3661, allocations: 86.97 kB / 482 MB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007149/0.3669, allocations: 434.2 kB / 482.4 MB, free: 9.52 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.8e-05/0.3669, allocations: 18.73 kB / 482.4 MB, free: 9.504 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.7e-05/0.367, allocations: 20 kB / 482.4 MB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005295/0.3676, allocations: 353.8 kB / 482.8 MB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007278/0.3683, allocations: 0.4913 MB / 483.3 MB, free: 8.852 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.689e-06/0.3683, allocations: 4 kB / 483.3 MB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.765e-05/0.3684, allocations: 10.69 kB / 483.3 MB, free: 8.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.3684, allocations: 4 kB / 483.3 MB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.3699, allocations: 0.8507 MB / 484.1 MB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005433/0.3705, allocations: 0.4977 MB / 484.6 MB, free: 7.809 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005071/0.371, allocations: 495.2 kB / 485.1 MB, free: 7.52 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.047e-06/0.371, allocations: 4 kB / 485.1 MB, free: 7.516 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006885/0.3717, allocations: 0.6207 MB / 485.7 MB, free: 6.98 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 2.485e-06/0.3717, allocations: 0 / 485.7 MB, free: 6.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.001206/0.3729, allocations: 0.775 MB / 486.5 MB, free: 6.363 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000148/0.3731, allocations: 275.9 kB / 486.8 MB, free: 6.051 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001427/0.3745, allocations: 1.001 MB / 487.8 MB, free: 5.219 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.429e-05/0.3746, allocations: 41.7 kB / 487.8 MB, free: 5.172 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.479e-05/0.3747, allocations: 122 kB / 487.9 MB, free: 5.047 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.3748, allocations: 79.02 kB / 488 MB, free: 4.969 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.747e-05/0.3749, allocations: 4 kB / 488 MB, free: 4.965 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.375, allocations: 350.8 kB / 488.4 MB, free: 4.613 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004599/0.3755, allocations: 348.1 kB / 488.7 MB, free: 4.273 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004864/0.3759, allocations: 348.5 kB / 489.1 MB, free: 3.934 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003237/0.3763, allocations: 253.3 kB / 489.3 MB, free: 3.688 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3763, allocations: 0 / 489.3 MB, free: 3.688 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001022/0.3773, allocations: 0.7315 MB / 490 MB, free: 2.949 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.3773, allocations: 4 kB / 490 MB, free: 2.945 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.3774, allocations: 4 kB / 490 MB, free: 2.941 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.3774, allocations: 0 / 490 MB, free: 2.941 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.864e-05/0.3774, allocations: 7.938 kB / 490 MB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.3774, allocations: 0 / 490 MB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003324/0.3778, allocations: 31.88 kB / 490.1 MB, free: 2.902 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001778/0.3779, allocations: 156.1 kB / 490.2 MB, free: 2.75 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.dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGL.dFFR.reset,dFFREGL.dFFR.reset,$PRE.dFFREGL.dFFR.clock,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.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.0003674/0.3783, allocations: 401.7 kB / 490.6 MB, free: 2.312 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.3785, allocations: 87.06 kB / 490.7 MB, free: 2.227 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002977/0.3788, allocations: 147.7 kB / 490.9 MB, free: 2.082 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.3788, allocations: 11.91 kB / 490.9 MB, free: 2.07 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.3788, allocations: 7.906 kB / 490.9 MB, free: 2.062 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.3788, allocations: 0 / 490.9 MB, free: 2.062 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001957/0.3808, allocations: 1.486 MB / 492.4 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.3808, allocations: 0 / 492.4 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.536e-05/0.3808, allocations: 3.938 kB / 492.4 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.3808, allocations: 4 kB / 492.4 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.253e-05/0.3809, allocations: 31.98 kB / 492.4 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.3809, allocations: 4 kB / 492.4 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.3809, allocations: 7.969 kB / 492.4 MB, free: 496 kB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001222/0.3821, allocations: 0.9399 MB / 493.3 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008943/0.3831, allocations: 0.5737 MB / 493.9 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001924/0.3833, allocations: 63.95 kB / 494 MB, free: 14.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003209/0.3836, allocations: 27.98 kB / 494 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003957/0.384, allocations: 239.8 kB / 494.2 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000163/0.3842, allocations: 159.5 kB / 494.4 MB, free: 14.45 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.001027/0.3852, allocations: 0.8342 MB / 495.2 MB, free: 13.62 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004529/0.3857, allocations: 108 kB / 495.3 MB, free: 13.52 MB / 346.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,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.dFFR.reset,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.next_assign_val[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.clock,dFFREGL.dFFR.reset,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGL.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.0002391/0.3859, allocations: 184.4 kB / 495.5 MB, free: 13.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001255/0.3872, allocations: 1.094 MB / 496.6 MB, free: 12.19 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3872, allocations: 0 / 496.6 MB, free: 12.19 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008962/0.3881, allocations: 0.9295 MB / 497.5 MB, free: 11.21 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.3892, allocations: 283.5 kB / 497.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002576/0.3917, allocations: 1.718 MB / 499.5 MB, free: 9.191 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007762/0.3925, allocations: 1.061 MB / 0.4889 GB, free: 8.098 MB / 346.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3925, allocations: 0 / 0.4889 GB, free: 8.098 MB / 346.7 MB Notification: Performance of Templates: time 0.01734/0.4099, allocations: 13.02 MB / 0.5016 GB, free: 10.82 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DFFREGL/DFFREGL.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches