Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Digital.Examples.DLATREG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009504/0.0009504, allocations: 198.9 kB / 18.07 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.233/1.233, allocations: 226.5 MB / 245.4 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000779/0.0007792, allocations: 106.5 kB / 297.4 MB, free: 6.633 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002052/0.0002052, allocations: 8 kB / 357.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1994/0.1996, allocations: 51.29 MB / 408.7 MB, free: 27.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08753/0.2872, allocations: 83.67 MB / 492.3 MB, free: 7.879 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002176/0.2874, allocations: 71.97 kB / 492.4 MB, free: 7.809 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1976/0.4851, allocations: 27.01 MB / 0.5072 GB, free: 93.94 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.4851, allocations: 1.781 kB / 0.5072 GB, free: 93.94 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.107e-05/0.4852, allocations: 8.625 kB / 0.5073 GB, free: 93.94 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.0009085/0.4861, allocations: 1.123 MB / 0.5083 GB, free: 93.17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.4861, allocations: 12.97 kB / 0.5084 GB, free: 93.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.4862, allocations: 91.56 kB / 0.5084 GB, free: 93.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004381/0.4867, allocations: 455.7 kB / 0.5089 GB, free: 92.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.899e-05/0.4867, allocations: 18.19 kB / 0.5089 GB, free: 92.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.487e-05/0.4868, allocations: 24.06 kB / 0.5089 GB, free: 92.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007794/0.4876, allocations: 0.489 MB / 0.5094 GB, free: 92.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.4876, allocations: 192 / 0.5094 GB, free: 92.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.279e-05/0.4877, allocations: 21.12 kB / 0.5094 GB, free: 92.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.4877, allocations: 2.75 kB / 0.5094 GB, free: 92.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006549/0.4883, allocations: 355.9 kB / 0.5098 GB, free: 92.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001355/0.4897, allocations: 0.9252 MB / 0.5107 GB, free: 92.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006016/0.4903, allocations: 0.4998 MB / 0.5112 GB, free: 92.42 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005489/0.4909, allocations: 499.3 kB / 0.5116 GB, free: 92.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.164e-05/0.4909, allocations: 7.219 kB / 0.5116 GB, free: 92.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006272/0.4915, allocations: 0.623 MB / 0.5122 GB, free: 92.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 2.334e-06/0.4915, allocations: 0 / 0.5122 GB, free: 92.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.00182/0.4934, allocations: 1.51 MB / 0.5137 GB, free: 91.87 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.4935, allocations: 287.3 kB / 0.514 GB, free: 91.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001191/0.4947, allocations: 1.155 MB / 0.5151 GB, free: 91.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.487e-05/0.4948, allocations: 41.48 kB / 0.5152 GB, free: 91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.341e-05/0.4948, allocations: 140.9 kB / 0.5153 GB, free: 90.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.681e-05/0.4949, allocations: 71.27 kB / 0.5154 GB, free: 90.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.252e-05/0.495, allocations: 11.59 kB / 0.5154 GB, free: 90.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.823e-05/0.495, allocations: 341 kB / 0.5157 GB, free: 90.51 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004816/0.4955, allocations: 347.9 kB / 0.516 GB, free: 90.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004235/0.496, allocations: 369.3 kB / 0.5164 GB, free: 90.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007622/0.4967, allocations: 0.9757 MB / 0.5173 GB, free: 89.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4967, allocations: 0 / 0.5173 GB, free: 89.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001207/0.498, allocations: 1.112 MB / 0.5184 GB, free: 89.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001261/0.4981, allocations: 254.1 kB / 0.5187 GB, free: 88.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.4981, allocations: 0 / 0.5187 GB, free: 88.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.4981, allocations: 3.531 kB / 0.5187 GB, free: 88.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.631e-05/0.4982, allocations: 7.688 kB / 0.5187 GB, free: 88.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.4982, allocations: 7.469 kB / 0.5187 GB, free: 88.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003354/0.4985, allocations: 34.22 kB / 0.5187 GB, free: 88.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/0.4987, allocations: 126.3 kB / 0.5188 GB, free: 88.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dLATREG.delay.inertialDelaySensitive[2].y,$PRE.dLATREG.delay.inertialDelaySensitive[1].y,$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,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,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 () * Number of clocked 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.0007214/0.4994, allocations: 0.7615 MB / 0.5196 GB, free: 88.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.4995, allocations: 89.78 kB / 0.5197 GB, free: 88.28 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001852/0.4997, allocations: 152.5 kB / 0.5198 GB, free: 88.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.4997, allocations: 7.031 kB / 0.5198 GB, free: 88.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.4997, allocations: 0 / 0.5198 GB, free: 88.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.4997, allocations: 6.703 kB / 0.5198 GB, free: 88.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001971/0.5017, allocations: 1.95 MB / 0.5217 GB, free: 87.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.5017, allocations: 3.875 kB / 0.5217 GB, free: 87.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.338e-05/0.5017, allocations: 12.86 kB / 0.5217 GB, free: 87.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.5017, allocations: 3.938 kB / 0.5217 GB, free: 87.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-05/0.5018, allocations: 28.64 kB / 0.5218 GB, free: 87.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.5018, allocations: 3.438 kB / 0.5218 GB, free: 87.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.5018, allocations: 0 / 0.5218 GB, free: 87.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/0.5033, allocations: 1.388 MB / 0.5231 GB, free: 86.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007149/0.504, allocations: 0.5605 MB / 0.5237 GB, free: 86.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.5042, allocations: 58.44 kB / 0.5237 GB, free: 86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002723/0.5044, allocations: 39.03 kB / 0.5238 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003218/0.5048, allocations: 236.8 kB / 0.524 GB, free: 85.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.5049, allocations: 127.2 kB / 0.5241 GB, free: 85.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008959/0.5058, allocations: 0.8549 MB / 0.525 GB, free: 84.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5058, allocations: 0 / 0.525 GB, free: 84.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004343/0.5062, allocations: 124 kB / 0.5251 GB, free: 84.84 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) * Number of clocked states: 0 () * 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.0001889/0.5064, allocations: 184.8 kB / 0.5253 GB, free: 84.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0013/0.5077, allocations: 1.518 MB / 0.5267 GB, free: 83.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5078, allocations: 0 / 0.5267 GB, free: 83.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000741/0.5085, allocations: 1.139 MB / 0.5278 GB, free: 82.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009765/0.5095, allocations: 275.6 kB / 0.5281 GB, free: 81.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002459/0.512, allocations: 2.214 MB / 0.5303 GB, free: 79.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004845/0.5125, allocations: 1.023 MB / 0.5313 GB, free: 78.49 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.089e-05/0.5125, allocations: 15.44 kB / 0.5313 GB, free: 78.47 MB / 378.7 MB Notification: Performance of SimCode: time 7.91e-07/0.5125, allocations: 0 / 0.5313 GB, free: 78.47 MB / 378.7 MB Notification: Performance of Templates: time 0.007885/0.5204, allocations: 7.687 MB / 0.5388 GB, free: 70.76 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREG.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREG.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREG --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREG_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DLATREG/DLATREG.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREG.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches