Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.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.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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001208/0.001207, allocations: 174.9 kB / 14.1 MB, free: 1.211 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.442/1.442, allocations: 205.2 MB / 219.8 MB, free: 14.28 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.0008371/0.000837, allocations: 82.66 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.107e-05/3.11e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09657/0.09662, allocations: 47.57 MB / 370 MB, free: 1.723 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3978/0.4945, allocations: 82.26 MB / 452.3 MB, free: 11.03 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.4948, allocations: 66.53 kB / 452.3 MB, free: 10.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05685/0.5517, allocations: 30.81 MB / 483.2 MB, free: 13.78 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.427e-06/0.5517, allocations: 4 kB / 483.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.973e-05/0.5517, allocations: 15.94 kB / 483.2 MB, free: 13.76 MB / 362.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.001518/0.5533, allocations: 1.319 MB / 484.5 MB, free: 12.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.5533, allocations: 8.031 kB / 484.5 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001761/0.5535, allocations: 138.4 kB / 484.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008304/0.5543, allocations: 0.5055 MB / 485.1 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.751e-05/0.5544, allocations: 23.94 kB / 485.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.449e-05/0.5545, allocations: 32 kB / 485.2 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009367/0.5554, allocations: 0.6144 MB / 485.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.5555, allocations: 7.984 kB / 485.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.733e-05/0.5555, allocations: 15.94 kB / 485.8 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.5555, allocations: 4 kB / 485.8 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000619/0.5562, allocations: 471.7 kB / 486.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.5581, allocations: 1.175 MB / 487.5 MB, free: 9.246 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007569/0.5588, allocations: 0.6937 MB / 488.2 MB, free: 8.543 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007542/0.5596, allocations: 0.6764 MB / 488.8 MB, free: 7.863 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.897e-06/0.5596, allocations: 0 / 488.8 MB, free: 7.863 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008614/0.5605, allocations: 0.7407 MB / 489.6 MB, free: 7.082 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 1.623e-06/0.5605, allocations: 0 / 489.6 MB, free: 7.082 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.001822/0.5623, allocations: 1.414 MB / 491 MB, free: 5.613 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001935/0.5625, allocations: 332.9 kB / 491.3 MB, free: 5.227 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0022/0.5647, allocations: 1.615 MB / 492.9 MB, free: 3.598 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.178e-05/0.5648, allocations: 45.8 kB / 493 MB, free: 3.547 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002631/0.5651, allocations: 258.2 kB / 493.2 MB, free: 3.289 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.5652, allocations: 71.16 kB / 493.3 MB, free: 3.219 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-05/0.5653, allocations: 20 kB / 493.3 MB, free: 3.199 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.5655, allocations: 382.7 kB / 493.7 MB, free: 2.816 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006732/0.5662, allocations: 451.8 kB / 494.1 MB, free: 2.375 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006034/0.5668, allocations: 459.5 kB / 494.6 MB, free: 1.926 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006305/0.5674, allocations: 0.5839 MB / 495.2 MB, free: 1.293 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.5674, allocations: 0 / 495.2 MB, free: 1.293 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001733/0.5692, allocations: 1.338 MB / 496.5 MB, free: 15.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002252/0.5694, allocations: 297.5 kB / 496.8 MB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.5694, allocations: 0 / 496.8 MB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.725e-05/0.5695, allocations: 8 kB / 496.8 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.266e-05/0.5695, allocations: 0 / 496.8 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.5695, allocations: 0 / 496.8 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004733/0.57, allocations: 39.97 kB / 496.8 MB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001939/0.5702, allocations: 132.2 kB / 497 MB, free: 15.38 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.0004762/0.5707, allocations: 463.6 kB / 497.4 MB, free: 14.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.5709, allocations: 138.4 kB / 497.6 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006161/0.5715, allocations: 252 kB / 497.8 MB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.5715, allocations: 0 / 497.8 MB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.5715, allocations: 0 / 497.8 MB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.5715, allocations: 4 kB / 497.8 MB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003131/0.5747, allocations: 2.399 MB / 0.4885 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.5747, allocations: 4 kB / 0.4885 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.776e-05/0.5747, allocations: 3.938 kB / 0.4885 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/0.5747, allocations: 0 / 0.4885 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.333e-05/0.5748, allocations: 35.98 kB / 0.4885 GB, free: 11.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.5748, allocations: 4 kB / 0.4885 GB, free: 11.92 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.5748, allocations: 0 / 0.4885 GB, free: 11.92 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002072/0.5769, allocations: 1.635 MB / 0.4901 GB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/0.5782, allocations: 0.6785 MB / 0.4908 GB, free: 9.516 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.5784, allocations: 55.97 kB / 0.4908 GB, free: 9.461 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003663/0.5788, allocations: 51.86 kB / 0.4909 GB, free: 9.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005713/0.5793, allocations: 379.5 kB / 0.4913 GB, free: 9.039 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001551/0.5795, allocations: 127.9 kB / 0.4914 GB, free: 8.914 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001875/0.5814, allocations: 1.332 MB / 0.4927 GB, free: 7.578 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.573e-06/0.5814, allocations: 0 / 0.4927 GB, free: 7.578 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005125/0.5819, allocations: 151.9 kB / 0.4928 GB, free: 7.43 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.0002759/0.5822, allocations: 189.7 kB / 0.493 GB, free: 7.234 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002092/0.5843, allocations: 1.92 MB / 0.4949 GB, free: 5.211 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5843, allocations: 0 / 0.4949 GB, free: 5.211 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001262/0.5856, allocations: 1.436 MB / 0.4963 GB, free: 3.676 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/0.5869, allocations: 306.8 kB / 0.4966 GB, free: 3.379 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003706/0.5906, allocations: 2.509 MB / 0.499 GB, free: 0.8359 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/0.5917, allocations: 1.227 MB / 0.5002 GB, free: 15.58 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002374/0.592, allocations: 37.45 kB / 0.5003 GB, free: 15.54 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.936e-05/0.592, allocations: 15.44 kB / 0.5003 GB, free: 15.52 MB / 394.7 MB Notification: Performance of SimCode: time 3.587e-06/0.592, allocations: 0 / 0.5003 GB, free: 15.52 MB / 394.7 MB Notification: Performance of Templates: time 0.02075/0.6128, allocations: 15.21 MB / 0.5151 GB, free: 15.93 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DLATREGSRH/DLATREGSRH.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches