Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.DLATREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGSRL.delay.inertialDelaySensitive.1..x|dLATREGSRL.delay.inertialDelaySensitive.1..y|dLATREGSRL.delay.inertialDelaySensitive.2..x|dLATREGSRL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL") translateModel(Modelica.Electrical.Digital.Examples.DLATREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGSRL.delay.inertialDelaySensitive.1..x|dLATREGSRL.delay.inertialDelaySensitive.1..y|dLATREGSRL.delay.inertialDelaySensitive.2..x|dLATREGSRL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009333/0.0009335, allocations: 176.3 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.38/1.38, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008198/0.0008197, allocations: 86.22 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.844e-05/1.839e-05, allocations: 4 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08731/0.08734, allocations: 47.59 MB / 363.1 MB, free: 7.074 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3176/0.405, allocations: 81.89 MB / 445 MB, free: 13.8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/0.4052, allocations: 69.45 kB / 445 MB, free: 13.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07109/0.4763, allocations: 38.57 MB / 483.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4764, allocations: 0 / 483.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.342e-05/0.4765, allocations: 16 kB / 483.6 MB, free: 13.21 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002174/0.4786, allocations: 1.311 MB / 484.9 MB, free: 11.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.4787, allocations: 8.031 kB / 484.9 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003361/0.479, allocations: 134.4 kB / 485.1 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000939/0.48, allocations: 0.5173 MB / 485.6 MB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.352e-05/0.4801, allocations: 12 kB / 485.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.848e-05/0.4802, allocations: 28 kB / 485.6 MB, free: 11.06 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007059/0.4809, allocations: 463.6 kB / 486.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009447/0.4818, allocations: 0.5793 MB / 486.7 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.4819, allocations: 0 / 486.7 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.878e-05/0.4819, allocations: 19.98 kB / 486.7 MB, free: 10 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.482, allocations: 3.984 kB / 486.7 MB, free: 9.996 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00214/0.4841, allocations: 1.129 MB / 487.8 MB, free: 8.824 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008059/0.4849, allocations: 0.6703 MB / 488.5 MB, free: 8.145 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007984/0.4857, allocations: 0.6647 MB / 489.1 MB, free: 7.477 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.4858, allocations: 4 kB / 489.1 MB, free: 7.473 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009202/0.4867, allocations: 0.7373 MB / 489.9 MB, free: 6.695 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.134e-06/0.4867, allocations: 0 / 489.9 MB, free: 6.695 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.001782/0.4885, allocations: 1.096 MB / 491 MB, free: 5.594 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002159/0.4887, allocations: 321 kB / 491.3 MB, free: 5.219 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002563/0.4913, allocations: 1.566 MB / 492.9 MB, free: 3.641 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.446e-05/0.4914, allocations: 41.69 kB / 492.9 MB, free: 3.594 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002677/0.4917, allocations: 250.3 kB / 493.1 MB, free: 3.344 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.4918, allocations: 75.16 kB / 493.2 MB, free: 3.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.125e-05/0.4918, allocations: 12 kB / 493.2 MB, free: 3.258 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.492, allocations: 374.8 kB / 493.6 MB, free: 2.883 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005608/0.4926, allocations: 443.7 kB / 494 MB, free: 2.449 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005494/0.4932, allocations: 439.5 kB / 494.5 MB, free: 2.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004061/0.4936, allocations: 292.7 kB / 494.7 MB, free: 1.734 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.4936, allocations: 4 kB / 494.7 MB, free: 1.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00145/0.4951, allocations: 1.023 MB / 495.8 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002168/0.4953, allocations: 293.5 kB / 496.1 MB, free: 372 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.4953, allocations: 3.984 kB / 496.1 MB, free: 368 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.4953, allocations: 4 kB / 496.1 MB, free: 364 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.6e-05/0.4954, allocations: 3.938 kB / 496.1 MB, free: 360 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.4954, allocations: 0 / 496.1 MB, free: 360 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003565/0.4957, allocations: 39.88 kB / 496.1 MB, free: 320 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001597/0.4959, allocations: 136.1 kB / 496.2 MB, free: 184 kB / 362.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: 37 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete 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.0004119/0.4963, allocations: 459.7 kB / 496.7 MB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/0.4965, allocations: 130.5 kB / 496.8 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004201/0.4969, allocations: 260.3 kB / 497.1 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.4969, allocations: 0 / 497.1 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.4969, allocations: 0 / 497.1 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.4969, allocations: 3.938 kB / 497.1 MB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002629/0.4996, allocations: 2.017 MB / 499.1 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.4996, allocations: 0 / 499.1 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.506e-06/0.4996, allocations: 0 / 499.1 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.4996, allocations: 0 / 499.1 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.061e-05/0.4997, allocations: 43.91 kB / 499.1 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.4997, allocations: 0 / 499.1 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.4997, allocations: 0 / 499.1 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001699/0.5014, allocations: 1.281 MB / 0.4887 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009862/0.5024, allocations: 0.6785 MB / 0.4893 GB, free: 11.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001926/0.5026, allocations: 63.95 kB / 0.4894 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003314/0.503, allocations: 31.97 kB / 0.4894 GB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006046/0.5036, allocations: 375.6 kB / 0.4898 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001657/0.5038, allocations: 135.9 kB / 0.4899 GB, free: 10.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001904/0.5057, allocations: 1.271 MB / 0.4912 GB, free: 9.305 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5057, allocations: 0 / 0.4912 GB, free: 9.305 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004903/0.5062, allocations: 140 kB / 0.4913 GB, free: 9.168 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,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.next_assign_val[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRL.delay.inertialDelaySensitive[1].x) * 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.0002453/0.5064, allocations: 189.6 kB / 0.4915 GB, free: 8.977 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001896/0.5083, allocations: 1.874 MB / 0.4933 GB, free: 7.004 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.5084, allocations: 4 kB / 0.4933 GB, free: 7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001289/0.5096, allocations: 1.417 MB / 0.4947 GB, free: 5.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001265/0.5109, allocations: 301 kB / 0.495 GB, free: 5.184 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003735/0.5147, allocations: 2.494 MB / 0.4974 GB, free: 2.652 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/0.5158, allocations: 1.231 MB / 0.4986 GB, free: 1.395 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001731/0.516, allocations: 33.83 kB / 0.4987 GB, free: 1.355 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.162e-05/0.516, allocations: 23.38 kB / 0.4987 GB, free: 1.332 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.516, allocations: 0 / 0.4987 GB, free: 1.332 MB / 378.7 MB Notification: Performance of Templates: time 0.02047/0.5365, allocations: 14.76 MB / 0.5131 GB, free: 2.188 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DLATREGSRL/DLATREGSRL.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches