Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.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.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH") [: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.002477/0.002477, allocations: 176.7 kB / 8.151 MB, free: 2.211 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.899/1.899, allocations: 205.2 MB / 213.7 MB, free: 13.92 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.001237/0.001237, allocations: 85.88 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.32e-05/1.334e-05, allocations: 4 kB / 314.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.2327, allocations: 47.55 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1222/0.355, allocations: 81.64 MB / 443.5 MB, free: 4.43 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003052/0.3554, allocations: 70.58 kB / 443.5 MB, free: 4.363 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1027/0.4581, allocations: 30.5 MB / 474 MB, free: 5.984 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.751e-05/0.4582, allocations: 12 kB / 474 MB, free: 5.973 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002265/0.4605, allocations: 1.314 MB / 475.4 MB, free: 4.562 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.4605, allocations: 8.031 kB / 475.4 MB, free: 4.555 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003953/0.4609, allocations: 130.4 kB / 475.5 MB, free: 4.426 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001331/0.4623, allocations: 0.5246 MB / 476 MB, free: 3.852 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.511e-05/0.4624, allocations: 20 kB / 476 MB, free: 3.832 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.4625, allocations: 20 kB / 476.1 MB, free: 3.812 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001157/0.4637, allocations: 456.8 kB / 476.5 MB, free: 3.367 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.4653, allocations: 0.6095 MB / 477.1 MB, free: 2.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.4653, allocations: 0 / 477.1 MB, free: 2.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001051/0.4654, allocations: 11.98 kB / 477.1 MB, free: 2.738 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.4654, allocations: 4 kB / 477.1 MB, free: 2.734 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002888/0.4683, allocations: 1.067 MB / 478.2 MB, free: 1.625 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.4699, allocations: 0.682 MB / 478.9 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001367/0.4713, allocations: 0.6764 MB / 479.5 MB, free: 260 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.4713, allocations: 0 / 479.5 MB, free: 260 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001527/0.4729, allocations: 0.7305 MB / 480.3 MB, free: 15.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 4.409e-06/0.4729, allocations: 3.938 kB / 480.3 MB, free: 15.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.002443/0.4754, allocations: 0.9682 MB / 481.3 MB, free: 14.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000287/0.4757, allocations: 329 kB / 481.6 MB, free: 14.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004145/0.4799, allocations: 1.549 MB / 483.1 MB, free: 12.56 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002588/0.4802, allocations: 41.7 kB / 483.2 MB, free: 12.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.4803, allocations: 168.9 kB / 483.3 MB, free: 12.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000205/0.4805, allocations: 75.11 kB / 483.4 MB, free: 12.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.407e-05/0.4806, allocations: 12 kB / 483.4 MB, free: 12.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.4808, allocations: 330.7 kB / 483.7 MB, free: 11.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001144/0.4819, allocations: 456 kB / 484.2 MB, free: 11.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001064/0.483, allocations: 448 kB / 484.6 MB, free: 11.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007042/0.4838, allocations: 308.5 kB / 484.9 MB, free: 10.74 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.4838, allocations: 0 / 484.9 MB, free: 10.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002155/0.4859, allocations: 0.8725 MB / 485.8 MB, free: 9.863 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.486, allocations: 6.969 kB / 485.8 MB, free: 9.859 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.486, allocations: 3.938 kB / 485.8 MB, free: 9.855 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.113e-05/0.4861, allocations: 4 kB / 485.8 MB, free: 9.852 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.846e-05/0.4861, allocations: 7.922 kB / 485.8 MB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.4861, allocations: 4 kB / 485.8 MB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005368/0.4867, allocations: 43.97 kB / 485.9 MB, free: 9.797 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002651/0.487, allocations: 147.9 kB / 486 MB, free: 9.652 MB / 378.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: 43 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.0006092/0.4876, allocations: 387.1 kB / 486.4 MB, free: 9.219 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003139/0.4879, allocations: 130.5 kB / 486.5 MB, free: 9.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008922/0.4888, allocations: 259.5 kB / 486.8 MB, free: 8.832 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.4888, allocations: 0 / 486.8 MB, free: 8.832 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.4889, allocations: 4 kB / 486.8 MB, free: 8.828 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.4889, allocations: 3.984 kB / 486.8 MB, free: 8.824 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00457/0.4935, allocations: 1.861 MB / 488.6 MB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.275e-06/0.4935, allocations: 0 / 488.6 MB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.459e-05/0.4936, allocations: 0 / 488.6 MB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/0.4936, allocations: 8 kB / 488.6 MB, free: 6.906 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001473/0.4937, allocations: 43.95 kB / 488.7 MB, free: 6.863 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.4937, allocations: 0 / 488.7 MB, free: 6.863 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.4938, allocations: 0 / 488.7 MB, free: 6.863 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002556/0.4963, allocations: 1.136 MB / 489.8 MB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002207/0.4986, allocations: 0.6903 MB / 490.5 MB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003821/0.499, allocations: 67.97 kB / 490.6 MB, free: 4.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006513/0.4997, allocations: 47.75 kB / 490.6 MB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009859/0.5007, allocations: 363.7 kB / 491 MB, free: 4.527 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003235/0.501, allocations: 163.9 kB / 491.1 MB, free: 4.367 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.003488/0.5045, allocations: 1.27 MB / 492.4 MB, free: 3.094 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009307/0.5055, allocations: 128 kB / 492.5 MB, free: 2.969 MB / 378.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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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.0004419/0.506, allocations: 193.7 kB / 492.7 MB, free: 2.766 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003011/0.509, allocations: 1.45 MB / 494.2 MB, free: 1.266 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.5091, allocations: 0 / 494.2 MB, free: 1.266 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002154/0.5112, allocations: 1.178 MB / 495.4 MB, free: 40 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00242/0.5137, allocations: 289 kB / 495.6 MB, free: 15.76 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007169/0.5209, allocations: 2.583 MB / 498.2 MB, free: 13.13 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001874/0.5229, allocations: 1.239 MB / 499.5 MB, free: 11.86 MB / 394.7 MB Notification: Performance of SimCode: time 1.313e-06/0.5229, allocations: 0 / 499.5 MB, free: 11.86 MB / 394.7 MB Notification: Performance of Templates: time 0.02418/0.5471, allocations: 10.97 MB / 0.4985 GB, free: 0.6719 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DFFREGSRH/DFFREGSRH.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches