Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.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.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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009198/0.0009198, allocations: 177.9 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 205.3 MB / 214.4 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009117/0.0009113, allocations: 74.73 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.529e-05/1.53e-05, allocations: 7.984 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07788/0.07791, allocations: 47.59 MB / 363.1 MB, free: 7.066 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2858/0.3637, allocations: 81.52 MB / 444.6 MB, free: 14.08 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.364, allocations: 64.59 kB / 444.7 MB, free: 14.05 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05084/0.4148, allocations: 26.64 MB / 471.3 MB, free: 8.488 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.4149, allocations: 3.938 kB / 471.3 MB, free: 8.484 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.711e-05/0.4149, allocations: 8 kB / 471.3 MB, free: 8.477 MB / 346.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.0009192/0.4158, allocations: 1.006 MB / 472.3 MB, free: 7.434 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.725e-05/0.4159, allocations: 16.03 kB / 472.3 MB, free: 7.418 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.416, allocations: 83.06 kB / 472.4 MB, free: 7.336 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005083/0.4165, allocations: 417.7 kB / 472.8 MB, free: 6.922 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.571e-05/0.4166, allocations: 12 kB / 472.8 MB, free: 6.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.818e-05/0.4166, allocations: 20 kB / 472.8 MB, free: 6.891 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004701/0.4171, allocations: 343.8 kB / 473.2 MB, free: 6.656 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006092/0.4177, allocations: 476.4 kB / 473.6 MB, free: 6.301 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.4178, allocations: 0 / 473.6 MB, free: 6.301 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.173e-05/0.4178, allocations: 11.98 kB / 473.7 MB, free: 6.289 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.4178, allocations: 4 kB / 473.7 MB, free: 6.285 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.419, allocations: 0.8864 MB / 474.6 MB, free: 5.547 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004899/0.4196, allocations: 493.8 kB / 475 MB, free: 5.254 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000506/0.4201, allocations: 478.7 kB / 475.5 MB, free: 4.984 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.224e-06/0.4201, allocations: 0 / 475.5 MB, free: 4.984 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006579/0.4208, allocations: 0.6312 MB / 476.1 MB, free: 4.438 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 3.106e-06/0.4208, allocations: 112 / 476.1 MB, free: 4.438 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001264/0.422, allocations: 0.8727 MB / 477 MB, free: 3.57 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001534/0.4222, allocations: 291.2 kB / 477.3 MB, free: 3.23 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001174/0.4234, allocations: 0.9761 MB / 478.3 MB, free: 2.246 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.232e-05/0.4235, allocations: 41.69 kB / 478.3 MB, free: 2.199 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.907e-05/0.4236, allocations: 149.9 kB / 478.5 MB, free: 2.051 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.746e-05/0.4237, allocations: 67.27 kB / 478.5 MB, free: 1.984 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.321e-05/0.4237, allocations: 8 kB / 478.5 MB, free: 1.977 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.4238, allocations: 342.8 kB / 478.9 MB, free: 1.633 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004391/0.4243, allocations: 331.8 kB / 479.2 MB, free: 1.309 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004031/0.4247, allocations: 335.8 kB / 479.5 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002955/0.425, allocations: 240 kB / 479.7 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.425, allocations: 0 / 479.7 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001139/0.4261, allocations: 0.8288 MB / 480.6 MB, free: 15.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001628/0.4263, allocations: 247.9 kB / 480.8 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.4263, allocations: 0 / 480.8 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.4264, allocations: 3.984 kB / 480.8 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.501e-05/0.4264, allocations: 7.938 kB / 480.8 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.4264, allocations: 0 / 480.8 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002969/0.4267, allocations: 47.81 kB / 480.9 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001335/0.4268, allocations: 123.9 kB / 481 MB, free: 15.44 MB / 362.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.0003291/0.4272, allocations: 406 kB / 481.4 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.4273, allocations: 83.06 kB / 481.5 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002196/0.4275, allocations: 148 kB / 481.6 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.4275, allocations: 4 kB / 481.6 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.912e-06/0.4275, allocations: 0 / 481.6 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.4275, allocations: 7.938 kB / 481.6 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00193/0.4295, allocations: 1.595 MB / 483.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.4295, allocations: 4 kB / 483.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.004e-05/0.4295, allocations: 4 kB / 483.2 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.4295, allocations: 0 / 483.2 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.995e-05/0.4296, allocations: 31.98 kB / 483.3 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.4296, allocations: 0 / 483.3 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.4296, allocations: 3.984 kB / 483.3 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00132/0.4309, allocations: 1.065 MB / 484.3 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007168/0.4317, allocations: 0.5582 MB / 484.9 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001469/0.4318, allocations: 55.95 kB / 484.9 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002941/0.4321, allocations: 39.88 kB / 485 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003685/0.4325, allocations: 227.8 kB / 485.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001394/0.4326, allocations: 131.9 kB / 485.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009673/0.4336, allocations: 0.8187 MB / 486.2 MB, free: 10.15 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4336, allocations: 0 / 486.2 MB, free: 10.15 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00042/0.434, allocations: 116 kB / 486.3 MB, free: 10.04 MB / 362.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.0002147/0.4343, allocations: 182.7 kB / 486.4 MB, free: 9.852 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001442/0.4357, allocations: 1.48 MB / 487.9 MB, free: 8.285 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4357, allocations: 0 / 487.9 MB, free: 8.285 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009695/0.4367, allocations: 1.128 MB / 489.1 MB, free: 7.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/0.4378, allocations: 263.4 kB / 489.3 MB, free: 6.809 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002306/0.4401, allocations: 1.693 MB / 491 MB, free: 5.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006271/0.4407, allocations: 1.031 MB / 492 MB, free: 4.031 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00011/0.4409, allocations: 37.81 kB / 492.1 MB, free: 3.996 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.635e-05/0.4409, allocations: 23.38 kB / 492.1 MB, free: 3.973 MB / 362.7 MB Notification: Performance of SimCode: time 6.01e-07/0.4409, allocations: 0 / 492.1 MB, free: 3.973 MB / 362.7 MB Notification: Performance of Templates: time 0.016/0.4569, allocations: 12.23 MB / 0.4925 GB, free: 7.473 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DLATREG/DLATREG.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches