Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.DLATREGL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001627/0.001627, allocations: 199.8 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.569/1.569, allocations: 226.5 MB / 245.4 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008095/0.0008094, allocations: 97.09 kB / 297.5 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002152/0.0002153, allocations: 11.98 kB / 358.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2094, allocations: 51.29 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1013/0.3107, allocations: 83.71 MB / 493.1 MB, free: 7.805 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.311, allocations: 76.97 kB / 493.2 MB, free: 7.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2498/0.5608, allocations: 33.65 MB / 0.5145 GB, free: 93.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.115e-06/0.5609, allocations: 3.938 kB / 0.5145 GB, free: 93.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.035e-05/0.5609, allocations: 6.688 kB / 0.5145 GB, free: 93.88 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.001865/0.5628, allocations: 1.13 MB / 0.5156 GB, free: 93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.5628, allocations: 11.66 kB / 0.5156 GB, free: 93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002308/0.5631, allocations: 86.78 kB / 0.5157 GB, free: 92.96 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006445/0.5637, allocations: 441.8 kB / 0.5161 GB, free: 92.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.04e-05/0.5638, allocations: 22.81 kB / 0.5161 GB, free: 92.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.021e-05/0.5639, allocations: 23.12 kB / 0.5161 GB, free: 92.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009955/0.5649, allocations: 0.5042 MB / 0.5166 GB, free: 92.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.5649, allocations: 192 / 0.5166 GB, free: 92.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.914e-05/0.565, allocations: 23 kB / 0.5167 GB, free: 92.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.565, allocations: 3.875 kB / 0.5167 GB, free: 92.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006751/0.5657, allocations: 355.1 kB / 0.517 GB, free: 92.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.5675, allocations: 0.9234 MB / 0.5179 GB, free: 91.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007407/0.5682, allocations: 0.4949 MB / 0.5184 GB, free: 91.69 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007173/0.5689, allocations: 494.9 kB / 0.5189 GB, free: 91.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.569, allocations: 0 / 0.5189 GB, free: 91.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009396/0.5699, allocations: 0.6373 MB / 0.5195 GB, free: 91.03 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 2.955e-06/0.5699, allocations: 4 kB / 0.5195 GB, free: 91.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002477/0.5724, allocations: 1.493 MB / 0.5209 GB, free: 90.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.5726, allocations: 288.1 kB / 0.5212 GB, free: 89.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001983/0.5745, allocations: 1.156 MB / 0.5223 GB, free: 89.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.075e-05/0.5746, allocations: 40.45 kB / 0.5224 GB, free: 89.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.114e-05/0.5747, allocations: 144.6 kB / 0.5225 GB, free: 89.03 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.5748, allocations: 74.52 kB / 0.5226 GB, free: 88.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.956e-05/0.5749, allocations: 10.75 kB / 0.5226 GB, free: 88.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.878e-05/0.575, allocations: 344.6 kB / 0.5229 GB, free: 88.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000602/0.5756, allocations: 342.7 kB / 0.5233 GB, free: 88.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006066/0.5762, allocations: 370.4 kB / 0.5236 GB, free: 88.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.5773, allocations: 0.9768 MB / 0.5246 GB, free: 87.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.5773, allocations: 0 / 0.5246 GB, free: 87.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001689/0.579, allocations: 1.101 MB / 0.5256 GB, free: 86.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001417/0.5792, allocations: 247.9 kB / 0.5259 GB, free: 85.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.5792, allocations: 0 / 0.5259 GB, free: 85.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.5792, allocations: 4 kB / 0.5259 GB, free: 85.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.496e-05/0.5793, allocations: 7.922 kB / 0.5259 GB, free: 85.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.5793, allocations: 3.984 kB / 0.5259 GB, free: 85.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003794/0.5797, allocations: 51.66 kB / 0.5259 GB, free: 85.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001598/0.5798, allocations: 120.2 kB / 0.5261 GB, free: 85.55 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.001026/0.5809, allocations: 0.7713 MB / 0.5268 GB, free: 84.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/0.581, allocations: 87.06 kB / 0.5269 GB, free: 84.65 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003414/0.5814, allocations: 143.5 kB / 0.527 GB, free: 84.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.768e-06/0.5814, allocations: 7.938 kB / 0.527 GB, free: 84.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.5814, allocations: 3.984 kB / 0.527 GB, free: 84.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.5814, allocations: 0 / 0.527 GB, free: 84.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002954/0.5844, allocations: 1.964 MB / 0.529 GB, free: 82.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.5844, allocations: 0 / 0.529 GB, free: 82.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.233e-05/0.5844, allocations: 0 / 0.529 GB, free: 82.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.5845, allocations: 7.938 kB / 0.529 GB, free: 82.43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.854e-05/0.5845, allocations: 31.98 kB / 0.529 GB, free: 82.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.5845, allocations: 0 / 0.529 GB, free: 82.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.5846, allocations: 0 / 0.529 GB, free: 82.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001984/0.5865, allocations: 1.384 MB / 0.5303 GB, free: 80.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009323/0.5875, allocations: 0.562 MB / 0.5309 GB, free: 80.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/0.5876, allocations: 63.66 kB / 0.531 GB, free: 80.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002653/0.5879, allocations: 31.97 kB / 0.531 GB, free: 80.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003049/0.5882, allocations: 235.7 kB / 0.5312 GB, free: 80.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/0.5884, allocations: 127.9 kB / 0.5313 GB, free: 79.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009626/0.5893, allocations: 0.8577 MB / 0.5322 GB, free: 79.08 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5894, allocations: 0 / 0.5322 GB, free: 79.08 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004129/0.5898, allocations: 124 kB / 0.5323 GB, free: 78.96 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.0001848/0.59, allocations: 191.7 kB / 0.5325 GB, free: 78.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001434/0.5914, allocations: 1.511 MB / 0.5339 GB, free: 77.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.5914, allocations: 0 / 0.5339 GB, free: 77.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009337/0.5924, allocations: 1.144 MB / 0.5351 GB, free: 75.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009712/0.5933, allocations: 275.4 kB / 0.5353 GB, free: 75.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0024/0.5958, allocations: 2.134 MB / 0.5374 GB, free: 73.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006019/0.5964, allocations: 1.023 MB / 0.5384 GB, free: 72.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001272/0.5965, allocations: 37.48 kB / 0.5384 GB, free: 72.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.302e-05/0.5965, allocations: 15.44 kB / 0.5385 GB, free: 72.41 MB / 378.7 MB Notification: Performance of SimCode: time 4.81e-07/0.5966, allocations: 0 / 0.5385 GB, free: 72.41 MB / 378.7 MB Notification: Performance of Templates: time 0.01548/0.612, allocations: 12.73 MB / 0.5509 GB, free: 59.55 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DLATREGL/DLATREGL.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches