Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.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.DLATREGL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGL.delay.inertialDelaySensitive.1..x|dLATREGL.delay.inertialDelaySensitive.1..y|dLATREGL.delay.inertialDelaySensitive.2..x|dLATREGL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGL") translateModel(Modelica.Electrical.Digital.Examples.DLATREGL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGL.delay.inertialDelaySensitive.1..x|dLATREGL.delay.inertialDelaySensitive.1..y|dLATREGL.delay.inertialDelaySensitive.2..x|dLATREGL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009802/0.0009801, allocations: 195.9 kB / 18.07 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 226.5 MB / 245.4 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007889/0.000789, allocations: 98 kB / 297.4 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000217/0.0002171, allocations: 8 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.196/0.1962, allocations: 51.3 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08655/0.2828, allocations: 83.71 MB / 492.4 MB, free: 7.883 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001722/0.283, allocations: 67.97 kB / 492.4 MB, free: 7.816 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2069/0.4899, allocations: 33.65 MB / 0.5138 GB, free: 94.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.49, allocations: 0 / 0.5138 GB, free: 94.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.147e-05/0.49, allocations: 14.25 kB / 0.5138 GB, free: 94.02 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.001019/0.491, allocations: 1.123 MB / 0.5149 GB, free: 93.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.4911, allocations: 7.812 kB / 0.5149 GB, free: 93.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.4912, allocations: 94.66 kB / 0.515 GB, free: 93.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004263/0.4916, allocations: 442.7 kB / 0.5154 GB, free: 92.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.669e-05/0.4917, allocations: 18.08 kB / 0.5154 GB, free: 92.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.81e-05/0.4917, allocations: 26.69 kB / 0.5154 GB, free: 92.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000701/0.4924, allocations: 0.4965 MB / 0.5159 GB, free: 92.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.4924, allocations: 4.125 kB / 0.5159 GB, free: 92.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.197e-05/0.4925, allocations: 21.97 kB / 0.5159 GB, free: 92.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.4925, allocations: 0 / 0.5159 GB, free: 92.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004729/0.493, allocations: 365.7 kB / 0.5163 GB, free: 92.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.4942, allocations: 0.9215 MB / 0.5172 GB, free: 92.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005348/0.4948, allocations: 0.495 MB / 0.5177 GB, free: 91.81 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004881/0.4953, allocations: 0.4927 MB / 0.5182 GB, free: 91.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.457e-05/0.4953, allocations: 3.562 kB / 0.5182 GB, free: 91.53 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006354/0.4959, allocations: 0.6293 MB / 0.5188 GB, free: 91.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.823e-06/0.4959, allocations: 0 / 0.5188 GB, free: 91.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001818/0.4978, allocations: 1.491 MB / 0.5202 GB, free: 90.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.4979, allocations: 287.9 kB / 0.5205 GB, free: 89.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00135/0.4992, allocations: 1.162 MB / 0.5216 GB, free: 89.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.78e-05/0.4993, allocations: 44.3 kB / 0.5217 GB, free: 89.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.831e-05/0.4994, allocations: 144.8 kB / 0.5218 GB, free: 89.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.35e-05/0.4995, allocations: 75.34 kB / 0.5219 GB, free: 89.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.114e-05/0.4995, allocations: 10.75 kB / 0.5219 GB, free: 89.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.791e-05/0.4996, allocations: 341.5 kB / 0.5222 GB, free: 88.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004098/0.5, allocations: 338.2 kB / 0.5226 GB, free: 88.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004114/0.5004, allocations: 375.4 kB / 0.5229 GB, free: 88.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008637/0.5013, allocations: 0.9729 MB / 0.5239 GB, free: 87.21 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.5013, allocations: 0 / 0.5239 GB, free: 87.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001252/0.5026, allocations: 1.109 MB / 0.5249 GB, free: 86.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/0.5027, allocations: 247.8 kB / 0.5252 GB, free: 85.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.5027, allocations: 0 / 0.5252 GB, free: 85.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.5027, allocations: 64 / 0.5252 GB, free: 85.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.389e-05/0.5028, allocations: 15.78 kB / 0.5252 GB, free: 85.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.5028, allocations: 0 / 0.5252 GB, free: 85.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000298/0.5031, allocations: 43.81 kB / 0.5252 GB, free: 85.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.5032, allocations: 132.2 kB / 0.5254 GB, free: 85.59 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.dLATREGL.delay.inertialDelaySensitive[2].y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.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.0007842/0.504, allocations: 0.7554 MB / 0.5261 GB, free: 84.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.108e-05/0.5041, allocations: 87.06 kB / 0.5262 GB, free: 84.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001965/0.5043, allocations: 155.5 kB / 0.5263 GB, free: 84.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.5043, allocations: 3.938 kB / 0.5263 GB, free: 84.54 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.5043, allocations: 0 / 0.5263 GB, free: 84.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.5043, allocations: 7.844 kB / 0.5263 GB, free: 84.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001922/0.5063, allocations: 1.957 MB / 0.5283 GB, free: 82.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.5063, allocations: 0 / 0.5283 GB, free: 82.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.848e-06/0.5063, allocations: 0 / 0.5283 GB, free: 82.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.5063, allocations: 3.938 kB / 0.5283 GB, free: 82.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.935e-05/0.5064, allocations: 43.92 kB / 0.5283 GB, free: 82.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.5064, allocations: 3.844 kB / 0.5283 GB, free: 82.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.5064, allocations: 3.984 kB / 0.5283 GB, free: 82.44 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001335/0.5077, allocations: 1.376 MB / 0.5297 GB, free: 81 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006468/0.5084, allocations: 0.5581 MB / 0.5302 GB, free: 80.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/0.5085, allocations: 59.95 kB / 0.5303 GB, free: 80.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.5088, allocations: 31.97 kB / 0.5303 GB, free: 80.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003119/0.5091, allocations: 235.8 kB / 0.5305 GB, free: 80.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001152/0.5093, allocations: 131.9 kB / 0.5306 GB, free: 79.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008985/0.5102, allocations: 0.8616 MB / 0.5315 GB, free: 79.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.5102, allocations: 3.938 kB / 0.5315 GB, free: 79.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004007/0.5106, allocations: 119.9 kB / 0.5316 GB, free: 79 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,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGL.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.0001916/0.5108, allocations: 184.7 kB / 0.5318 GB, free: 78.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001269/0.512, allocations: 1.523 MB / 0.5333 GB, free: 77.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.5121, allocations: 4 kB / 0.5333 GB, free: 77.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000757/0.5128, allocations: 1.132 MB / 0.5344 GB, free: 75.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009553/0.5138, allocations: 274.1 kB / 0.5346 GB, free: 75.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.5162, allocations: 2.214 MB / 0.5368 GB, free: 73.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005072/0.5167, allocations: 1.015 MB / 0.5378 GB, free: 72.44 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.633e-05/0.5167, allocations: 15.44 kB / 0.5378 GB, free: 72.42 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.5167, allocations: 0 / 0.5378 GB, free: 72.42 MB / 378.7 MB Notification: Performance of Templates: time 0.01045/0.5272, allocations: 7.693 MB / 0.5453 GB, free: 64.66 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGL --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DLATREGL/DLATREGL.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches