Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.BUF3S.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.BUF3S") Notification: Performance of loadModel(Modelica): time 1.559/1.559, allocations: 171.2 MB / 184.2 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.098e-05/3.108e-05, allocations: 11.92 kB / 228.8 MB, free: 15.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.2047, allocations: 38.77 MB / 267.6 MB, free: 9.309 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1116/0.3163, allocations: 72.26 MB / 339.8 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/0.3165, allocations: 63.97 kB / 339.9 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2562/0.5728, allocations: 27.48 MB / 367.4 MB, free: 78.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.749e-06/0.5728, allocations: 0 / 367.4 MB, free: 78.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.5728, allocations: 3.938 kB / 367.4 MB, free: 78.33 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004654/0.5733, allocations: 0.6115 MB / 368 MB, free: 77.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.5734, allocations: 9.281 kB / 368 MB, free: 77.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.693e-05/0.5734, allocations: 39.47 kB / 368.1 MB, free: 77.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002647/0.5737, allocations: 259.1 kB / 368.3 MB, free: 77.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/0.5738, allocations: 5.531 kB / 368.3 MB, free: 77.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.012e-05/0.5738, allocations: 15.72 kB / 368.3 MB, free: 77.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002996/0.5741, allocations: 147.5 kB / 368.5 MB, free: 77.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.648e-06/0.5742, allocations: 3.938 kB / 368.5 MB, free: 77.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.439e-05/0.5742, allocations: 4 kB / 368.5 MB, free: 77.4 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.714e-06/0.5742, allocations: 0 / 368.5 MB, free: 77.4 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001574/0.5744, allocations: 67.34 kB / 368.5 MB, free: 77.35 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006748/0.5751, allocations: 477.5 kB / 369 MB, free: 76.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001907/0.5753, allocations: 102.1 kB / 369.1 MB, free: 76.78 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.5755, allocations: 92.27 kB / 369.2 MB, free: 76.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.934e-06/0.5755, allocations: 0 / 369.2 MB, free: 76.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000301/0.5758, allocations: 226.6 kB / 369.4 MB, free: 76.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 2.54e-06/0.5758, allocations: 0 / 369.4 MB, free: 76.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007331/0.5766, allocations: 437.8 kB / 369.8 MB, free: 76.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.669e-05/0.5766, allocations: 173.9 kB / 370 MB, free: 75.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006082/0.5773, allocations: 460.4 kB / 370.5 MB, free: 75.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.631e-05/0.5773, allocations: 33.7 kB / 370.5 MB, free: 75.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.12e-05/0.5774, allocations: 163.4 kB / 370.7 MB, free: 75.26 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.789e-05/0.5774, allocations: 27.72 kB / 370.7 MB, free: 75.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.657e-05/0.5775, allocations: 4 kB / 370.7 MB, free: 75.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.876e-05/0.5775, allocations: 314.3 kB / 371 MB, free: 74.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.5777, allocations: 66.98 kB / 371.1 MB, free: 74.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001416/0.5779, allocations: 65.11 kB / 371.1 MB, free: 74.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001682/0.578, allocations: 168.3 kB / 371.3 MB, free: 74.62 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.52e-06/0.5781, allocations: 0 / 371.3 MB, free: 74.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006395/0.5787, allocations: 415.2 kB / 371.7 MB, free: 74.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.081e-05/0.5788, allocations: 121.6 kB / 371.8 MB, free: 74.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.186e-06/0.5788, allocations: 4 kB / 371.8 MB, free: 74.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.5788, allocations: 3.75 kB / 371.8 MB, free: 74.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.899e-05/0.5789, allocations: 4 kB / 371.8 MB, free: 74.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.303e-06/0.5789, allocations: 160 / 371.8 MB, free: 74.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001875/0.5791, allocations: 12.06 kB / 371.8 MB, free: 74.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/0.5792, allocations: 130.1 kB / 372 MB, free: 73.95 MB / 298.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: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.x,$PRE.bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0001558/0.5794, allocations: 245.8 kB / 372.2 MB, free: 73.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.263e-05/0.5795, allocations: 39.53 kB / 372.2 MB, free: 73.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001278/0.5796, allocations: 63.28 kB / 372.3 MB, free: 73.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.8e-06/0.5796, allocations: 3.938 kB / 372.3 MB, free: 73.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.96e-06/0.5796, allocations: 0 / 372.3 MB, free: 73.57 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.137e-06/0.5796, allocations: 0 / 372.3 MB, free: 73.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.5807, allocations: 0.8324 MB / 373.1 MB, free: 72.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.5807, allocations: 7.984 kB / 373.1 MB, free: 72.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.837e-06/0.5807, allocations: 0 / 373.1 MB, free: 72.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.149e-06/0.5807, allocations: 0 / 373.1 MB, free: 72.65 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.353e-05/0.5808, allocations: 23.92 kB / 373.2 MB, free: 72.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.5808, allocations: 0 / 373.2 MB, free: 72.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.71e-06/0.5808, allocations: 7.938 kB / 373.2 MB, free: 72.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008312/0.5817, allocations: 0.5601 MB / 373.7 MB, free: 72.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003461/0.582, allocations: 248.5 kB / 374 MB, free: 71.76 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.671e-05/0.5821, allocations: 12 kB / 374 MB, free: 71.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002114/0.5823, allocations: 12.17 kB / 374 MB, free: 71.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.5825, allocations: 31.97 kB / 374 MB, free: 71.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001138/0.5826, allocations: 119.9 kB / 374.2 MB, free: 71.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004943/0.5831, allocations: 392.9 kB / 374.5 MB, free: 71.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-06/0.5831, allocations: 0 / 374.5 MB, free: 71.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003874/0.5835, allocations: 51.94 kB / 374.6 MB, free: 71.16 MB / 298.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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,bUF3S.yy,bUF3S.nextstate,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.0001325/0.5837, allocations: 119 kB / 374.7 MB, free: 71.03 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004961/0.5842, allocations: 444.7 kB / 375.1 MB, free: 70.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.578e-06/0.5842, allocations: 0 / 375.1 MB, free: 70.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003017/0.5845, allocations: 377.6 kB / 375.5 MB, free: 70.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005311/0.5851, allocations: 102.5 kB / 375.6 MB, free: 70.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.5861, allocations: 0.5701 MB / 376.2 MB, free: 69.44 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.5865, allocations: 0.8181 MB / 377 MB, free: 68.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.898e-05/0.5865, allocations: 7.438 kB / 377 MB, free: 68.59 MB / 298.7 MB Notification: Performance of SimCode: time 1.477e-06/0.5865, allocations: 0 / 377 MB, free: 68.59 MB / 298.7 MB Notification: Performance of Templates: time 0.005358/0.5919, allocations: 3.792 MB / 380.8 MB, free: 64.78 MB / 298.7 MB