Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.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.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.659/1.659, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005722/0.0005725, allocations: 12 kB / 233.1 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07085/0.07146, allocations: 38.77 MB / 271.9 MB, free: 12.22 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002041/0.07354, allocations: 1.354 MB / 273.3 MB, free: 10.85 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006693/0.07423, allocations: 267.2 kB / 273.5 MB, free: 10.59 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001034/0.07436, allocations: 11.88 kB / 273.5 MB, free: 10.57 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001018/0.07448, allocations: 15.86 kB / 273.6 MB, free: 10.56 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.184e-05/0.07454, allocations: 11.92 kB / 273.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003705/0.07493, allocations: 91.89 kB / 273.7 MB, free: 10.46 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002849/0.07523, allocations: 163.7 kB / 273.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002889/0.07554, allocations: 145.6 kB / 274 MB, free: 10.15 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.07565, allocations: 67.77 kB / 274 MB, free: 10.08 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.0758, allocations: 75.61 kB / 274.1 MB, free: 10.01 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.35e-05/0.07585, allocations: 8 kB / 274.1 MB, free: 10 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.406e-05/0.07593, allocations: 23.98 kB / 274.1 MB, free: 9.977 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.078e-05/0.07601, allocations: 39.78 kB / 274.2 MB, free: 9.938 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.114e-05/0.0761, allocations: 57.58 kB / 274.2 MB, free: 9.875 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002411/0.07635, allocations: 155.7 kB / 274.4 MB, free: 9.723 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.73e-06/0.07637, allocations: 0 / 274.4 MB, free: 9.723 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.9e-06/0.07638, allocations: 4 kB / 274.4 MB, free: 9.719 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.0764, allocations: 0 / 274.4 MB, free: 9.719 MB / 234.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.000704/0.07712, allocations: 455.7 kB / 274.8 MB, free: 9.227 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.07716, allocations: 8.031 kB / 274.8 MB, free: 9.219 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.928e-05/0.07724, allocations: 23.72 kB / 274.9 MB, free: 9.195 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003047/0.07756, allocations: 222.8 kB / 275.1 MB, free: 8.938 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.508e-05/0.07762, allocations: 20.56 kB / 275.1 MB, free: 8.918 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.663e-05/0.0777, allocations: 31.95 kB / 275.1 MB, free: 8.887 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005816/0.07829, allocations: 266 kB / 275.4 MB, free: 8.605 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.07833, allocations: 0 / 275.4 MB, free: 8.605 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.016e-05/0.07837, allocations: 11.94 kB / 275.4 MB, free: 8.594 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.504e-06/0.07839, allocations: 4 kB / 275.4 MB, free: 8.59 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004353/0.07883, allocations: 173.6 kB / 275.6 MB, free: 8.422 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001495/0.08034, allocations: 0.9638 MB / 276.5 MB, free: 7.387 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003711/0.08073, allocations: 151.4 kB / 276.7 MB, free: 7.23 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.08077, allocations: 4.188 kB / 276.7 MB, free: 7.227 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002823/0.08107, allocations: 119.4 kB / 276.8 MB, free: 7.098 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 2.637e-06/0.08109, allocations: 0 / 276.8 MB, free: 7.098 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.000554/0.08165, allocations: 213.3 kB / 277 MB, free: 6.883 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/0.08172, allocations: 59.41 kB / 277.1 MB, free: 6.812 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.0819, allocations: 149.8 kB / 277.2 MB, free: 6.656 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.588e-05/0.08196, allocations: 41.7 kB / 277.3 MB, free: 6.609 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.08213, allocations: 214.8 kB / 277.5 MB, free: 6.398 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.71e-05/0.08221, allocations: 55.3 kB / 277.5 MB, free: 6.344 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.577e-05/0.08224, allocations: 7.938 kB / 277.5 MB, free: 6.336 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.08242, allocations: 326.8 kB / 277.8 MB, free: 6.008 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.08261, allocations: 60.62 kB / 277.9 MB, free: 5.945 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002307/0.08285, allocations: 129.9 kB / 278 MB, free: 5.789 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001828/0.08305, allocations: 75.92 kB / 278.1 MB, free: 5.715 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.208e-06/0.08306, allocations: 0 / 278.1 MB, free: 5.715 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005417/0.08361, allocations: 249.2 kB / 278.4 MB, free: 5.465 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.08365, allocations: 8 kB / 278.4 MB, free: 5.457 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.246e-06/0.08367, allocations: 0 / 278.4 MB, free: 5.457 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.08369, allocations: 7.953 kB / 278.4 MB, free: 5.449 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.08388, allocations: 39.86 kB / 278.4 MB, free: 5.41 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.08391, allocations: 4 kB / 278.4 MB, free: 5.406 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000148/0.08406, allocations: 27.73 kB / 278.4 MB, free: 5.379 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.59e-05/0.08411, allocations: 12.28 kB / 278.5 MB, free: 5.367 MB / 234.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,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,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.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,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.000194/0.08432, allocations: 156.3 kB / 278.6 MB, free: 5.207 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.346e-05/0.08437, allocations: 19.83 kB / 278.6 MB, free: 5.188 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004476/0.08482, allocations: 194.7 kB / 278.8 MB, free: 4.992 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.963e-06/0.08485, allocations: 0 / 278.8 MB, free: 4.992 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.58e-06/0.08486, allocations: 3.953 kB / 278.8 MB, free: 4.988 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.434e-06/0.08488, allocations: 0 / 278.8 MB, free: 4.988 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.08591, allocations: 0.5953 MB / 279.4 MB, free: 4.332 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.275e-06/0.08594, allocations: 0 / 279.4 MB, free: 4.332 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001069/0.08605, allocations: 19.94 kB / 279.4 MB, free: 4.312 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.089e-06/0.08607, allocations: 0 / 279.4 MB, free: 4.312 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.2e-05/0.0861, allocations: 8 kB / 279.4 MB, free: 4.305 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.967e-06/0.08611, allocations: 0 / 279.4 MB, free: 4.305 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.544e-06/0.08612, allocations: 0 / 279.4 MB, free: 4.305 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004363/0.08657, allocations: 279.6 kB / 279.7 MB, free: 4.016 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.7e-05/0.08665, allocations: 92.92 kB / 279.8 MB, free: 3.906 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.0867, allocations: 7.953 kB / 279.8 MB, free: 3.898 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.08684, allocations: 7.984 kB / 279.8 MB, free: 3.891 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.451e-05/0.08693, allocations: 23.97 kB / 279.8 MB, free: 3.867 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.01e-05/0.08697, allocations: 4 kB / 279.8 MB, free: 3.863 MB / 234.7 MB Notification: Performance of sorting global known variables: time 9.075e-05/0.08707, allocations: 103.2 kB / 279.9 MB, free: 3.762 MB / 234.7 MB Notification: Performance of sort global known variables: time 6.78e-07/0.08708, allocations: 0 / 279.9 MB, free: 3.762 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0004353/0.08753, allocations: 59.83 kB / 280 MB, free: 3.703 MB / 234.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.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,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.0001747/0.08771, allocations: 111.1 kB / 280.1 MB, free: 3.582 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0004633/0.08819, allocations: 175.7 kB / 280.3 MB, free: 3.41 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.523e-06/0.08821, allocations: 0 / 280.3 MB, free: 3.41 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.0884, allocations: 79.91 kB / 280.4 MB, free: 3.332 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/0.08867, allocations: 28.42 kB / 280.4 MB, free: 3.305 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007686/0.08945, allocations: 416.5 kB / 280.8 MB, free: 2.871 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004348/0.08991, allocations: 0.7328 MB / 281.5 MB, free: 2.113 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.744e-05/0.09, allocations: 23.44 kB / 281.6 MB, free: 2.09 MB / 234.7 MB Notification: Performance of SimCode: time 1.299e-06/0.09001, allocations: 4 kB / 281.6 MB, free: 2.086 MB / 234.7 MB Notification: Performance of Templates: time 0.005214/0.09524, allocations: 2.302 MB / 283.9 MB, free: 15.78 MB / 250.7 MB