Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 0.945/0.945, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002662/0.0002663, allocations: 8 kB / 158.2 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04627/0.04656, allocations: 25.16 MB / 183.4 MB, free: 6.023 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00198/0.04858, allocations: 1.253 MB / 184.7 MB, free: 4.77 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006582/0.04928, allocations: 271.2 kB / 184.9 MB, free: 4.504 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.964e-05/0.0494, allocations: 7.938 kB / 184.9 MB, free: 4.496 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 9.866e-05/0.04953, allocations: 15.86 kB / 185 MB, free: 4.48 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 6.426e-05/0.04961, allocations: 15.92 kB / 185 MB, free: 4.465 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003554/0.04998, allocations: 83.89 kB / 185 MB, free: 4.383 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002782/0.05027, allocations: 159.7 kB / 185.2 MB, free: 4.227 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002982/0.05059, allocations: 150.2 kB / 185.4 MB, free: 4.07 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.748e-05/0.0507, allocations: 67.77 kB / 185.4 MB, free: 4.004 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001315/0.05084, allocations: 71.62 kB / 185.5 MB, free: 3.934 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 4.851e-05/0.0509, allocations: 12 kB / 185.5 MB, free: 3.922 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.314e-05/0.051, allocations: 15.98 kB / 185.5 MB, free: 3.906 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 6.381e-05/0.05107, allocations: 43.77 kB / 185.6 MB, free: 3.863 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 6.48e-05/0.05115, allocations: 53.64 kB / 185.6 MB, free: 3.805 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002431/0.0514, allocations: 155.6 kB / 185.8 MB, free: 3.652 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.669e-06/0.05142, allocations: 0 / 185.8 MB, free: 3.652 MB / 154.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.05144, allocations: 8 kB / 185.8 MB, free: 3.645 MB / 154.7 MB Notification: Performance of Transformations before backend: time 5.845e-06/0.05146, allocations: 3.938 kB / 185.8 MB, free: 3.641 MB / 154.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.000679/0.05215, allocations: 434 kB / 186.2 MB, free: 3.164 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.0522, allocations: 8.031 kB / 186.2 MB, free: 3.156 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.569e-05/0.05228, allocations: 31.66 kB / 186.2 MB, free: 3.125 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003032/0.0526, allocations: 218.8 kB / 186.5 MB, free: 2.871 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.3e-05/0.05266, allocations: 20.56 kB / 186.5 MB, free: 2.852 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.558e-05/0.05272, allocations: 24 kB / 186.5 MB, free: 2.828 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005729/0.05331, allocations: 270 kB / 186.8 MB, free: 2.543 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.05335, allocations: 0 / 186.8 MB, free: 2.543 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.28e-05/0.05339, allocations: 15.94 kB / 186.8 MB, free: 2.527 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.05341, allocations: 4 kB / 186.8 MB, free: 2.523 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004455/0.05386, allocations: 169.5 kB / 186.9 MB, free: 2.359 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001449/0.05533, allocations: 0.9638 MB / 187.9 MB, free: 1.324 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003686/0.05572, allocations: 151.4 kB / 188.1 MB, free: 1.168 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.417e-05/0.05576, allocations: 4.188 kB / 188.1 MB, free: 1.164 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002561/0.05602, allocations: 119.4 kB / 188.2 MB, free: 1.035 MB / 154.7 MB Notification: Performance of pre-optimization done (n=23): time 2.64e-06/0.05604, allocations: 0 / 188.2 MB, free: 1.035 MB / 154.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005658/0.05662, allocations: 210.9 kB / 188.4 MB, free: 0.8242 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.05669, allocations: 59.34 kB / 188.4 MB, free: 0.7539 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.05687, allocations: 157.6 kB / 188.6 MB, free: 0.5898 MB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 4.504e-05/0.05693, allocations: 33.7 kB / 188.6 MB, free: 0.5508 MB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001435/0.05708, allocations: 203 kB / 188.8 MB, free: 360 kB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.415e-05/0.05717, allocations: 59.19 kB / 188.9 MB, free: 300 kB / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.969e-05/0.0572, allocations: 12 kB / 188.9 MB, free: 288 kB / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.05741, allocations: 326.8 kB / 189.2 MB, free: 15.95 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/0.05759, allocations: 60.62 kB / 189.3 MB, free: 15.89 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.05784, allocations: 129.9 kB / 189.4 MB, free: 15.74 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001898/0.05804, allocations: 75.92 kB / 189.5 MB, free: 15.66 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.05806, allocations: 0 / 189.5 MB, free: 15.66 MB / 170.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005488/0.05862, allocations: 241.5 kB / 189.7 MB, free: 15.42 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.05865, allocations: 7.984 kB / 189.7 MB, free: 15.41 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.05867, allocations: 4 kB / 189.7 MB, free: 15.41 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.0587, allocations: 4 kB / 189.7 MB, free: 15.41 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001745/0.05889, allocations: 31.92 kB / 189.8 MB, free: 15.38 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.05891, allocations: 7.938 kB / 189.8 MB, free: 15.37 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.05908, allocations: 31.69 kB / 189.8 MB, free: 15.34 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.671e-05/0.05913, allocations: 11.98 kB / 189.8 MB, free: 15.32 MB / 170.7 MB Warning: Assuming fixed start value for the following 1 variables: transition1.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real 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.0002597/0.0594, allocations: 171.2 kB / 190 MB, free: 15.15 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.57e-05/0.05945, allocations: 15.8 kB / 190 MB, free: 15.13 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004461/0.0599, allocations: 190.3 kB / 190.2 MB, free: 14.94 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.288e-06/0.05993, allocations: 4 kB / 190.2 MB, free: 14.94 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.807e-06/0.05994, allocations: 0 / 190.2 MB, free: 14.94 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.05996, allocations: 0 / 190.2 MB, free: 14.94 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.06098, allocations: 0.5916 MB / 190.8 MB, free: 14.29 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.045e-06/0.06101, allocations: 4 kB / 190.8 MB, free: 14.28 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001054/0.06112, allocations: 23.92 kB / 190.8 MB, free: 14.26 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.444e-06/0.06114, allocations: 0 / 190.8 MB, free: 14.26 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.06117, allocations: 0 / 190.8 MB, free: 14.26 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.685e-06/0.06118, allocations: 4 kB / 190.8 MB, free: 14.25 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.06119, allocations: 0 / 190.8 MB, free: 14.25 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004531/0.06165, allocations: 283.4 kB / 191.1 MB, free: 13.96 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.881e-05/0.06174, allocations: 92.86 kB / 191.2 MB, free: 13.85 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.329e-05/0.06178, allocations: 4 kB / 191.2 MB, free: 13.85 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.06192, allocations: 7.984 kB / 191.2 MB, free: 13.84 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.158e-05/0.06202, allocations: 23.97 kB / 191.2 MB, free: 13.82 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.987e-05/0.06205, allocations: 4 kB / 191.2 MB, free: 13.81 MB / 170.7 MB Notification: Performance of sorting global known variables: time 8.831e-05/0.06215, allocations: 103.8 kB / 191.3 MB, free: 13.71 MB / 170.7 MB Notification: Performance of sort global known variables: time 6.75e-07/0.06216, allocations: 0 / 191.3 MB, free: 13.71 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004147/0.06259, allocations: 55.8 kB / 191.4 MB, free: 13.66 MB / 170.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,transition1.enableFire,step.localActive,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.0001698/0.06277, allocations: 115.2 kB / 191.5 MB, free: 13.54 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0004424/0.06323, allocations: 179.9 kB / 191.7 MB, free: 13.36 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.339e-06/0.06325, allocations: 0 / 191.7 MB, free: 13.36 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001795/0.06343, allocations: 79.91 kB / 191.7 MB, free: 13.28 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002457/0.06369, allocations: 12.56 kB / 191.7 MB, free: 13.27 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007894/0.0645, allocations: 412.6 kB / 192.1 MB, free: 12.84 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004413/0.06496, allocations: 0.7367 MB / 192.9 MB, free: 12.07 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.889e-05/0.06506, allocations: 23.42 kB / 192.9 MB, free: 12.05 MB / 170.7 MB Notification: Performance of SimCode: time 1.439e-06/0.06507, allocations: 4 kB / 192.9 MB, free: 12.04 MB / 170.7 MB Notification: Performance of Templates: time 0.005215/0.0703, allocations: 2.304 MB / 195.2 MB, free: 9.734 MB / 170.7 MB