Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRH.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_Modelica.Electrical.Digital.Examples.DLATREGSRH") Notification: Performance of loadModel(Modelica): time 2.15/2.15, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005491/0.0005492, allocations: 15.98 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1288, allocations: 44.5 MB / 309 MB, free: 384 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5309/0.6598, allocations: 78.1 MB / 387.1 MB, free: 15.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/0.6601, allocations: 72.06 kB / 387.2 MB, free: 15.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0913/0.7514, allocations: 30.62 MB / 417.8 MB, free: 7.754 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.7515, allocations: 0 / 417.8 MB, free: 7.754 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.846e-05/0.7516, allocations: 15.38 kB / 417.9 MB, free: 7.754 MB / 314.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.002388/0.754, allocations: 1.519 MB / 419.4 MB, free: 6.496 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.754, allocations: 11.62 kB / 419.4 MB, free: 6.496 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003703/0.7544, allocations: 132 kB / 419.5 MB, free: 6.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/0.7556, allocations: 0.5074 MB / 420 MB, free: 6.078 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.753e-05/0.7557, allocations: 22.75 kB / 420 MB, free: 6.078 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.7559, allocations: 34.73 kB / 420.1 MB, free: 6.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.7574, allocations: 0.6255 MB / 420.7 MB, free: 5.895 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.7575, allocations: 3.953 kB / 420.7 MB, free: 5.891 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.951e-05/0.7576, allocations: 18.55 kB / 420.7 MB, free: 5.887 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.607e-06/0.7576, allocations: 3.875 kB / 420.7 MB, free: 5.887 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001114/0.7587, allocations: 477.2 kB / 421.2 MB, free: 5.809 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002895/0.7616, allocations: 1.17 MB / 422.4 MB, free: 5.199 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/0.7631, allocations: 0.698 MB / 423.1 MB, free: 5.105 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.7632, allocations: 0 / 423.1 MB, free: 5.105 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001489/0.7647, allocations: 0.7596 MB / 423.8 MB, free: 4.762 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.777e-06/0.7647, allocations: 0 / 423.8 MB, free: 4.762 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.0046/0.7693, allocations: 2.143 MB / 426 MB, free: 3.887 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002449/0.7696, allocations: 331.2 kB / 426.3 MB, free: 3.559 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004254/0.7739, allocations: 1.854 MB / 428.1 MB, free: 2.77 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002551/0.7742, allocations: 41.55 kB / 428.2 MB, free: 2.738 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003632/0.7746, allocations: 250.3 kB / 428.4 MB, free: 2.613 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/0.7748, allocations: 84.62 kB / 428.5 MB, free: 2.562 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.966e-05/0.7749, allocations: 13.58 kB / 428.5 MB, free: 2.559 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.7751, allocations: 383.8 kB / 428.9 MB, free: 2.215 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.7761, allocations: 453.9 kB / 429.3 MB, free: 2.145 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001015/0.7771, allocations: 486 kB / 429.8 MB, free: 2.043 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009443/0.7781, allocations: 0.5865 MB / 430.4 MB, free: 1.73 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.361e-06/0.7781, allocations: 4 kB / 430.4 MB, free: 1.727 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002776/0.7809, allocations: 1.37 MB / 431.8 MB, free: 1.246 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002509/0.7812, allocations: 291.7 kB / 432.1 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.7813, allocations: 0 / 432.1 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.43e-05/0.7813, allocations: 11.89 kB / 432.1 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.41e-05/0.7813, allocations: 0 / 432.1 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.7814, allocations: 3.875 kB / 432.1 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007298/0.7821, allocations: 46.52 kB / 432.1 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002138/0.7823, allocations: 135.7 kB / 432.3 MB, free: 0.9375 MB / 314.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.002035/0.7844, allocations: 0.9943 MB / 433.2 MB, free: 352 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002751/0.7847, allocations: 132.3 kB / 433.4 MB, free: 288 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007735/0.7855, allocations: 243.2 kB / 433.6 MB, free: 156 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.7855, allocations: 3.875 kB / 433.6 MB, free: 156 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.7855, allocations: 3.984 kB / 433.6 MB, free: 152 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.7856, allocations: 0 / 433.6 MB, free: 152 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005927/0.7915, allocations: 2.47 MB / 436.1 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.7915, allocations: 0 / 436.1 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.497e-05/0.7916, allocations: 4 kB / 436.1 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.7916, allocations: 0 / 436.1 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001572/0.7918, allocations: 32.42 kB / 436.1 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.7918, allocations: 0 / 436.1 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.7918, allocations: 0 / 436.1 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003828/0.7956, allocations: 1.668 MB / 437.8 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002223/0.7979, allocations: 0.682 MB / 438.5 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003774/0.7983, allocations: 55.97 kB / 438.5 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006633/0.799, allocations: 47.58 kB / 438.6 MB, free: 12.88 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001069/0.8001, allocations: 379.6 kB / 438.9 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002774/0.8004, allocations: 124 kB / 439.1 MB, free: 12.39 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003635/0.804, allocations: 1.349 MB / 440.4 MB, free: 11.04 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.423e-06/0.8041, allocations: 0 / 440.4 MB, free: 11.04 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001005/0.8051, allocations: 156 kB / 440.6 MB, free: 10.89 MB / 330.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.0004546/0.8056, allocations: 185.6 kB / 440.8 MB, free: 10.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004032/0.8096, allocations: 1.932 MB / 442.7 MB, free: 8.668 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.8097, allocations: 0 / 442.7 MB, free: 8.668 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003227/0.8129, allocations: 1.444 MB / 444.1 MB, free: 7.125 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002662/0.8157, allocations: 317.5 kB / 444.4 MB, free: 6.82 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01387/0.8296, allocations: 3.149 MB / 447.6 MB, free: 3.637 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002378/0.832, allocations: 1.227 MB / 448.8 MB, free: 2.379 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003169/0.8324, allocations: 33.52 kB / 448.8 MB, free: 2.348 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.921e-05/0.8325, allocations: 23.44 kB / 448.9 MB, free: 2.324 MB / 330.7 MB Notification: Performance of SimCode: time 1.031e-06/0.8325, allocations: 0 / 448.9 MB, free: 2.324 MB / 330.7 MB Notification: Performance of Templates: time 0.04619/0.8787, allocations: 15.21 MB / 464.1 MB, free: 2.77 MB / 346.7 MB