Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.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.DLATREGL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGL.delay.inertialDelaySensitive.1..x|dLATREGL.delay.inertialDelaySensitive.1..y|dLATREGL.delay.inertialDelaySensitive.2..x|dLATREGL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL") translateModel(Modelica.Electrical.Digital.Examples.DLATREGL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGL.delay.inertialDelaySensitive.1..x|dLATREGL.delay.inertialDelaySensitive.1..y|dLATREGL.delay.inertialDelaySensitive.2..x|dLATREGL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL") [: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.001363/0.001363, allocations: 183.7 kB / 8.138 MB, free: 2.184 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.289/1.289, allocations: 221.4 MB / 229.9 MB, free: 3.043 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.001133/0.001133, allocations: 104.4 kB / 280.8 MB, free: 1.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.402e-06/6.532e-06, allocations: 0 / 336.5 MB, free: 9.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1906/0.1906, allocations: 50.4 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08355/0.2742, allocations: 82.17 MB / 469.1 MB, free: 4.598 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001854/0.2744, allocations: 67.95 kB / 469.1 MB, free: 4.531 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.06292/0.3374, allocations: 32.95 MB / 0.4903 GB, free: 3.684 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.863e-05/0.3374, allocations: 8 kB / 0.4903 GB, free: 3.676 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0008874/0.3383, allocations: 1.016 MB / 0.4913 GB, free: 2.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.3384, allocations: 8.031 kB / 0.4913 GB, free: 2.562 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.3385, allocations: 86.97 kB / 0.4914 GB, free: 2.477 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000585/0.3391, allocations: 419.6 kB / 0.4918 GB, free: 2.027 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.548e-05/0.3391, allocations: 23.94 kB / 0.4918 GB, free: 2.004 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.191e-05/0.3392, allocations: 20 kB / 0.4919 GB, free: 1.984 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005045/0.3397, allocations: 352.1 kB / 0.4922 GB, free: 1.637 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006473/0.3404, allocations: 486.2 kB / 0.4927 GB, free: 1.156 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.3404, allocations: 0 / 0.4927 GB, free: 1.156 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.11e-05/0.3404, allocations: 11.98 kB / 0.4927 GB, free: 1.145 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.3405, allocations: 4 kB / 0.4927 GB, free: 1.141 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001379/0.3418, allocations: 0.9184 MB / 0.4936 GB, free: 188 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1085/0.4503, allocations: 0.492 MB / 0.494 GB, free: 136.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007987/0.4511, allocations: 488.9 kB / 0.4945 GB, free: 136.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.4512, allocations: 0 / 0.4945 GB, free: 136.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009009/0.4521, allocations: 0.6041 MB / 0.4951 GB, free: 136.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 2.905e-06/0.4521, allocations: 0 / 0.4951 GB, free: 136.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001542/0.4537, allocations: 0.7428 MB / 0.4958 GB, free: 136.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001376/0.4538, allocations: 283.3 kB / 0.4961 GB, free: 136.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001859/0.4557, allocations: 0.9921 MB / 0.4971 GB, free: 136.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.587e-05/0.4558, allocations: 39.98 kB / 0.4971 GB, free: 136.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.786e-05/0.4559, allocations: 119.6 kB / 0.4972 GB, free: 136 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.456, allocations: 65.23 kB / 0.4973 GB, free: 135.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.178e-05/0.4561, allocations: 7.062 kB / 0.4973 GB, free: 135.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.386e-05/0.4562, allocations: 350.4 kB / 0.4976 GB, free: 135.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006668/0.4569, allocations: 349.8 kB / 0.498 GB, free: 135.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006573/0.4575, allocations: 348.3 kB / 0.4983 GB, free: 135.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004595/0.458, allocations: 249.1 kB / 0.4985 GB, free: 135.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.458, allocations: 0 / 0.4985 GB, free: 135.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001436/0.4595, allocations: 0.7107 MB / 0.4992 GB, free: 135.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.4595, allocations: 6.75 kB / 0.4992 GB, free: 135.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.4595, allocations: 0 / 0.4992 GB, free: 135.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.4596, allocations: 0 / 0.4992 GB, free: 135.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.108e-05/0.4596, allocations: 3.719 kB / 0.4992 GB, free: 135.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.4596, allocations: 0 / 0.4992 GB, free: 135.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000498/0.4601, allocations: 37.16 kB / 0.4993 GB, free: 135.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001878/0.4603, allocations: 119.5 kB / 0.4994 GB, free: 135.6 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 8 * 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.0004053/0.4608, allocations: 400.8 kB / 0.4998 GB, free: 135.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/0.461, allocations: 89.91 kB / 0.4998 GB, free: 135.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003448/0.4613, allocations: 154.5 kB / 0.5 GB, free: 135.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.4613, allocations: 3.75 kB / 0.5 GB, free: 135.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4613, allocations: 0 / 0.5 GB, free: 135.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.4614, allocations: 7.062 kB / 0.5 GB, free: 135.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002488/0.4639, allocations: 1.451 MB / 0.5014 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.4639, allocations: 0 / 0.5014 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.23e-05/0.4639, allocations: 3.938 kB / 0.5014 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.4639, allocations: 3.047 kB / 0.5014 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.464, allocations: 30.55 kB / 0.5015 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.634e-06/0.464, allocations: 6.844 kB / 0.5015 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.464, allocations: 0 / 0.5015 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001657/0.4657, allocations: 0.9333 MB / 0.5024 GB, free: 134.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001211/0.4669, allocations: 0.5699 MB / 0.5029 GB, free: 134.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002898/0.4672, allocations: 61.44 kB / 0.503 GB, free: 134.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005486/0.4678, allocations: 34.8 kB / 0.503 GB, free: 134.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005695/0.4684, allocations: 239.5 kB / 0.5033 GB, free: 134.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001961/0.4686, allocations: 132.7 kB / 0.5034 GB, free: 134.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.00152/0.4702, allocations: 0.8247 MB / 0.5042 GB, free: 134.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006852/0.4709, allocations: 104.3 kB / 0.5043 GB, free: 134.2 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: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGL.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 4 * 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.0002904/0.4712, allocations: 186.6 kB / 0.5045 GB, free: 134.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001813/0.473, allocations: 1.077 MB / 0.5055 GB, free: 133.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.473, allocations: 0 / 0.5055 GB, free: 133.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.4742, allocations: 0.9485 MB / 0.5064 GB, free: 133.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001603/0.4758, allocations: 252.6 kB / 0.5067 GB, free: 133.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004056/0.4799, allocations: 1.716 MB / 0.5084 GB, free: 133.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000984/0.4809, allocations: 1.057 MB / 0.5094 GB, free: 132.5 MB / 378.7 MB Notification: Performance of SimCode: time 7.52e-07/0.4809, allocations: 0 / 0.5094 GB, free: 132.5 MB / 378.7 MB Notification: Performance of Templates: time 0.02404/0.505, allocations: 12.14 MB / 0.5212 GB, free: 129.8 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DLATREGL/DLATREGL.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches