Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.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.DLATREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGSRH.delay.inertialDelaySensitive.1..x|dLATREGSRH.delay.inertialDelaySensitive.1..y|dLATREGSRH.delay.inertialDelaySensitive.2..x|dLATREGSRH.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH") translateModel(Modelica.Electrical.Digital.Examples.DLATREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGSRH.delay.inertialDelaySensitive.1..x|dLATREGSRH.delay.inertialDelaySensitive.1..y|dLATREGSRH.delay.inertialDelaySensitive.2..x|dLATREGSRH.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002056/0.002056, allocations: 202.6 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.231/1.231, allocations: 227.2 MB / 245 MB, free: 5.781 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008398/0.0008398, allocations: 108.4 kB / 297.3 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002075/0.0002077, allocations: 8 kB / 357.9 MB, free: 9.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1941/0.1943, allocations: 51.48 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09161/0.286, allocations: 84.07 MB / 493.5 MB, free: 6.535 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001566/0.2862, allocations: 68.88 kB / 493.5 MB, free: 6.469 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2103/0.4965, allocations: 31.02 MB / 0.5123 GB, free: 93.13 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4965, allocations: 0 / 0.5123 GB, free: 93.13 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.518e-05/0.4966, allocations: 12.94 kB / 0.5123 GB, free: 93.13 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001246/0.4978, allocations: 1.529 MB / 0.5138 GB, free: 92.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.4979, allocations: 10.12 kB / 0.5138 GB, free: 92.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.498, allocations: 133.5 kB / 0.5139 GB, free: 91.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006358/0.4987, allocations: 0.5146 MB / 0.5144 GB, free: 91.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.684e-05/0.4987, allocations: 19.56 kB / 0.5144 GB, free: 91.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.172e-05/0.4988, allocations: 34.31 kB / 0.5145 GB, free: 91.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000775/0.4996, allocations: 0.6262 MB / 0.5151 GB, free: 91.58 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.4996, allocations: 0 / 0.5151 GB, free: 91.58 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.949e-05/0.4997, allocations: 18.28 kB / 0.5151 GB, free: 91.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.4997, allocations: 2.281 kB / 0.5151 GB, free: 91.58 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005391/0.5002, allocations: 473 kB / 0.5155 GB, free: 91.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001604/0.5018, allocations: 1.179 MB / 0.5167 GB, free: 91.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006384/0.5025, allocations: 0.6939 MB / 0.5174 GB, free: 90.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.518e-06/0.5025, allocations: 4.047 kB / 0.5174 GB, free: 90.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007241/0.5032, allocations: 0.7559 MB / 0.5181 GB, free: 90.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 1.492e-06/0.5032, allocations: 0 / 0.5181 GB, free: 90.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.002078/0.5053, allocations: 2.136 MB / 0.5202 GB, free: 88.92 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.5054, allocations: 329 kB / 0.5205 GB, free: 88.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001739/0.5072, allocations: 1.632 MB / 0.5221 GB, free: 87.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.044e-05/0.5073, allocations: 44.47 kB / 0.5222 GB, free: 87.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001689/0.5074, allocations: 247 kB / 0.5224 GB, free: 87.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.695e-05/0.5075, allocations: 76.5 kB / 0.5225 GB, free: 87.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-05/0.5076, allocations: 11.16 kB / 0.5225 GB, free: 87.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.742e-05/0.5077, allocations: 376.4 kB / 0.5228 GB, free: 86.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004876/0.5082, allocations: 457 kB / 0.5233 GB, free: 86.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000482/0.5087, allocations: 482.2 kB / 0.5237 GB, free: 86.26 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004388/0.5091, allocations: 0.5994 MB / 0.5243 GB, free: 85.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.5091, allocations: 4 kB / 0.5243 GB, free: 85.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001297/0.5104, allocations: 1.353 MB / 0.5256 GB, free: 84.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001282/0.5106, allocations: 293.5 kB / 0.5259 GB, free: 83.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.5106, allocations: 3.984 kB / 0.5259 GB, free: 83.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.5106, allocations: 4 kB / 0.5259 GB, free: 83.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.333e-05/0.5106, allocations: 7.562 kB / 0.5259 GB, free: 83.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.5107, allocations: 4 kB / 0.5259 GB, free: 83.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002951/0.511, allocations: 43.83 kB / 0.526 GB, free: 83.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/0.5111, allocations: 136 kB / 0.5261 GB, free: 83.68 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: 37 ($PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 8 * 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.0008133/0.5119, allocations: 0.9952 MB / 0.5271 GB, free: 82.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.512, allocations: 134.4 kB / 0.5272 GB, free: 82.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002917/0.5123, allocations: 243.9 kB / 0.5274 GB, free: 82.26 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.5123, allocations: 3.984 kB / 0.5274 GB, free: 82.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.5123, allocations: 0 / 0.5274 GB, free: 82.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.5123, allocations: 4 kB / 0.5274 GB, free: 82.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002305/0.5147, allocations: 2.419 MB / 0.5298 GB, free: 79.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.5147, allocations: 0 / 0.5298 GB, free: 79.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.316e-06/0.5147, allocations: 4 kB / 0.5298 GB, free: 79.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.5147, allocations: 0 / 0.5298 GB, free: 79.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.508e-05/0.5148, allocations: 31.98 kB / 0.5298 GB, free: 79.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.5148, allocations: 0 / 0.5298 GB, free: 79.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.5148, allocations: 3.953 kB / 0.5298 GB, free: 79.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/0.5163, allocations: 1.669 MB / 0.5315 GB, free: 77.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008562/0.5172, allocations: 0.6746 MB / 0.5321 GB, free: 77.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001445/0.5173, allocations: 59.97 kB / 0.5322 GB, free: 77.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002949/0.5176, allocations: 35.95 kB / 0.5322 GB, free: 77.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004381/0.5181, allocations: 379 kB / 0.5326 GB, free: 76.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/0.5182, allocations: 135.9 kB / 0.5327 GB, free: 76.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0014/0.5196, allocations: 1.345 MB / 0.534 GB, free: 75.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5196, allocations: 0 / 0.534 GB, free: 75.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004193/0.5201, allocations: 148 kB / 0.5342 GB, free: 75.17 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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.next_assign_val[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRH.delay.inertialDelaySensitive[1].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 8 * 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.0001922/0.5203, allocations: 189.3 kB / 0.5344 GB, free: 74.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.5217, allocations: 1.934 MB / 0.5362 GB, free: 72.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.5217, allocations: 0 / 0.5362 GB, free: 72.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009042/0.5226, allocations: 1.444 MB / 0.5377 GB, free: 71.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009201/0.5236, allocations: 303.1 kB / 0.5379 GB, free: 71.13 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003041/0.5266, allocations: 3.153 MB / 0.541 GB, free: 67.94 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006835/0.5273, allocations: 1.223 MB / 0.5422 GB, free: 66.69 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.5275, allocations: 40.23 kB / 0.5423 GB, free: 66.65 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.336e-05/0.5275, allocations: 19.44 kB / 0.5423 GB, free: 66.63 MB / 378.7 MB Notification: Performance of SimCode: time 3.5e-07/0.5275, allocations: 0 / 0.5423 GB, free: 66.63 MB / 378.7 MB Notification: Performance of Templates: time 0.0137/0.5412, allocations: 15.24 MB / 0.5572 GB, free: 51.2 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DLATREGSRH/DLATREGSRH.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches