Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.644/1.644, allocations: 221.5 MB / 230.3 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009159/0.0009159, allocations: 94.42 kB / 281.2 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.623e-05/1.617e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08729/0.08732, allocations: 50.42 MB / 387.5 MB, free: 7.562 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2806/0.3679, allocations: 82.52 MB / 470 MB, free: 12.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/0.3682, allocations: 63.97 kB / 470 MB, free: 12.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05839/0.4266, allocations: 30.93 MB / 0.4892 GB, free: 13.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4266, allocations: 0 / 0.4892 GB, free: 13.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.065e-05/0.4267, allocations: 19.94 kB / 0.4892 GB, free: 13.37 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.001345/0.428, allocations: 1.315 MB / 0.4905 GB, free: 11.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.4281, allocations: 8.031 kB / 0.4905 GB, free: 11.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.4283, allocations: 130.5 kB / 0.4907 GB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006396/0.4289, allocations: 0.5287 MB / 0.4912 GB, free: 11.24 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.831e-05/0.429, allocations: 16 kB / 0.4912 GB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.89e-05/0.429, allocations: 24 kB / 0.4912 GB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005875/0.4296, allocations: 455.7 kB / 0.4917 GB, free: 10.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007774/0.4304, allocations: 0.5871 MB / 0.4922 GB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.4304, allocations: 0 / 0.4922 GB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.717e-05/0.4305, allocations: 8 kB / 0.4922 GB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.4305, allocations: 8 kB / 0.4922 GB, free: 10.15 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.4321, allocations: 1.129 MB / 0.4933 GB, free: 8.977 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006766/0.4328, allocations: 0.6781 MB / 0.494 GB, free: 8.289 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006417/0.4334, allocations: 0.6647 MB / 0.4947 GB, free: 7.621 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.12e-05/0.4334, allocations: 0 / 0.4947 GB, free: 7.621 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007941/0.4342, allocations: 0.7408 MB / 0.4954 GB, free: 6.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 1.764e-06/0.4342, allocations: 3.938 kB / 0.4954 GB, free: 6.836 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.001453/0.4357, allocations: 1.096 MB / 0.4965 GB, free: 5.734 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001577/0.4359, allocations: 325 kB / 0.4968 GB, free: 5.355 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001836/0.4377, allocations: 1.555 MB / 0.4983 GB, free: 3.785 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.131e-05/0.4378, allocations: 45.69 kB / 0.4983 GB, free: 3.734 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002184/0.438, allocations: 242.3 kB / 0.4986 GB, free: 3.492 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.4381, allocations: 79.14 kB / 0.4986 GB, free: 3.414 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.041e-05/0.4382, allocations: 12 kB / 0.4986 GB, free: 3.402 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.4384, allocations: 382.7 kB / 0.499 GB, free: 3.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005173/0.4389, allocations: 435.8 kB / 0.4994 GB, free: 2.594 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004926/0.4394, allocations: 436.4 kB / 0.4998 GB, free: 2.168 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003476/0.4398, allocations: 307.7 kB / 0.5001 GB, free: 1.867 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4398, allocations: 0 / 0.5001 GB, free: 1.867 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001293/0.4411, allocations: 1.02 MB / 0.5011 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002013/0.4413, allocations: 289.5 kB / 0.5014 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.4413, allocations: 4 kB / 0.5014 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.4413, allocations: 3.953 kB / 0.5014 GB, free: 0.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.296e-05/0.4413, allocations: 3.938 kB / 0.5014 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.157e-06/0.4413, allocations: 0 / 0.5014 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003204/0.4417, allocations: 47.91 kB / 0.5015 GB, free: 460 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001485/0.4418, allocations: 132.2 kB / 0.5016 GB, free: 328 kB / 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: 37 ($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,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,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,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,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 () * 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.0003987/0.4422, allocations: 451.7 kB / 0.502 GB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.4424, allocations: 138.3 kB / 0.5021 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003576/0.4428, allocations: 256.3 kB / 0.5024 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.4428, allocations: 3.953 kB / 0.5024 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.4428, allocations: 0 / 0.5024 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.4428, allocations: 4 kB / 0.5024 GB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002497/0.4453, allocations: 2.009 MB / 0.5044 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4453, allocations: 0 / 0.5044 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.201e-05/0.4453, allocations: 4 kB / 0.5044 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.4453, allocations: 0 / 0.5044 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.119e-05/0.4454, allocations: 39.97 kB / 0.5044 GB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.4454, allocations: 7.891 kB / 0.5044 GB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.4454, allocations: 0 / 0.5044 GB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001648/0.4471, allocations: 1.286 MB / 0.5057 GB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009479/0.448, allocations: 0.6785 MB / 0.5063 GB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001753/0.4482, allocations: 59.95 kB / 0.5064 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003319/0.4486, allocations: 39.88 kB / 0.5064 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005467/0.4491, allocations: 379.6 kB / 0.5068 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001587/0.4493, allocations: 127.9 kB / 0.5069 GB, free: 10.71 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001719/0.451, allocations: 1.271 MB / 0.5082 GB, free: 9.441 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.451, allocations: 0 / 0.5082 GB, free: 9.441 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000471/0.4515, allocations: 148 kB / 0.5083 GB, free: 9.297 MB / 394.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) * 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.0002412/0.4518, allocations: 189.6 kB / 0.5085 GB, free: 9.105 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.4535, allocations: 1.866 MB / 0.5103 GB, free: 7.141 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4535, allocations: 0 / 0.5103 GB, free: 7.141 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.4546, allocations: 1.413 MB / 0.5117 GB, free: 5.629 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.4558, allocations: 299 kB / 0.512 GB, free: 5.336 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003383/0.4592, allocations: 2.494 MB / 0.5144 GB, free: 2.805 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000959/0.4601, allocations: 1.227 MB / 0.5156 GB, free: 1.551 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001387/0.4603, allocations: 46.23 kB / 0.5156 GB, free: 1.504 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.696e-05/0.4603, allocations: 19.38 kB / 0.5157 GB, free: 1.484 MB / 394.7 MB Notification: Performance of SimCode: time 5.71e-07/0.4603, allocations: 0 / 0.5157 GB, free: 1.484 MB / 394.7 MB Notification: Performance of Templates: time 0.01859/0.4789, allocations: 14.76 MB / 0.5301 GB, free: 2.422 MB / 410.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches