Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.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.DLATREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREG.delay.inertialDelaySensitive.1..x|dLATREG.delay.inertialDelaySensitive.1..y|dLATREG.delay.inertialDelaySensitive.2..x|dLATREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG") translateModel(Modelica.Electrical.Digital.Examples.DLATREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREG.delay.inertialDelaySensitive.1..x|dLATREG.delay.inertialDelaySensitive.1..y|dLATREG.delay.inertialDelaySensitive.2..x|dLATREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG") [: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.0009309/0.000931, allocations: 184.5 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.119/1.119, allocations: 221.4 MB / 230 MB, free: 3.25 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.0009578/0.0009578, allocations: 90.55 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.514e-06/7.735e-06, allocations: 0 / 336.5 MB, free: 9.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.201, allocations: 50.39 MB / 386.9 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1072/0.3082, allocations: 82.13 MB / 469 MB, free: 4.676 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002006/0.3085, allocations: 68.5 kB / 469.1 MB, free: 4.609 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.05227/0.3608, allocations: 26.4 MB / 495.5 MB, free: 10.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.874e-05/0.3608, allocations: 8 kB / 495.5 MB, free: 10.32 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.0009479/0.3618, allocations: 1.015 MB / 496.5 MB, free: 9.219 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.3618, allocations: 8.031 kB / 496.5 MB, free: 9.211 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.362, allocations: 83.06 kB / 496.6 MB, free: 9.129 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005683/0.3625, allocations: 427.5 kB / 497 MB, free: 8.672 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.418e-05/0.3626, allocations: 20 kB / 497 MB, free: 8.652 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.355e-05/0.3626, allocations: 20 kB / 497.1 MB, free: 8.633 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005096/0.3632, allocations: 352.1 kB / 497.4 MB, free: 8.285 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006495/0.3638, allocations: 494.2 kB / 497.9 MB, free: 7.797 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.3638, allocations: 0 / 497.9 MB, free: 7.797 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.622e-05/0.3639, allocations: 15.89 kB / 497.9 MB, free: 7.781 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.3639, allocations: 4 kB / 497.9 MB, free: 7.777 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.3654, allocations: 0.9108 MB / 498.8 MB, free: 6.828 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005417/0.3659, allocations: 0.4946 MB / 499.3 MB, free: 6.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005058/0.3664, allocations: 492.9 kB / 499.8 MB, free: 5.836 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.245e-05/0.3665, allocations: 11.98 kB / 499.8 MB, free: 5.824 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006096/0.3671, allocations: 0.5915 MB / 0.4887 GB, free: 5.195 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.503e-06/0.3671, allocations: 0 / 0.4887 GB, free: 5.195 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001031/0.3681, allocations: 0.7347 MB / 0.4894 GB, free: 4.453 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/0.3683, allocations: 283.3 kB / 0.4897 GB, free: 4.121 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001178/0.3695, allocations: 0.9916 MB / 0.4906 GB, free: 3.121 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.423e-05/0.3695, allocations: 41.7 kB / 0.4907 GB, free: 3.074 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.807e-05/0.3696, allocations: 121.9 kB / 0.4908 GB, free: 2.953 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.08e-05/0.3697, allocations: 71.17 kB / 0.4909 GB, free: 2.883 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.302e-05/0.3698, allocations: 8 kB / 0.4909 GB, free: 2.875 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.3699, allocations: 342.8 kB / 0.4912 GB, free: 2.531 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004317/0.3703, allocations: 339.7 kB / 0.4915 GB, free: 2.199 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004205/0.3707, allocations: 347.8 kB / 0.4918 GB, free: 1.859 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003089/0.371, allocations: 247.9 kB / 0.4921 GB, free: 1.617 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3711, allocations: 0 / 0.4921 GB, free: 1.617 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009427/0.372, allocations: 0.7155 MB / 0.4928 GB, free: 0.8945 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.372, allocations: 11.94 kB / 0.4928 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.372, allocations: 0 / 0.4928 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.3721, allocations: 0 / 0.4928 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.314e-05/0.3721, allocations: 4 kB / 0.4928 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.828e-06/0.3721, allocations: 0 / 0.4928 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003092/0.3724, allocations: 35.88 kB / 0.4928 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001378/0.3726, allocations: 119.9 kB / 0.4929 GB, free: 0.7266 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.dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].x,$PRE.dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].x,$PRE.dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.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.000349/0.3729, allocations: 410 kB / 0.4933 GB, free: 284 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.373, allocations: 90.97 kB / 0.4934 GB, free: 192 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000237/0.3733, allocations: 147.5 kB / 0.4936 GB, free: 40 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.3733, allocations: 0 / 0.4936 GB, free: 40 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3733, allocations: 3.984 kB / 0.4936 GB, free: 36 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.3733, allocations: 0 / 0.4936 GB, free: 36 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.101/0.4743, allocations: 1.452 MB / 0.495 GB, free: 136.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.4743, allocations: 5.656 kB / 0.495 GB, free: 136.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.222e-05/0.4743, allocations: 3.562 kB / 0.495 GB, free: 136.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.4744, allocations: 1.781 kB / 0.495 GB, free: 136.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.23e-05/0.4744, allocations: 31 kB / 0.495 GB, free: 136.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.4744, allocations: 3.188 kB / 0.495 GB, free: 136.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4744, allocations: 3.703 kB / 0.495 GB, free: 136.2 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008757/0.4753, allocations: 0.9261 MB / 0.4959 GB, free: 136 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000687/0.476, allocations: 0.5807 MB / 0.4965 GB, free: 135.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.4762, allocations: 55.95 kB / 0.4966 GB, free: 135.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003108/0.4765, allocations: 33.31 kB / 0.4966 GB, free: 135.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003198/0.4768, allocations: 243.1 kB / 0.4968 GB, free: 135.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001259/0.477, allocations: 128.4 kB / 0.4969 GB, free: 135.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000777/0.4777, allocations: 0.8257 MB / 0.4977 GB, free: 135.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003687/0.4781, allocations: 114.5 kB / 0.4979 GB, free: 135.7 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,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREG.dLATR.dataOut[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.next_assign_val[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.nextstate[1],dLATREG.dLATR.reset_flag,dLATREG.dLATR.enable_flag,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREG.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.0001845/0.4783, allocations: 175.5 kB / 0.498 GB, free: 135.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000942/0.4793, allocations: 1.072 MB / 0.4991 GB, free: 135.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4793, allocations: 0 / 0.4991 GB, free: 135.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006563/0.4799, allocations: 0.9585 MB / 0.5 GB, free: 135.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008827/0.4808, allocations: 243.4 kB / 0.5002 GB, free: 135.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/0.4828, allocations: 1.719 MB / 0.5019 GB, free: 134.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004901/0.4833, allocations: 1.049 MB / 0.5029 GB, free: 134 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.4833, allocations: 0 / 0.5029 GB, free: 134 MB / 378.7 MB Notification: Performance of Templates: time 0.01448/0.4978, allocations: 12.15 MB / 0.5148 GB, free: 132.3 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DLATREG/DLATREG.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches