Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.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.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL") [: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.002445/0.002445, allocations: 175.9 kB / 8.152 MB, free: 2.195 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.827/1.827, allocations: 205.2 MB / 213.8 MB, free: 13.87 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.001298/0.001297, allocations: 91.91 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.135e-06/8.145e-06, allocations: 0 / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2293, allocations: 47.55 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1246/0.3539, allocations: 81.68 MB / 443.5 MB, free: 4.402 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.3543, allocations: 71.95 kB / 443.6 MB, free: 4.332 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1083/0.4626, allocations: 32.03 MB / 475.6 MB, free: 4.414 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.312e-05/0.4627, allocations: 16 kB / 475.6 MB, free: 4.398 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.002162/0.4648, allocations: 1.31 MB / 476.9 MB, free: 2.992 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.4649, allocations: 8.031 kB / 476.9 MB, free: 2.984 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003544/0.4653, allocations: 130.4 kB / 477.1 MB, free: 2.855 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.4666, allocations: 0.5208 MB / 477.6 MB, free: 2.285 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.977e-05/0.4667, allocations: 19.89 kB / 477.6 MB, free: 2.266 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.4668, allocations: 28 kB / 477.6 MB, free: 2.238 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001153/0.468, allocations: 460.8 kB / 478.1 MB, free: 1.789 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.4694, allocations: 0.6016 MB / 478.7 MB, free: 1.184 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.4694, allocations: 0 / 478.7 MB, free: 1.184 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/0.4696, allocations: 19.98 kB / 478.7 MB, free: 1.164 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.4696, allocations: 4 kB / 478.7 MB, free: 1.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002831/0.4724, allocations: 1.067 MB / 479.8 MB, free: 52 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.474, allocations: 0.6897 MB / 480.5 MB, free: 15.35 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001343/0.4754, allocations: 0.6686 MB / 481.1 MB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.651e-05/0.4754, allocations: 4 kB / 481.1 MB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001425/0.4768, allocations: 0.7266 MB / 481.9 MB, free: 13.91 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 3.978e-06/0.4769, allocations: 4 kB / 481.9 MB, free: 13.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.002365/0.4792, allocations: 0.9642 MB / 482.8 MB, free: 12.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002782/0.4795, allocations: 329 kB / 483.2 MB, free: 12.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00389/0.4835, allocations: 1.549 MB / 484.7 MB, free: 10.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002493/0.4837, allocations: 45.69 kB / 484.7 MB, free: 10.94 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.4839, allocations: 165 kB / 484.9 MB, free: 10.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002081/0.4841, allocations: 87.14 kB / 485 MB, free: 10.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.477e-05/0.4842, allocations: 12 kB / 485 MB, free: 10.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.4843, allocations: 330.8 kB / 485.3 MB, free: 10.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/0.4854, allocations: 452 kB / 485.8 MB, free: 9.902 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001074/0.4865, allocations: 448 kB / 486.2 MB, free: 9.465 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006851/0.4872, allocations: 308.5 kB / 486.5 MB, free: 9.164 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.4873, allocations: 0 / 486.5 MB, free: 9.164 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002124/0.4894, allocations: 0.8764 MB / 487.4 MB, free: 8.281 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.4895, allocations: 6.969 kB / 487.4 MB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.4895, allocations: 0 / 487.4 MB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.4895, allocations: 4 kB / 487.4 MB, free: 8.273 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.215e-05/0.4896, allocations: 3.938 kB / 487.4 MB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.645e-06/0.4896, allocations: 4 kB / 487.4 MB, free: 8.266 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005345/0.4901, allocations: 39.81 kB / 487.4 MB, free: 8.227 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002738/0.4904, allocations: 151.9 kB / 487.6 MB, free: 8.078 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.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.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.000607/0.491, allocations: 379.1 kB / 488 MB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003007/0.4913, allocations: 138.4 kB / 488.1 MB, free: 7.516 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009157/0.4923, allocations: 251.6 kB / 488.3 MB, free: 7.266 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.4923, allocations: 0 / 488.3 MB, free: 7.266 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.4923, allocations: 0 / 488.3 MB, free: 7.266 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.4923, allocations: 0 / 488.3 MB, free: 7.266 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004166/0.4965, allocations: 1.868 MB / 490.2 MB, free: 5.348 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-06/0.4965, allocations: 0 / 490.2 MB, free: 5.348 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.72e-05/0.4966, allocations: 11.98 kB / 490.2 MB, free: 5.336 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.358e-05/0.4966, allocations: 7.906 kB / 490.2 MB, free: 5.328 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001293/0.4967, allocations: 39.97 kB / 490.3 MB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.4968, allocations: 0 / 490.3 MB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.4968, allocations: 0 / 490.3 MB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002503/0.4993, allocations: 1.132 MB / 491.4 MB, free: 4.133 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001993/0.5013, allocations: 0.698 MB / 492.1 MB, free: 3.414 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003888/0.5017, allocations: 67.95 kB / 492.2 MB, free: 3.348 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006352/0.5024, allocations: 35.97 kB / 492.2 MB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001003/0.5034, allocations: 367.6 kB / 492.6 MB, free: 2.953 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003026/0.5037, allocations: 155.9 kB / 492.7 MB, free: 2.801 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.003444/0.5072, allocations: 1.266 MB / 494 MB, free: 1.531 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009047/0.5081, allocations: 135.9 kB / 494.1 MB, free: 1.398 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,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.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.0004179/0.5085, allocations: 189.7 kB / 494.3 MB, free: 1.199 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00287/0.5114, allocations: 1.45 MB / 495.7 MB, free: 15.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.5115, allocations: 0 / 495.7 MB, free: 15.7 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001968/0.5134, allocations: 1.181 MB / 496.9 MB, free: 14.47 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002246/0.5157, allocations: 292.9 kB / 497.2 MB, free: 14.19 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006779/0.5225, allocations: 2.575 MB / 499.8 MB, free: 11.57 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0017/0.5243, allocations: 1.243 MB / 0.4893 GB, free: 10.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.263e-06/0.5243, allocations: 4 kB / 0.4893 GB, free: 10.29 MB / 394.7 MB Notification: Performance of Templates: time 0.1378/0.6621, allocations: 10.97 MB / 0.5 GB, free: 159.4 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DFFREGSRL/DFFREGSRL.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches