Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.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.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 2.287/2.287, allocations: 194.9 MB / 211.7 MB, free: 2.875 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005637/0.0005639, allocations: 12 kB / 264.5 MB, free: 12.92 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.132, allocations: 44.5 MB / 309 MB, free: 360 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4607/0.5927, allocations: 71.52 MB / 380.5 MB, free: 15.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/0.5931, allocations: 72.59 kB / 380.6 MB, free: 15.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01416/0.6073, allocations: 2.946 MB / 383.6 MB, free: 14.91 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.6073, allocations: 0 / 383.6 MB, free: 14.91 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.663e-05/0.6074, allocations: 5.344 kB / 383.6 MB, free: 14.91 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0007809/0.6082, allocations: 438.6 kB / 384 MB, free: 14.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.6082, allocations: 16.2 kB / 384 MB, free: 14.52 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.6084, allocations: 23.06 kB / 384 MB, free: 14.51 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003628/0.6087, allocations: 228.4 kB / 384.3 MB, free: 14.3 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.716e-05/0.6088, allocations: 19.16 kB / 384.3 MB, free: 14.3 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.84e-05/0.6089, allocations: 27.78 kB / 384.3 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007878/0.6097, allocations: 259.7 kB / 384.6 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.6098, allocations: 6.578 kB / 384.6 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.538e-05/0.6098, allocations: 14.16 kB / 384.6 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.666e-05/0.6098, allocations: 6.469 kB / 384.6 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006309/0.6105, allocations: 166.1 kB / 384.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001751/0.6123, allocations: 0.9457 MB / 385.7 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004977/0.6128, allocations: 150.2 kB / 385.8 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.671e-05/0.6128, allocations: 6.891 kB / 385.8 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003278/0.6132, allocations: 119.4 kB / 386 MB, free: 13.47 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 4.017e-06/0.6132, allocations: 0 / 386 MB, free: 13.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007728/0.614, allocations: 205.3 kB / 386.2 MB, free: 13.43 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.6141, allocations: 59.53 kB / 386.2 MB, free: 13.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001843/0.6143, allocations: 153.7 kB / 386.4 MB, free: 13.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.247e-05/0.6143, allocations: 44.83 kB / 386.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.6144, allocations: 140.9 kB / 386.6 MB, free: 13.11 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.967e-05/0.6145, allocations: 55.86 kB / 386.6 MB, free: 13.08 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.6146, allocations: 9.312 kB / 386.6 MB, free: 13.08 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.17e-05/0.6147, allocations: 324.2 kB / 386.9 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002517/0.6149, allocations: 66.41 kB / 387 MB, free: 12.76 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003205/0.6153, allocations: 135.5 kB / 387.1 MB, free: 12.68 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002658/0.6156, allocations: 64.69 kB / 387.2 MB, free: 12.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.6156, allocations: 0 / 387.2 MB, free: 12.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000775/0.6164, allocations: 262.1 kB / 387.4 MB, free: 12.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.6164, allocations: 5.688 kB / 387.5 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.6164, allocations: 1.906 kB / 387.5 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.519e-05/0.6165, allocations: 8.844 kB / 387.5 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002836/0.6168, allocations: 30.16 kB / 387.5 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.6168, allocations: 4.625 kB / 387.5 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000229/0.6171, allocations: 24.66 kB / 387.5 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-05/0.6171, allocations: 13.59 kB / 387.5 MB, free: 12.59 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * 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.0002278/0.6174, allocations: 159.9 kB / 387.7 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.569e-05/0.6174, allocations: 13.73 kB / 387.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006292/0.6181, allocations: 193.1 kB / 387.9 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.415e-06/0.6181, allocations: 2.531 kB / 387.9 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.6181, allocations: 3.766 kB / 387.9 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.6181, allocations: 0 / 387.9 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001293/0.6194, allocations: 0.5883 MB / 388.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.6195, allocations: 0 / 388.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.6196, allocations: 17.91 kB / 388.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/0.6197, allocations: 5.656 kB / 388.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.6197, allocations: 8.688 kB / 388.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.6197, allocations: 1.25 kB / 388.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.6197, allocations: 0 / 388.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005435/0.6203, allocations: 278.6 kB / 388.8 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.939e-05/0.6204, allocations: 88.89 kB / 388.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.19e-05/0.6204, allocations: 5.875 kB / 388.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.6206, allocations: 13.92 kB / 388.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.6208, allocations: 18.53 kB / 388.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.169e-05/0.6208, allocations: 12.69 kB / 388.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.493e-05/0.6209, allocations: 97.56 kB / 389 MB, free: 11.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6209, allocations: 1.312 kB / 389 MB, free: 11.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006912/0.6216, allocations: 37.88 kB / 389.1 MB, free: 11.71 MB / 314.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: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001945/0.6218, allocations: 107.8 kB / 389.2 MB, free: 11.62 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000615/0.6225, allocations: 177.8 kB / 389.3 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.6225, allocations: 0 / 389.3 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002515/0.6228, allocations: 81.62 kB / 389.4 MB, free: 11.6 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003704/0.6232, allocations: 22.28 kB / 389.4 MB, free: 11.6 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.6242, allocations: 383 kB / 389.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002686/0.6245, allocations: 0.7421 MB / 390.6 MB, free: 10.66 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001906/0.6247, allocations: 31.17 kB / 390.6 MB, free: 10.65 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.6248, allocations: 20.47 kB / 390.6 MB, free: 10.64 MB / 314.7 MB Notification: Performance of SimCode: time 1.252e-06/0.6249, allocations: 1.25 kB / 390.6 MB, free: 10.64 MB / 314.7 MB Notification: Performance of Templates: time 0.008478/0.6333, allocations: 1.637 MB / 392.2 MB, free: 10.5 MB / 314.7 MB