Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009513/0.0009514, allocations: 184.2 kB / 8.136 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.182/1.182, allocations: 221.4 MB / 229.9 MB, free: 3.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000862/0.000862, allocations: 95.8 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.817e-06/8.837e-06, allocations: 4 kB / 336.5 MB, free: 9.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1983/0.1983, allocations: 50.4 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08481/0.2831, allocations: 82.6 MB / 469.5 MB, free: 4.211 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001949/0.2834, allocations: 77.52 kB / 469.6 MB, free: 4.137 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.05958/0.343, allocations: 32.33 MB / 0.4901 GB, free: 3.902 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.772e-05/0.343, allocations: 12 kB / 0.4902 GB, free: 3.891 MB / 378.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.001299/0.3443, allocations: 1.295 MB / 0.4914 GB, free: 2.496 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.3444, allocations: 12.03 kB / 0.4914 GB, free: 2.484 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001738/0.3446, allocations: 134.4 kB / 0.4916 GB, free: 2.352 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007271/0.3453, allocations: 0.5285 MB / 0.4921 GB, free: 1.773 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.108e-05/0.3454, allocations: 16 kB / 0.4921 GB, free: 1.758 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.497e-05/0.3455, allocations: 31.91 kB / 0.4921 GB, free: 1.727 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006096/0.3461, allocations: 455.8 kB / 0.4926 GB, free: 1.281 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008052/0.3469, allocations: 0.61 MB / 0.4932 GB, free: 0.668 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.3469, allocations: 0 / 0.4932 GB, free: 0.668 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.626e-05/0.347, allocations: 12 kB / 0.4932 GB, free: 0.6562 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.347, allocations: 4 kB / 0.4932 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1038/0.4508, allocations: 1.054 MB / 0.4942 GB, free: 133.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007967/0.4516, allocations: 0.6891 MB / 0.4949 GB, free: 133.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000652/0.4523, allocations: 0.6832 MB / 0.4955 GB, free: 133.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.988e-06/0.4523, allocations: 3.5 kB / 0.4955 GB, free: 133.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006511/0.4529, allocations: 0.7257 MB / 0.4962 GB, free: 133.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 3.026e-06/0.453, allocations: 0 / 0.4962 GB, free: 133.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001145/0.4541, allocations: 0.968 MB / 0.4972 GB, free: 133.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.4542, allocations: 327.4 kB / 0.4975 GB, free: 133.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001706/0.4559, allocations: 1.56 MB / 0.499 GB, free: 132.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.418e-05/0.456, allocations: 45.53 kB / 0.4991 GB, free: 132.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.622e-05/0.4561, allocations: 147.6 kB / 0.4992 GB, free: 132.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.771e-05/0.4562, allocations: 89.94 kB / 0.4993 GB, free: 132.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.267e-05/0.4563, allocations: 14.89 kB / 0.4993 GB, free: 132.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.983e-05/0.4564, allocations: 377.4 kB / 0.4997 GB, free: 132.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004775/0.4569, allocations: 446.1 kB / 0.5001 GB, free: 132.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004602/0.4573, allocations: 448.2 kB / 0.5005 GB, free: 132.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003206/0.4577, allocations: 311.8 kB / 0.5008 GB, free: 132.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.4577, allocations: 0 / 0.5008 GB, free: 132.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001013/0.4587, allocations: 0.9045 MB / 0.5017 GB, free: 132.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.4587, allocations: 7.188 kB / 0.5017 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.4587, allocations: 3.906 kB / 0.5017 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.4588, allocations: 0 / 0.5017 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.995e-05/0.4588, allocations: 14.23 kB / 0.5017 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.4588, allocations: 3.438 kB / 0.5017 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003774/0.4592, allocations: 35.97 kB / 0.5018 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001362/0.4593, allocations: 150.5 kB / 0.5019 GB, free: 132.3 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.0003024/0.4596, allocations: 455.5 kB / 0.5023 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.4598, allocations: 129.8 kB / 0.5025 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003796/0.4602, allocations: 248.9 kB / 0.5027 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.4602, allocations: 3.094 kB / 0.5027 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.4602, allocations: 0 / 0.5027 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.4602, allocations: 7.25 kB / 0.5027 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002042/0.4622, allocations: 1.873 MB / 0.5045 GB, free: 131.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.4623, allocations: 0 / 0.5045 GB, free: 131.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.211e-05/0.4623, allocations: 4.031 kB / 0.5045 GB, free: 131.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.4623, allocations: 3.828 kB / 0.5046 GB, free: 131.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.913e-05/0.4624, allocations: 42.73 kB / 0.5046 GB, free: 131.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.4624, allocations: 0 / 0.5046 GB, free: 131.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4624, allocations: 0 / 0.5046 GB, free: 131.3 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001206/0.4636, allocations: 1.146 MB / 0.5057 GB, free: 131.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009071/0.4645, allocations: 0.6895 MB / 0.5064 GB, free: 130.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000198/0.4647, allocations: 67.03 kB / 0.5065 GB, free: 130.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003546/0.4651, allocations: 37.17 kB / 0.5065 GB, free: 130.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004665/0.4656, allocations: 368.1 kB / 0.5068 GB, free: 130.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/0.4657, allocations: 160.1 kB / 0.507 GB, free: 130.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001407/0.4671, allocations: 1.27 MB / 0.5082 GB, free: 130.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007073/0.4678, allocations: 132.8 kB / 0.5084 GB, free: 130.5 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.0002115/0.4681, allocations: 194.1 kB / 0.5085 GB, free: 130.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001486/0.4696, allocations: 1.444 MB / 0.51 GB, free: 130.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4696, allocations: 0 / 0.51 GB, free: 130.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009959/0.4706, allocations: 1.188 MB / 0.5111 GB, free: 129.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.4717, allocations: 284.5 kB / 0.5114 GB, free: 129.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00369/0.4754, allocations: 2.486 MB / 0.5138 GB, free: 129.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008745/0.4763, allocations: 1.239 MB / 0.515 GB, free: 128.4 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.4763, allocations: 0 / 0.515 GB, free: 128.4 MB / 378.7 MB Notification: Performance of Templates: time 0.0193/0.4956, allocations: 15.57 MB / 0.5302 GB, free: 121 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DFFREGSRL/DFFREGSRL.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches