Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.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.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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001396/0.001396, allocations: 182.8 kB / 18.05 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.747/1.747, allocations: 205.4 MB / 224.2 MB, free: 9.055 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.0009287/0.0009286, allocations: 93.42 kB / 272.5 MB, free: 8.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004065/0.0004065, allocations: 12 kB / 329.5 MB, free: 15.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.2999, allocations: 47.57 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09203/0.392, allocations: 82.11 MB / 459.1 MB, free: 14.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/0.3922, allocations: 67.97 kB / 459.2 MB, free: 14.39 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0666/0.4589, allocations: 33.25 MB / 492.5 MB, free: 13.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4589, allocations: 0 / 492.5 MB, free: 13.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.761e-05/0.4589, allocations: 12 kB / 492.5 MB, free: 13.13 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.001398/0.4603, allocations: 1.124 MB / 493.6 MB, free: 11.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.4604, allocations: 8.031 kB / 493.6 MB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001856/0.4606, allocations: 88 kB / 493.7 MB, free: 11.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005851/0.4612, allocations: 459.9 kB / 494.1 MB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.241e-05/0.4612, allocations: 16.38 kB / 494.1 MB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.438e-05/0.4613, allocations: 28.38 kB / 494.2 MB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000825/0.4621, allocations: 498.8 kB / 494.7 MB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.4622, allocations: 192 / 494.7 MB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.683e-05/0.4622, allocations: 15.94 kB / 494.7 MB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.4622, allocations: 4 kB / 494.7 MB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005586/0.4628, allocations: 364.1 kB / 495 MB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.4643, allocations: 0.9222 MB / 496 MB, free: 9.438 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006687/0.4649, allocations: 0.4947 MB / 496.5 MB, free: 8.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006494/0.4656, allocations: 0.493 MB / 496.9 MB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.178e-05/0.4656, allocations: 0 / 496.9 MB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009216/0.4666, allocations: 0.6305 MB / 497.6 MB, free: 7.766 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.883e-06/0.4666, allocations: 0 / 497.6 MB, free: 7.766 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002178/0.4688, allocations: 1.501 MB / 499.1 MB, free: 6.215 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001676/0.4689, allocations: 287.2 kB / 499.4 MB, free: 5.879 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00167/0.4706, allocations: 1.152 MB / 0.4888 GB, free: 4.715 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.176e-05/0.4707, allocations: 49.62 kB / 0.4888 GB, free: 4.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.4708, allocations: 141.9 kB / 0.489 GB, free: 4.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.596e-05/0.4709, allocations: 71.19 kB / 0.489 GB, free: 4.449 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-05/0.471, allocations: 15.98 kB / 0.489 GB, free: 4.434 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.4711, allocations: 338.8 kB / 0.4894 GB, free: 4.094 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005113/0.4716, allocations: 339.8 kB / 0.4897 GB, free: 3.762 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005242/0.4721, allocations: 380.6 kB / 0.4901 GB, free: 3.383 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.4733, allocations: 0.9639 MB / 0.491 GB, free: 2.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.4733, allocations: 3.938 kB / 0.491 GB, free: 2.316 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001622/0.4749, allocations: 1.116 MB / 0.4921 GB, free: 1.152 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002044/0.4752, allocations: 247.8 kB / 0.4923 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.4752, allocations: 0 / 0.4923 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.4752, allocations: 8 kB / 0.4923 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.158e-05/0.4752, allocations: 11.94 kB / 0.4923 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.4753, allocations: 3.938 kB / 0.4924 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002968/0.4756, allocations: 39.88 kB / 0.4924 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001461/0.4757, allocations: 127.9 kB / 0.4925 GB, free: 0.6797 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dLATREGL.delay.inertialDelaySensitive[2].y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,$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,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,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 () * Number of clocked 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.1727/0.6484, allocations: 0.7542 MB / 0.4932 GB, free: 108.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00017/0.6486, allocations: 86.89 kB / 0.4933 GB, free: 108.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004049/0.649, allocations: 152.2 kB / 0.4935 GB, free: 108.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.649, allocations: 2.562 kB / 0.4935 GB, free: 108.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.649, allocations: 0.5 kB / 0.4935 GB, free: 108.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.279e-06/0.6491, allocations: 0.5 kB / 0.4935 GB, free: 108.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002964/0.652, allocations: 1.961 MB / 0.4954 GB, free: 107.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.652, allocations: 0 / 0.4954 GB, free: 107.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.321e-05/0.6521, allocations: 5.438 kB / 0.4954 GB, free: 107.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.6521, allocations: 1.031 kB / 0.4954 GB, free: 107.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.573e-05/0.6521, allocations: 31.88 kB / 0.4954 GB, free: 107.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.6522, allocations: 8.672 kB / 0.4954 GB, free: 107.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.6522, allocations: 4.906 kB / 0.4954 GB, free: 107.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001763/0.6539, allocations: 1.376 MB / 0.4968 GB, free: 107.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000764/0.6547, allocations: 0.556 MB / 0.4973 GB, free: 107.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001527/0.6549, allocations: 59.28 kB / 0.4974 GB, free: 107.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002977/0.6552, allocations: 43.84 kB / 0.4974 GB, free: 107.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003601/0.6555, allocations: 231.1 kB / 0.4977 GB, free: 107.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001535/0.6557, allocations: 133.9 kB / 0.4978 GB, free: 107.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00108/0.6568, allocations: 0.8529 MB / 0.4986 GB, free: 107.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6568, allocations: 0 / 0.4986 GB, free: 107.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004595/0.6573, allocations: 120.5 kB / 0.4987 GB, free: 107.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) * Number of clocked states: 0 () * 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.0002516/0.6575, allocations: 190 kB / 0.4989 GB, free: 107.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001728/0.6593, allocations: 1.521 MB / 0.5004 GB, free: 106.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.6593, allocations: 0 / 0.5004 GB, free: 106.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.6603, allocations: 1.135 MB / 0.5015 GB, free: 106.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00104/0.6614, allocations: 275.4 kB / 0.5018 GB, free: 106.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002445/0.6638, allocations: 2.125 MB / 0.5038 GB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/0.6644, allocations: 1.023 MB / 0.5048 GB, free: 104.3 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.6645, allocations: 44.52 kB / 0.5049 GB, free: 104.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.245e-05/0.6645, allocations: 15.31 kB / 0.5049 GB, free: 104.3 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.6645, allocations: 0 / 0.5049 GB, free: 104.3 MB / 378.7 MB Notification: Performance of Templates: time 0.01326/0.6778, allocations: 12.74 MB / 0.5173 GB, free: 98.45 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DLATREGL/DLATREGL.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches