Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001836/0.001837, allocations: 184.9 kB / 17.41 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.366/2.366, allocations: 205.4 MB / 223.6 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007779/0.000778, allocations: 93.97 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003156/0.0003156, allocations: 8 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2568, allocations: 47.58 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08941/0.3463, allocations: 82.43 MB / 458.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.3466, allocations: 67.97 kB / 458.2 MB, free: 14.13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06647/0.4131, allocations: 38.64 MB / 496.9 MB, free: 7.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.215e-06/0.4131, allocations: 0 / 496.9 MB, free: 7.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.659e-05/0.4131, allocations: 12 kB / 496.9 MB, free: 7.469 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.001684/0.4148, allocations: 1.5 MB / 498.4 MB, free: 5.859 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.4149, allocations: 12.03 kB / 498.4 MB, free: 5.848 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001931/0.4151, allocations: 135.3 kB / 498.5 MB, free: 5.715 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000691/0.4158, allocations: 0.5717 MB / 499.1 MB, free: 5.094 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.4158, allocations: 20.38 kB / 499.1 MB, free: 5.074 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.195e-05/0.4159, allocations: 32.36 kB / 499.1 MB, free: 5.043 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009266/0.4169, allocations: 0.635 MB / 499.8 MB, free: 4.402 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.4169, allocations: 192 / 499.8 MB, free: 4.402 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.807e-05/0.4169, allocations: 19.94 kB / 499.8 MB, free: 4.383 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.4169, allocations: 4 kB / 499.8 MB, free: 4.379 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00065/0.4176, allocations: 471.6 kB / 0.4885 GB, free: 3.918 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001617/0.4192, allocations: 1.166 MB / 0.4897 GB, free: 2.695 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008028/0.42, allocations: 0.6897 MB / 0.4903 GB, free: 1.996 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007405/0.4208, allocations: 0.6802 MB / 0.491 GB, free: 1.312 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.305e-05/0.4208, allocations: 112 / 0.491 GB, free: 1.312 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008582/0.4217, allocations: 0.7484 MB / 0.4917 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 1.774e-06/0.4217, allocations: 0 / 0.4917 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.1501/0.5718, allocations: 1.871 MB / 0.4936 GB, free: 106.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001549/0.572, allocations: 332.4 kB / 0.4939 GB, free: 106.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002663/0.5746, allocations: 1.849 MB / 0.4957 GB, free: 105.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.457e-05/0.5747, allocations: 45.11 kB / 0.4957 GB, free: 105.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001899/0.5749, allocations: 249.8 kB / 0.496 GB, free: 105.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.134e-05/0.575, allocations: 79.5 kB / 0.496 GB, free: 105.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.851e-05/0.5751, allocations: 8.25 kB / 0.4961 GB, free: 105.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.5752, allocations: 382.4 kB / 0.4964 GB, free: 105.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005899/0.5758, allocations: 445.8 kB / 0.4968 GB, free: 105.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005887/0.5764, allocations: 491 kB / 0.4973 GB, free: 105.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.5774, allocations: 1.156 MB / 0.4984 GB, free: 104.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.5775, allocations: 4 kB / 0.4984 GB, free: 104.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001624/0.5791, allocations: 1.359 MB / 0.4998 GB, free: 104.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000152/0.5792, allocations: 293.6 kB / 0.5001 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.5793, allocations: 4.406 kB / 0.5001 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.5793, allocations: 4.75 kB / 0.5001 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.472e-05/0.5793, allocations: 6.75 kB / 0.5001 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.5793, allocations: 1.031 kB / 0.5001 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000351/0.5797, allocations: 47.16 kB / 0.5001 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001741/0.5799, allocations: 124.2 kB / 0.5002 GB, free: 104 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.dLATREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,$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,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,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 () * 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.000948/0.5808, allocations: 0.9972 MB / 0.5012 GB, free: 103.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.581, allocations: 139.4 kB / 0.5013 GB, free: 103.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003181/0.5813, allocations: 250.8 kB / 0.5016 GB, free: 103.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.5813, allocations: 1.094 kB / 0.5016 GB, free: 103.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.5813, allocations: 2.75 kB / 0.5016 GB, free: 103.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.5813, allocations: 1.156 kB / 0.5016 GB, free: 103.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002401/0.5837, allocations: 2.432 MB / 0.504 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.5837, allocations: 2.078 kB / 0.504 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.105e-06/0.5838, allocations: 0 / 0.504 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.5838, allocations: 0 / 0.504 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.346e-05/0.5838, allocations: 36.78 kB / 0.504 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.5838, allocations: 0 / 0.504 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.5838, allocations: 0 / 0.504 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001557/0.5854, allocations: 1.66 MB / 0.5056 GB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007306/0.5861, allocations: 0.6725 MB / 0.5063 GB, free: 101.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/0.5863, allocations: 56.64 kB / 0.5063 GB, free: 101.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002872/0.5866, allocations: 47.55 kB / 0.5064 GB, free: 101.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000449/0.5871, allocations: 378.7 kB / 0.5067 GB, free: 101.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/0.5872, allocations: 136.5 kB / 0.5069 GB, free: 101.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001382/0.5886, allocations: 1.341 MB / 0.5082 GB, free: 100.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5886, allocations: 0 / 0.5082 GB, free: 100.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004226/0.589, allocations: 146.6 kB / 0.5083 GB, free: 100.6 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) * 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.0001965/0.5892, allocations: 187.2 kB / 0.5085 GB, free: 100.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.5908, allocations: 1.921 MB / 0.5104 GB, free: 99.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.5908, allocations: 0 / 0.5104 GB, free: 99.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009405/0.5917, allocations: 1.437 MB / 0.5118 GB, free: 98.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.5928, allocations: 315 kB / 0.5121 GB, free: 98.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003338/0.5962, allocations: 3.245 MB / 0.5152 GB, free: 96.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006754/0.5969, allocations: 1.206 MB / 0.5164 GB, free: 95.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.563e-05/0.5969, allocations: 14.91 kB / 0.5164 GB, free: 95.81 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5969, allocations: 2.516 kB / 0.5164 GB, free: 95.81 MB / 378.7 MB Notification: Performance of Templates: time 0.2353/0.8322, allocations: 10.32 MB / 0.5265 GB, free: 87.61 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches