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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009705/0.0009706, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.265/1.265, allocations: 221.4 MB / 235.5 MB, free: 2.922 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.0008791/0.0008791, allocations: 97.86 kB / 286.5 MB, free: 212 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.846e-05/1.85e-05, allocations: 0 / 343.8 MB, free: 4.305 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08337/0.0834, allocations: 50.42 MB / 394.2 MB, free: 1.844 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2873/0.3707, allocations: 82.85 MB / 477.1 MB, free: 4.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.3709, allocations: 79.78 kB / 477.2 MB, free: 4.605 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05315/0.4241, allocations: 27.1 MB / 0.4925 GB, free: 9.559 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.4241, allocations: 0 / 0.4925 GB, free: 9.559 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.812e-05/0.4242, allocations: 8 kB / 0.4925 GB, free: 9.551 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.0009144/0.4251, allocations: 1.015 MB / 0.4935 GB, free: 8.445 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.4251, allocations: 8.031 kB / 0.4935 GB, free: 8.438 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.4253, allocations: 83.06 kB / 0.4935 GB, free: 8.355 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005794/0.4258, allocations: 411.5 kB / 0.4939 GB, free: 7.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.812e-05/0.4259, allocations: 35.91 kB / 0.494 GB, free: 7.875 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.91e-05/0.426, allocations: 24 kB / 0.494 GB, free: 7.852 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007438/0.4267, allocations: 498.2 kB / 0.4945 GB, free: 7.355 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.333e-06/0.4268, allocations: 0 / 0.4945 GB, free: 7.355 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.124e-05/0.4268, allocations: 11.98 kB / 0.4945 GB, free: 7.344 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.4268, allocations: 4 kB / 0.4945 GB, free: 7.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005042/0.4273, allocations: 360.8 kB / 0.4948 GB, free: 6.988 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.4287, allocations: 0.9223 MB / 0.4957 GB, free: 6.016 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006058/0.4293, allocations: 0.4953 MB / 0.4962 GB, free: 5.508 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006049/0.4299, allocations: 496.9 kB / 0.4967 GB, free: 5.016 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.015e-05/0.4299, allocations: 4 kB / 0.4967 GB, free: 5.012 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007458/0.4307, allocations: 0.6304 MB / 0.4973 GB, free: 4.344 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.754e-06/0.4307, allocations: 0 / 0.4973 GB, free: 4.344 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001531/0.4322, allocations: 1.137 MB / 0.4984 GB, free: 3.156 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001615/0.4324, allocations: 283.2 kB / 0.4987 GB, free: 2.824 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/0.4337, allocations: 1.019 MB / 0.4997 GB, free: 1.797 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.054e-05/0.4338, allocations: 41.69 kB / 0.4997 GB, free: 1.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.976e-05/0.4339, allocations: 145.9 kB / 0.4999 GB, free: 1.602 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.879e-05/0.434, allocations: 75.23 kB / 0.4999 GB, free: 1.527 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.928e-05/0.434, allocations: 8 kB / 0.4999 GB, free: 1.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.4342, allocations: 342.9 kB / 0.5003 GB, free: 1.176 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004682/0.4346, allocations: 351.6 kB / 0.5006 GB, free: 0.832 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004642/0.4351, allocations: 351.6 kB / 0.5009 GB, free: 500 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004883/0.4356, allocations: 491.7 kB / 0.5014 GB, free: 15.96 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4356, allocations: 4 kB / 0.5014 GB, free: 15.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001389/0.437, allocations: 1.094 MB / 0.5025 GB, free: 14.82 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001613/0.4372, allocations: 248.8 kB / 0.5027 GB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.4372, allocations: 4 kB / 0.5027 GB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.4372, allocations: 0 / 0.5027 GB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.147e-05/0.4372, allocations: 4 kB / 0.5027 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.4373, allocations: 0 / 0.5027 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002738/0.4375, allocations: 39.88 kB / 0.5028 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001635/0.4377, allocations: 131.9 kB / 0.5029 GB, free: 14.36 MB / 394.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.0003251/0.438, allocations: 406 kB / 0.5033 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.4382, allocations: 95 kB / 0.5034 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002207/0.4384, allocations: 147.7 kB / 0.5035 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.4384, allocations: 0 / 0.5035 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.4384, allocations: 0 / 0.5035 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.4384, allocations: 3.984 kB / 0.5035 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002322/0.4407, allocations: 1.934 MB / 0.5054 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.4408, allocations: 0 / 0.5054 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.337e-06/0.4408, allocations: 7.938 kB / 0.5054 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.4408, allocations: 0 / 0.5054 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-05/0.4409, allocations: 39.91 kB / 0.5054 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.4409, allocations: 0 / 0.5054 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.4409, allocations: 0 / 0.5054 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00166/0.4425, allocations: 1.354 MB / 0.5068 GB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008033/0.4433, allocations: 0.5582 MB / 0.5073 GB, free: 9.594 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.4435, allocations: 59.95 kB / 0.5074 GB, free: 9.535 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002781/0.4438, allocations: 39.88 kB / 0.5074 GB, free: 9.496 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003719/0.4442, allocations: 231.7 kB / 0.5076 GB, free: 9.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001423/0.4443, allocations: 132 kB / 0.5078 GB, free: 9.141 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001062/0.4454, allocations: 0.8461 MB / 0.5086 GB, free: 8.297 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4454, allocations: 0 / 0.5086 GB, free: 8.297 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000418/0.4458, allocations: 120 kB / 0.5087 GB, free: 8.18 MB / 394.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.0002245/0.4461, allocations: 184.4 kB / 0.5089 GB, free: 7.992 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001602/0.4477, allocations: 1.526 MB / 0.5104 GB, free: 6.383 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4477, allocations: 0 / 0.5104 GB, free: 6.383 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.4487, allocations: 1.14 MB / 0.5115 GB, free: 5.156 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001049/0.4498, allocations: 276.6 kB / 0.5117 GB, free: 4.898 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00236/0.4521, allocations: 1.708 MB / 0.5134 GB, free: 3.16 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006987/0.4528, allocations: 1.031 MB / 0.5144 GB, free: 2.098 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001015/0.453, allocations: 33.52 kB / 0.5144 GB, free: 2.066 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.562e-05/0.453, allocations: 19.44 kB / 0.5145 GB, free: 2.047 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.453, allocations: 0 / 0.5145 GB, free: 2.047 MB / 394.7 MB Notification: Performance of Templates: time 0.01567/0.4687, allocations: 12.63 MB / 0.5268 GB, free: 5.203 MB / 410.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