Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.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.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_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001695/0.001694, allocations: 177.9 kB / 17.41 MB, free: 4.387 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.565/2.565, allocations: 205.4 MB / 223.6 MB, free: 8.938 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.001047/0.001047, allocations: 88.36 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004469/0.0004471, allocations: 8 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3779, allocations: 47.57 MB / 375.7 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1602/0.5382, allocations: 82.4 MB / 458.1 MB, free: 14.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003207/0.5386, allocations: 67.97 kB / 458.2 MB, free: 14.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09003/0.6287, allocations: 30.65 MB / 488.8 MB, free: 15.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.618e-06/0.6288, allocations: 0 / 488.8 MB, free: 15.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.731e-05/0.6288, allocations: 16 kB / 488.8 MB, free: 15.52 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.002997/0.6318, allocations: 1.508 MB / 490.3 MB, free: 13.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.005e-05/0.6319, allocations: 8.031 kB / 490.4 MB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003047/0.6322, allocations: 139.3 kB / 490.5 MB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.6334, allocations: 0.564 MB / 491.1 MB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.833e-05/0.6335, allocations: 28.36 kB / 491.1 MB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.6336, allocations: 28.38 kB / 491.1 MB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001678/0.6353, allocations: 0.6233 MB / 491.7 MB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.6353, allocations: 192 / 491.7 MB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.542e-05/0.6354, allocations: 23.92 kB / 491.8 MB, free: 12.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.6354, allocations: 0 / 491.8 MB, free: 12.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.6366, allocations: 467.7 kB / 492.2 MB, free: 11.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003186/0.6398, allocations: 1.17 MB / 493.4 MB, free: 10.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001409/0.6412, allocations: 0.6936 MB / 494.1 MB, free: 10.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001351/0.6426, allocations: 0.6763 MB / 494.8 MB, free: 9.375 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.6426, allocations: 4 kB / 494.8 MB, free: 9.371 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001517/0.6441, allocations: 0.7483 MB / 495.5 MB, free: 8.582 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 4.909e-06/0.6441, allocations: 0 / 495.5 MB, free: 8.582 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.004398/0.6486, allocations: 1.879 MB / 497.4 MB, free: 6.648 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003347/0.6489, allocations: 329 kB / 497.7 MB, free: 6.266 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004743/0.6537, allocations: 1.858 MB / 499.6 MB, free: 4.391 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001839/0.6539, allocations: 41.7 kB / 499.6 MB, free: 4.344 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004093/0.6543, allocations: 246.4 kB / 499.8 MB, free: 4.098 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001951/0.6545, allocations: 75.11 kB / 499.9 MB, free: 4.023 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.558e-05/0.6546, allocations: 15.98 kB / 499.9 MB, free: 4.008 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002892/0.6549, allocations: 378.7 kB / 0.4886 GB, free: 3.629 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0011/0.656, allocations: 451.7 kB / 0.489 GB, free: 3.188 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001062/0.6571, allocations: 478.4 kB / 0.4895 GB, free: 2.711 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002044/0.6591, allocations: 1.167 MB / 0.4906 GB, free: 1.438 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.6592, allocations: 4 kB / 0.4906 GB, free: 1.434 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.003067/0.6622, allocations: 1.357 MB / 0.4919 GB, free: 20 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3473/1.01, allocations: 293.3 kB / 0.4922 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/1.01, allocations: 0.5312 kB / 0.4922 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.377e-05/1.01, allocations: 5.406 kB / 0.4922 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.911e-05/1.01, allocations: 4.188 kB / 0.4922 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.803e-05/1.01, allocations: 2.562 kB / 0.4922 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009093/1.011, allocations: 44.48 kB / 0.4923 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005703/1.011, allocations: 132.9 kB / 0.4924 GB, free: 105.6 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.003089/1.014, allocations: 0.998 MB / 0.4934 GB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005242/1.015, allocations: 133.3 kB / 0.4935 GB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001281/1.016, allocations: 246.9 kB / 0.4937 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/1.016, allocations: 1.375 kB / 0.4937 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/1.016, allocations: 1.375 kB / 0.4937 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/1.016, allocations: 3.516 kB / 0.4937 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006617/1.023, allocations: 2.424 MB / 0.4961 GB, free: 104.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/1.023, allocations: 3.969 kB / 0.4961 GB, free: 104.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.508e-05/1.023, allocations: 4.781 kB / 0.4961 GB, free: 104.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.048e-05/1.023, allocations: 1.188 kB / 0.4961 GB, free: 104.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001177/1.023, allocations: 32 kB / 0.4961 GB, free: 104.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/1.023, allocations: 0 / 0.4961 GB, free: 104.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/1.023, allocations: 1.094 kB / 0.4961 GB, free: 104.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00353/1.027, allocations: 1.658 MB / 0.4978 GB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00204/1.029, allocations: 0.6753 MB / 0.4984 GB, free: 103.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003611/1.029, allocations: 64.39 kB / 0.4985 GB, free: 103.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006597/1.03, allocations: 45.11 kB / 0.4985 GB, free: 103.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009573/1.031, allocations: 375.5 kB / 0.4989 GB, free: 103.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003179/1.031, allocations: 132.8 kB / 0.499 GB, free: 103.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004301/1.035, allocations: 1.344 MB / 0.5003 GB, free: 103.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.4e-07/1.035, allocations: 0 / 0.5003 GB, free: 103.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00133/1.037, allocations: 152.2 kB / 0.5005 GB, free: 103.3 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.0004543/1.037, allocations: 181 kB / 0.5006 GB, free: 103.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003416/1.041, allocations: 1.929 MB / 0.5025 GB, free: 102.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.289e-06/1.041, allocations: 0 / 0.5025 GB, free: 102.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00177/1.043, allocations: 1.435 MB / 0.5039 GB, free: 101.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/1.045, allocations: 306.8 kB / 0.5042 GB, free: 101.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007151/1.052, allocations: 3.247 MB / 0.5074 GB, free: 100 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/1.053, allocations: 1.196 MB / 0.5086 GB, free: 99.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.956e-05/1.053, allocations: 19.31 kB / 0.5086 GB, free: 99.14 MB / 378.7 MB Notification: Performance of SimCode: time 1.102e-06/1.053, allocations: 0 / 0.5086 GB, free: 99.14 MB / 378.7 MB Notification: Performance of Templates: time 0.01927/1.073, allocations: 10.32 MB / 0.5187 GB, free: 94.9 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DLATREGSRH/DLATREGSRH.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches