Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.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.DLATREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGSRH.delay.inertialDelaySensitive.1..x|dLATREGSRH.delay.inertialDelaySensitive.1..y|dLATREGSRH.delay.inertialDelaySensitive.2..x|dLATREGSRH.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH") translateModel(Modelica.Electrical.Digital.Examples.DLATREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGSRH.delay.inertialDelaySensitive.1..x|dLATREGSRH.delay.inertialDelaySensitive.1..y|dLATREGSRH.delay.inertialDelaySensitive.2..x|dLATREGSRH.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH") [: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.001413/0.001413, allocations: 184.1 kB / 8.138 MB, free: 2.199 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.186/1.186, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.00107/0.001071, allocations: 89.31 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.103e-06/7.133e-06, allocations: 0 / 336.5 MB, free: 9.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.235, allocations: 50.41 MB / 386.9 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.119/0.354, allocations: 82.44 MB / 469.3 MB, free: 4.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/0.3543, allocations: 77.78 kB / 469.4 MB, free: 4.355 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.0823/0.4366, allocations: 30.34 MB / 499.8 MB, free: 6.129 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.137e-05/0.4367, allocations: 20 kB / 499.8 MB, free: 6.109 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.001846/0.4386, allocations: 1.327 MB / 0.4894 GB, free: 4.684 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.4386, allocations: 8.031 kB / 0.4894 GB, free: 4.676 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002733/0.4389, allocations: 138.3 kB / 0.4895 GB, free: 4.539 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001088/0.44, allocations: 0.5172 MB / 0.49 GB, free: 3.973 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.808e-05/0.4401, allocations: 24 kB / 0.49 GB, free: 3.949 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/0.4402, allocations: 27.91 kB / 0.4901 GB, free: 3.922 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001015/0.4412, allocations: 471.7 kB / 0.4905 GB, free: 3.461 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.4425, allocations: 0.6023 MB / 0.4911 GB, free: 2.855 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.4426, allocations: 0 / 0.4911 GB, free: 2.855 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.727e-05/0.4427, allocations: 12 kB / 0.4911 GB, free: 2.844 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.4427, allocations: 0 / 0.4911 GB, free: 2.844 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002921/0.4456, allocations: 1.168 MB / 0.4923 GB, free: 1.633 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.4468, allocations: 0.6859 MB / 0.4929 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/0.4479, allocations: 0.6725 MB / 0.4936 GB, free: 268 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/0.4479, allocations: 0 / 0.4936 GB, free: 268 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1078/0.5558, allocations: 0.7142 MB / 0.4943 GB, free: 134.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 3.277e-06/0.5558, allocations: 2.688 kB / 0.4943 GB, free: 134.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.001117/0.5569, allocations: 0.9498 MB / 0.4952 GB, free: 134.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.5571, allocations: 329.8 kB / 0.4955 GB, free: 134.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001776/0.5589, allocations: 1.572 MB / 0.4971 GB, free: 134.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.159e-05/0.5589, allocations: 44.67 kB / 0.4971 GB, free: 134.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.194e-05/0.559, allocations: 155 kB / 0.4972 GB, free: 134 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.168e-05/0.5591, allocations: 75.7 kB / 0.4973 GB, free: 133.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.659e-05/0.5592, allocations: 10.09 kB / 0.4973 GB, free: 133.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.675e-05/0.5593, allocations: 385.1 kB / 0.4977 GB, free: 133.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004614/0.5597, allocations: 456.5 kB / 0.4981 GB, free: 133.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004468/0.5602, allocations: 457.9 kB / 0.4986 GB, free: 133.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002986/0.5605, allocations: 296 kB / 0.4989 GB, free: 133.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.5605, allocations: 7.297 kB / 0.4989 GB, free: 133.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009766/0.5615, allocations: 0.8993 MB / 0.4997 GB, free: 133.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.5615, allocations: 9.25 kB / 0.4997 GB, free: 133.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.5615, allocations: 0 / 0.4997 GB, free: 133.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.5615, allocations: 3.625 kB / 0.4997 GB, free: 133.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.122e-05/0.5616, allocations: 0 / 0.4997 GB, free: 133.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.5616, allocations: 0 / 0.4997 GB, free: 133.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003254/0.5619, allocations: 47.72 kB / 0.4998 GB, free: 133.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.562, allocations: 120.9 kB / 0.4999 GB, free: 133.5 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: 37 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * 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.0002739/0.5623, allocations: 450.5 kB / 0.5003 GB, free: 133.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.5624, allocations: 136.7 kB / 0.5005 GB, free: 133.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003304/0.5628, allocations: 251.7 kB / 0.5007 GB, free: 133 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.5628, allocations: 0 / 0.5007 GB, free: 133 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.5628, allocations: 7.484 kB / 0.5007 GB, free: 133 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.5628, allocations: 0 / 0.5007 GB, free: 133 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/0.5646, allocations: 1.873 MB / 0.5025 GB, free: 132.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.5646, allocations: 1.312 kB / 0.5025 GB, free: 132.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.254e-06/0.5646, allocations: 0 / 0.5025 GB, free: 132.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.5647, allocations: 7.703 kB / 0.5026 GB, free: 132.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.245e-05/0.5647, allocations: 42.59 kB / 0.5026 GB, free: 132.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.5647, allocations: 0 / 0.5026 GB, free: 132.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.5647, allocations: 0 / 0.5026 GB, free: 132.6 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001116/0.5659, allocations: 1.135 MB / 0.5037 GB, free: 132.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008653/0.5667, allocations: 0.6991 MB / 0.5044 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002008/0.567, allocations: 63.5 kB / 0.5044 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003344/0.5673, allocations: 34.02 kB / 0.5045 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005179/0.5678, allocations: 386.4 kB / 0.5048 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/0.568, allocations: 130.5 kB / 0.505 GB, free: 132.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001325/0.5693, allocations: 1.285 MB / 0.5062 GB, free: 131.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000409/0.5697, allocations: 129 kB / 0.5063 GB, free: 131.8 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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.next_assign_val[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRH.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * 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.0001953/0.5699, allocations: 190.9 kB / 0.5065 GB, free: 131.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001298/0.5712, allocations: 1.431 MB / 0.5079 GB, free: 131.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.5712, allocations: 0 / 0.5079 GB, free: 131.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009877/0.5722, allocations: 1.224 MB / 0.5091 GB, free: 131.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.5733, allocations: 290.2 kB / 0.5094 GB, free: 131.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003368/0.5767, allocations: 2.523 MB / 0.5119 GB, free: 130.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008408/0.5776, allocations: 1.237 MB / 0.5131 GB, free: 129.7 MB / 378.7 MB Notification: Performance of SimCode: time 8.11e-07/0.5776, allocations: 1.25 kB / 0.5131 GB, free: 129.7 MB / 378.7 MB Notification: Performance of Templates: time 0.01694/0.5945, allocations: 14.61 MB / 0.5273 GB, free: 123.6 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DLATREGSRH/DLATREGSRH.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches