Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.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.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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.DLATREG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001481/0.001481, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008201/0.0008201, allocations: 94.22 kB / 286.7 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.53e-05/1.527e-05, allocations: 4 kB / 343.7 MB, free: 8.309 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09584/0.09587, allocations: 51.48 MB / 395.2 MB, free: 4.793 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.281/0.3769, allocations: 83.02 MB / 478.2 MB, free: 9.785 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001474/0.3771, allocations: 68.73 kB / 478.2 MB, free: 9.762 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04786/0.425, allocations: 27 MB / 0.4934 GB, free: 4.438 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.425, allocations: 0 / 0.4934 GB, free: 4.438 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.035e-05/0.425, allocations: 8 kB / 0.4934 GB, free: 4.43 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.0009991/0.426, allocations: 1.007 MB / 0.4944 GB, free: 3.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.4261, allocations: 8.031 kB / 0.4944 GB, free: 3.402 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.4262, allocations: 90.94 kB / 0.4945 GB, free: 3.312 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000537/0.4268, allocations: 413.7 kB / 0.4949 GB, free: 2.898 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.974e-05/0.4268, allocations: 19.56 kB / 0.4949 GB, free: 2.883 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.82e-05/0.4269, allocations: 20 kB / 0.4949 GB, free: 2.863 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004591/0.4274, allocations: 345.5 kB / 0.4953 GB, free: 2.629 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006434/0.428, allocations: 482.2 kB / 0.4957 GB, free: 2.188 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.428, allocations: 3.984 kB / 0.4957 GB, free: 2.184 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.009e-05/0.4281, allocations: 8 kB / 0.4957 GB, free: 2.176 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.4281, allocations: 7.984 kB / 0.4957 GB, free: 2.168 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.4294, allocations: 0.8835 MB / 0.4966 GB, free: 1.246 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005277/0.4299, allocations: 486.6 kB / 0.4971 GB, free: 0.7578 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000495/0.4304, allocations: 484.9 kB / 0.4975 GB, free: 288 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.049e-05/0.4304, allocations: 4 kB / 0.4975 GB, free: 284 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006705/0.4311, allocations: 0.6266 MB / 0.4981 GB, free: 15.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.724e-06/0.4311, allocations: 0 / 0.4981 GB, free: 15.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001259/0.4324, allocations: 0.8703 MB / 0.499 GB, free: 14.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.4325, allocations: 279.3 kB / 0.4993 GB, free: 14.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001173/0.4337, allocations: 0.98 MB / 0.5002 GB, free: 13.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.867e-05/0.4338, allocations: 41.7 kB / 0.5003 GB, free: 13.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.813e-05/0.4339, allocations: 153.8 kB / 0.5004 GB, free: 13.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.81e-05/0.434, allocations: 67.2 kB / 0.5005 GB, free: 13.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.027e-05/0.434, allocations: 8 kB / 0.5005 GB, free: 13.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.4342, allocations: 346.9 kB / 0.5008 GB, free: 12.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004095/0.4346, allocations: 331.8 kB / 0.5011 GB, free: 12.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003944/0.435, allocations: 331.8 kB / 0.5014 GB, free: 12.15 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000297/0.4353, allocations: 235.8 kB / 0.5017 GB, free: 11.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4353, allocations: 4 kB / 0.5017 GB, free: 11.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001142/0.4364, allocations: 0.8303 MB / 0.5025 GB, free: 11.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001657/0.4366, allocations: 251.8 kB / 0.5027 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.4366, allocations: 0 / 0.5027 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.4367, allocations: 0 / 0.5027 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.506e-05/0.4367, allocations: 7.938 kB / 0.5027 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.4367, allocations: 0 / 0.5027 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002905/0.437, allocations: 35.88 kB / 0.5028 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001384/0.4371, allocations: 123 kB / 0.5029 GB, free: 10.63 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.0003262/0.4375, allocations: 417.9 kB / 0.5033 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.4376, allocations: 87.06 kB / 0.5034 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000223/0.4378, allocations: 140 kB / 0.5035 GB, free: 9.945 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.4378, allocations: 7.984 kB / 0.5035 GB, free: 9.938 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.4378, allocations: 0 / 0.5035 GB, free: 9.938 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.4379, allocations: 0 / 0.5035 GB, free: 9.938 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002119/0.44, allocations: 1.595 MB / 0.5051 GB, free: 8.297 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.44, allocations: 7.938 kB / 0.5051 GB, free: 8.289 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.868e-06/0.44, allocations: 0 / 0.5051 GB, free: 8.289 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.093e-06/0.44, allocations: 3.984 kB / 0.5051 GB, free: 8.285 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.3e-05/0.4401, allocations: 35.92 kB / 0.5051 GB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.4401, allocations: 0 / 0.5051 GB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.4401, allocations: 0 / 0.5051 GB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.4415, allocations: 1.057 MB / 0.5061 GB, free: 7.176 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000772/0.4423, allocations: 0.562 MB / 0.5067 GB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001669/0.4425, allocations: 59.97 kB / 0.5067 GB, free: 6.535 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003005/0.4428, allocations: 39.86 kB / 0.5068 GB, free: 6.496 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004008/0.4432, allocations: 235.7 kB / 0.507 GB, free: 6.266 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001474/0.4433, allocations: 128.4 kB / 0.5071 GB, free: 6.141 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0011/0.4444, allocations: 0.807 MB / 0.5079 GB, free: 5.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4445, allocations: 0 / 0.5079 GB, free: 5.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004372/0.4449, allocations: 116 kB / 0.508 GB, free: 5.227 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.0002371/0.4451, allocations: 189.6 kB / 0.5082 GB, free: 5.031 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001593/0.4468, allocations: 1.48 MB / 0.5096 GB, free: 3.465 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4468, allocations: 0 / 0.5096 GB, free: 3.465 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009732/0.4477, allocations: 1.117 MB / 0.5107 GB, free: 2.262 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.4489, allocations: 279.1 kB / 0.511 GB, free: 2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002694/0.4516, allocations: 1.688 MB / 0.5127 GB, free: 292 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007813/0.4524, allocations: 1.035 MB / 0.5137 GB, free: 15.22 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001427/0.4525, allocations: 45.73 kB / 0.5137 GB, free: 15.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.499e-05/0.4526, allocations: 19.44 kB / 0.5137 GB, free: 15.16 MB / 394.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4526, allocations: 0 / 0.5137 GB, free: 15.16 MB / 394.7 MB Notification: Performance of Templates: time 0.01605/0.4686, allocations: 12.23 MB / 0.5257 GB, free: 2.762 MB / 394.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Digital.Examples.DLATREG.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches