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.001444/0.001444, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 221.5 MB / 230.3 MB, free: 7.562 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.0008891/0.0008891, allocations: 85.92 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.547e-05/1.55e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08067/0.0807, allocations: 50.43 MB / 387.5 MB, free: 7.559 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3084/0.3892, allocations: 82.18 MB / 469.6 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/0.3894, allocations: 69.72 kB / 469.7 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07033/0.4598, allocations: 26.95 MB / 496.7 MB, free: 1.691 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4598, allocations: 0 / 496.7 MB, free: 1.691 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.186e-05/0.4598, allocations: 8 kB / 496.7 MB, free: 1.684 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001581/0.4614, allocations: 1.008 MB / 497.7 MB, free: 0.5859 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.4615, allocations: 11.97 kB / 497.7 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002757/0.4618, allocations: 87.05 kB / 497.8 MB, free: 500 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008235/0.4626, allocations: 415.5 kB / 498.2 MB, free: 44 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.517e-05/0.4627, allocations: 19.94 kB / 498.2 MB, free: 24 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.984e-05/0.4628, allocations: 20 kB / 498.2 MB, free: 4 kB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007686/0.4636, allocations: 348.1 kB / 498.6 MB, free: 15.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.4646, allocations: 474.3 kB / 499 MB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.4646, allocations: 0 / 499 MB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.288e-05/0.4647, allocations: 8 kB / 499 MB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.4647, allocations: 4 kB / 499 MB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002164/0.4669, allocations: 0.8873 MB / 499.9 MB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008701/0.4678, allocations: 494.6 kB / 0.4887 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008115/0.4686, allocations: 484.9 kB / 0.4891 GB, free: 13.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.4687, allocations: 0 / 0.4891 GB, free: 13.28 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001056/0.4697, allocations: 0.6382 MB / 0.4898 GB, free: 12.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 2.595e-06/0.4698, allocations: 4 kB / 0.4898 GB, free: 12.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001937/0.4717, allocations: 0.8597 MB / 0.4906 GB, free: 11.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000222/0.4719, allocations: 279.3 kB / 0.4909 GB, free: 11.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002046/0.474, allocations: 0.9839 MB / 0.4918 GB, free: 10.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.884e-05/0.4741, allocations: 37.7 kB / 0.4919 GB, free: 10.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.4742, allocations: 149.9 kB / 0.492 GB, free: 10.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.4744, allocations: 67.27 kB / 0.4921 GB, free: 10.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.191e-05/0.4745, allocations: 4 kB / 0.4921 GB, free: 10.15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.4746, allocations: 346.8 kB / 0.4924 GB, free: 9.805 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006833/0.4753, allocations: 335.7 kB / 0.4927 GB, free: 9.477 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006373/0.476, allocations: 331.8 kB / 0.4931 GB, free: 9.152 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004392/0.4764, allocations: 244 kB / 0.4933 GB, free: 8.914 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4764, allocations: 3.938 kB / 0.4933 GB, free: 8.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001791/0.4782, allocations: 0.8248 MB / 0.4941 GB, free: 8.078 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002316/0.4785, allocations: 253.4 kB / 0.4943 GB, free: 7.789 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.4785, allocations: 0 / 0.4943 GB, free: 7.789 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.4785, allocations: 4 kB / 0.4943 GB, free: 7.785 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.01e-05/0.4786, allocations: 7.938 kB / 0.4944 GB, free: 7.777 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.4786, allocations: 4 kB / 0.4944 GB, free: 7.773 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004813/0.4791, allocations: 35.88 kB / 0.4944 GB, free: 7.738 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002124/0.4793, allocations: 124 kB / 0.4945 GB, free: 7.617 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: 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.0004664/0.4798, allocations: 402 kB / 0.4949 GB, free: 7.172 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001825/0.48, allocations: 87.06 kB / 0.495 GB, free: 7.086 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003758/0.4804, allocations: 147.9 kB / 0.4951 GB, free: 6.934 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.4804, allocations: 8 kB / 0.4951 GB, free: 6.926 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4804, allocations: 0 / 0.4951 GB, free: 6.926 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.4804, allocations: 3.984 kB / 0.4951 GB, free: 6.922 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003075/0.4835, allocations: 1.595 MB / 0.4967 GB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.4835, allocations: 0 / 0.4967 GB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.323e-05/0.4835, allocations: 3.984 kB / 0.4967 GB, free: 5.277 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.4836, allocations: 7.891 kB / 0.4967 GB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.162e-05/0.4837, allocations: 31.98 kB / 0.4967 GB, free: 5.238 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.4837, allocations: 0 / 0.4967 GB, free: 5.238 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.4837, allocations: 4 kB / 0.4967 GB, free: 5.234 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00216/0.4858, allocations: 1.061 MB / 0.4978 GB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001192/0.4871, allocations: 0.5582 MB / 0.4983 GB, free: 3.578 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002377/0.4873, allocations: 59.92 kB / 0.4984 GB, free: 3.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004777/0.4878, allocations: 39.86 kB / 0.4984 GB, free: 3.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005765/0.4884, allocations: 235.7 kB / 0.4986 GB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002197/0.4886, allocations: 131.9 kB / 0.4988 GB, free: 3.121 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001583/0.4902, allocations: 0.8109 MB / 0.4995 GB, free: 2.316 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4902, allocations: 0 / 0.4995 GB, free: 2.316 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007038/0.4909, allocations: 116 kB / 0.4997 GB, free: 2.203 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,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.000315/0.4913, allocations: 189.6 kB / 0.4998 GB, free: 2.012 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002227/0.4935, allocations: 1.472 MB / 0.5013 GB, free: 464 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4935, allocations: 0 / 0.5013 GB, free: 464 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/0.495, allocations: 1.129 MB / 0.5024 GB, free: 15.23 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001568/0.4965, allocations: 252.2 kB / 0.5026 GB, free: 14.99 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003728/0.5003, allocations: 1.688 MB / 0.5043 GB, free: 13.28 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/0.5014, allocations: 1.038 MB / 0.5053 GB, free: 12.21 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001754/0.5016, allocations: 45.73 kB / 0.5053 GB, free: 12.16 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.005e-05/0.5016, allocations: 15.44 kB / 0.5053 GB, free: 12.15 MB / 394.7 MB Notification: Performance of SimCode: time 6.91e-07/0.5016, allocations: 0 / 0.5053 GB, free: 12.15 MB / 394.7 MB Notification: Performance of Templates: time 0.02363/0.5253, allocations: 12.23 MB / 0.5173 GB, free: 15.7 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