Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001044/0.001044, allocations: 198.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.218/1.218, allocations: 226.5 MB / 245.4 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006933/0.0006933, allocations: 105.1 kB / 297.4 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000231/0.000231, allocations: 15.98 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1941/0.1944, allocations: 51.29 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09057/0.285, allocations: 83.99 MB / 492.7 MB, free: 7.613 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.2853, allocations: 67.97 kB / 492.7 MB, free: 7.547 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2047/0.49, allocations: 31.02 MB / 0.5115 GB, free: 93.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4901, allocations: 3.938 kB / 0.5115 GB, free: 93.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.503e-05/0.4901, allocations: 13.12 kB / 0.5115 GB, free: 93.48 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.001154/0.4913, allocations: 1.506 MB / 0.5129 GB, free: 92.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.4913, allocations: 14.48 kB / 0.513 GB, free: 92.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.4914, allocations: 132.6 kB / 0.5131 GB, free: 92.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005153/0.492, allocations: 0.5714 MB / 0.5136 GB, free: 91.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.693e-05/0.492, allocations: 17.81 kB / 0.5137 GB, free: 91.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.653e-05/0.4921, allocations: 32.12 kB / 0.5137 GB, free: 91.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008628/0.493, allocations: 0.6219 MB / 0.5143 GB, free: 91.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.493, allocations: 192 / 0.5143 GB, free: 91.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.987e-05/0.493, allocations: 19.06 kB / 0.5143 GB, free: 91.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.4931, allocations: 0 / 0.5143 GB, free: 91.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005718/0.4936, allocations: 475.1 kB / 0.5148 GB, free: 91.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.4951, allocations: 1.17 MB / 0.5159 GB, free: 91.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006972/0.4958, allocations: 0.6957 MB / 0.5166 GB, free: 91.23 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006307/0.4965, allocations: 0.6838 MB / 0.5173 GB, free: 90.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.4965, allocations: 3.75 kB / 0.5173 GB, free: 90.92 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007507/0.4973, allocations: 0.7402 MB / 0.518 GB, free: 90.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 3.296e-06/0.4973, allocations: 0 / 0.518 GB, free: 90.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.002117/0.4994, allocations: 1.878 MB / 0.5198 GB, free: 89.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/0.4995, allocations: 331 kB / 0.5201 GB, free: 89.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00206/0.5016, allocations: 1.856 MB / 0.522 GB, free: 88.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.311e-05/0.5017, allocations: 44.03 kB / 0.522 GB, free: 88.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001786/0.5019, allocations: 244.5 kB / 0.5222 GB, free: 88.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.727e-05/0.502, allocations: 86.02 kB / 0.5223 GB, free: 88.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.013e-05/0.502, allocations: 14.12 kB / 0.5223 GB, free: 88.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.999e-05/0.5021, allocations: 380.5 kB / 0.5227 GB, free: 87.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005172/0.5027, allocations: 445.5 kB / 0.5231 GB, free: 87.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005168/0.5032, allocations: 476.3 kB / 0.5236 GB, free: 87.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000911/0.5041, allocations: 1.161 MB / 0.5247 GB, free: 86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.5041, allocations: 0 / 0.5247 GB, free: 86 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00143/0.5056, allocations: 1.356 MB / 0.526 GB, free: 84.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001424/0.5057, allocations: 298.1 kB / 0.5263 GB, free: 84.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.5057, allocations: 7.828 kB / 0.5263 GB, free: 84.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.5058, allocations: 7.938 kB / 0.5263 GB, free: 84.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.494e-05/0.5058, allocations: 0 / 0.5263 GB, free: 84.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.5058, allocations: 4 kB / 0.5263 GB, free: 84.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000366/0.5062, allocations: 47.94 kB / 0.5264 GB, free: 84.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001322/0.5063, allocations: 131.9 kB / 0.5265 GB, free: 84.06 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.001029/0.5073, allocations: 0.9894 MB / 0.5275 GB, free: 83.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.5075, allocations: 130.5 kB / 0.5276 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000332/0.5078, allocations: 255.8 kB / 0.5278 GB, free: 82.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.5078, allocations: 0 / 0.5278 GB, free: 82.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.5078, allocations: 0 / 0.5278 GB, free: 82.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.5078, allocations: 4 kB / 0.5278 GB, free: 82.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002401/0.5102, allocations: 2.431 MB / 0.5302 GB, free: 80.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.5103, allocations: 7.938 kB / 0.5302 GB, free: 80.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.618e-06/0.5103, allocations: 0 / 0.5302 GB, free: 80.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.5103, allocations: 0 / 0.5302 GB, free: 80.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.53e-05/0.5104, allocations: 31.98 kB / 0.5302 GB, free: 80.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.5104, allocations: 4 kB / 0.5302 GB, free: 80.06 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.5104, allocations: 0 / 0.5302 GB, free: 80.06 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001626/0.512, allocations: 1.659 MB / 0.5319 GB, free: 78.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008535/0.5129, allocations: 0.6823 MB / 0.5325 GB, free: 77.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000155/0.513, allocations: 59.97 kB / 0.5326 GB, free: 77.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003104/0.5134, allocations: 39.95 kB / 0.5326 GB, free: 77.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004803/0.5138, allocations: 375.6 kB / 0.533 GB, free: 77.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.514, allocations: 131.9 kB / 0.5331 GB, free: 77.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001516/0.5155, allocations: 1.345 MB / 0.5344 GB, free: 75.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5155, allocations: 0 / 0.5344 GB, free: 75.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000467/0.516, allocations: 152 kB / 0.5346 GB, free: 75.54 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.0001932/0.5162, allocations: 188.9 kB / 0.5348 GB, free: 75.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001584/0.5178, allocations: 1.916 MB / 0.5366 GB, free: 73.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5178, allocations: 0 / 0.5366 GB, free: 73.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009279/0.5187, allocations: 1.437 MB / 0.538 GB, free: 71.81 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001128/0.5199, allocations: 318.2 kB / 0.5383 GB, free: 71.51 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0035/0.5234, allocations: 3.242 MB / 0.5415 GB, free: 68.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000715/0.5241, allocations: 1.196 MB / 0.5427 GB, free: 67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.918e-05/0.5241, allocations: 19.44 kB / 0.5427 GB, free: 66.98 MB / 378.7 MB Notification: Performance of SimCode: time 6.11e-07/0.5242, allocations: 3.75 kB / 0.5427 GB, free: 66.98 MB / 378.7 MB Notification: Performance of Templates: time 0.01018/0.5343, allocations: 10.31 MB / 0.5528 GB, free: 56.7 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DLATREGSRH/DLATREGSRH.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches