Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_1_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.217/1.217, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002633/0.0002634, allocations: 4 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05712/0.05742, allocations: 25.18 MB / 183.5 MB, free: 5.926 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002367/0.05985, allocations: 1.088 MB / 184.6 MB, free: 4.84 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009164/0.06081, allocations: 247.3 kB / 184.8 MB, free: 4.598 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.06095, allocations: 4 kB / 184.8 MB, free: 4.594 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001328/0.0611, allocations: 23.81 kB / 184.9 MB, free: 4.57 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 6.946e-05/0.06119, allocations: 15.91 kB / 184.9 MB, free: 4.555 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004921/0.06169, allocations: 79.89 kB / 185 MB, free: 4.477 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.000398/0.06211, allocations: 147.7 kB / 185.1 MB, free: 4.332 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003814/0.06251, allocations: 130.9 kB / 185.2 MB, free: 4.203 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001325/0.06266, allocations: 67.77 kB / 185.3 MB, free: 4.137 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/0.06285, allocations: 71.67 kB / 185.4 MB, free: 4.066 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 4.222e-05/0.06291, allocations: 8 kB / 185.4 MB, free: 4.059 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.953e-05/0.06302, allocations: 23.92 kB / 185.4 MB, free: 4.035 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 7.61e-05/0.06311, allocations: 31.91 kB / 185.4 MB, free: 4.004 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 8.264e-05/0.06321, allocations: 53.64 kB / 185.5 MB, free: 3.945 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003261/0.06355, allocations: 151.5 kB / 185.6 MB, free: 3.797 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.06357, allocations: 0 / 185.6 MB, free: 3.797 MB / 154.7 MB Notification: Performance of FrontEnd: time 5.921e-06/0.06359, allocations: 8 kB / 185.6 MB, free: 3.789 MB / 154.7 MB Notification: Performance of Transformations before backend: time 5.501e-06/0.06361, allocations: 0 / 185.6 MB, free: 3.789 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009248/0.06454, allocations: 430.4 kB / 186.1 MB, free: 3.316 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.06462, allocations: 12.03 kB / 186.1 MB, free: 3.305 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001147/0.06474, allocations: 54.55 kB / 186.1 MB, free: 3.242 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.04e-05/0.06485, allocations: 27.75 kB / 186.1 MB, free: 3.215 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003907/0.06525, allocations: 218.8 kB / 186.4 MB, free: 2.961 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.766e-05/0.06533, allocations: 24.38 kB / 186.4 MB, free: 2.938 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.262e-05/0.06542, allocations: 24 kB / 186.4 MB, free: 2.914 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008199/0.06626, allocations: 237.8 kB / 186.6 MB, free: 2.672 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.06629, allocations: 0 / 186.6 MB, free: 2.672 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.378e-05/0.06635, allocations: 8 kB / 186.6 MB, free: 2.664 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.922e-05/0.06638, allocations: 11.95 kB / 186.7 MB, free: 2.652 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006755/0.06707, allocations: 161.6 kB / 186.8 MB, free: 2.496 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.06886, allocations: 0.6858 MB / 187.5 MB, free: 1.754 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006417/0.06953, allocations: 171.4 kB / 187.7 MB, free: 1.578 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.06958, allocations: 192 / 187.7 MB, free: 1.578 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004354/0.07004, allocations: 115.5 kB / 187.8 MB, free: 1.453 MB / 154.7 MB Notification: Performance of pre-optimization done (n=24): time 5.991e-06/0.07006, allocations: 0 / 187.8 MB, free: 1.453 MB / 154.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008985/0.07098, allocations: 219.8 kB / 188 MB, free: 1.234 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.013e-05/0.07108, allocations: 59.39 kB / 188.1 MB, free: 1.164 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002184/0.07131, allocations: 154 kB / 188.2 MB, free: 1 MB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 6.693e-05/0.0714, allocations: 37.69 kB / 188.2 MB, free: 0.957 MB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.07158, allocations: 195.1 kB / 188.4 MB, free: 0.7656 MB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.0717, allocations: 63.19 kB / 188.5 MB, free: 0.7031 MB / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.772e-05/0.07175, allocations: 8 kB / 188.5 MB, free: 0.6953 MB / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.07194, allocations: 318.8 kB / 188.8 MB, free: 384 kB / 154.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002739/0.07223, allocations: 60.3 kB / 188.9 MB, free: 320 kB / 154.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003595/0.07261, allocations: 135.2 kB / 189 MB, free: 160 kB / 154.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002849/0.07291, allocations: 59.98 kB / 189.1 MB, free: 100 kB / 154.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.07294, allocations: 0 / 189.1 MB, free: 100 kB / 154.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008603/0.07381, allocations: 245.2 kB / 189.3 MB, free: 15.85 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.421e-05/0.07387, allocations: 4 kB / 189.3 MB, free: 15.85 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.0739, allocations: 4 kB / 189.3 MB, free: 15.84 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/0.07394, allocations: 4 kB / 189.3 MB, free: 15.84 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002983/0.07425, allocations: 35.91 kB / 189.3 MB, free: 15.8 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.568e-05/0.07428, allocations: 4 kB / 189.4 MB, free: 15.8 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.07454, allocations: 27.91 kB / 189.4 MB, free: 15.77 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.193e-05/0.07461, allocations: 12 kB / 189.4 MB, free: 15.76 MB / 170.7 MB Warning: Assuming fixed start value for the following 2 variables: transition2.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real 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: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0003401/0.07496, allocations: 162.2 kB / 189.6 MB, free: 15.59 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.764e-05/0.07503, allocations: 11.86 kB / 189.6 MB, free: 15.58 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007032/0.07575, allocations: 202.3 kB / 189.8 MB, free: 15.38 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.07578, allocations: 4 kB / 189.8 MB, free: 15.37 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.0758, allocations: 0 / 189.8 MB, free: 15.37 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.07582, allocations: 4 kB / 189.8 MB, free: 15.37 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001479/0.07731, allocations: 0.5764 MB / 190.3 MB, free: 14.73 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.07734, allocations: 0 / 190.3 MB, free: 14.73 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001775/0.07753, allocations: 19.98 kB / 190.4 MB, free: 14.71 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.285e-06/0.07756, allocations: 0 / 190.4 MB, free: 14.71 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.685e-05/0.0776, allocations: 7.938 kB / 190.4 MB, free: 14.71 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.755e-06/0.07762, allocations: 8 kB / 190.4 MB, free: 14.7 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.07763, allocations: 0 / 190.4 MB, free: 14.7 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006347/0.07828, allocations: 287.6 kB / 190.7 MB, free: 14.4 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.158e-05/0.07838, allocations: 88.95 kB / 190.7 MB, free: 14.3 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.862e-05/0.07844, allocations: 4 kB / 190.8 MB, free: 14.29 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.07866, allocations: 15.98 kB / 190.8 MB, free: 14.28 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.0788, allocations: 15.97 kB / 190.8 MB, free: 14.26 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.743e-05/0.07886, allocations: 16 kB / 190.8 MB, free: 14.25 MB / 170.7 MB Notification: Performance of sorting global known variables: time 9.652e-05/0.07897, allocations: 91.27 kB / 190.9 MB, free: 14.16 MB / 170.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.07898, allocations: 0 / 190.9 MB, free: 14.16 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0006625/0.07966, allocations: 51.83 kB / 190.9 MB, free: 14.11 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.00116/0.08083, allocations: 0.8176 MB / 191.8 MB, free: 13.26 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0007311/0.0816, allocations: 184 kB / 191.9 MB, free: 13.08 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.08163, allocations: 0 / 191.9 MB, free: 13.08 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003321/0.08197, allocations: 84.28 kB / 192 MB, free: 13 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004055/0.0824, allocations: 15.98 kB / 192 MB, free: 12.98 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002947/0.08537, allocations: 0.966 MB / 193 MB, free: 11.94 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004951/0.08592, allocations: 0.7367 MB / 193.7 MB, free: 11.17 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002297/0.08617, allocations: 59.47 kB / 193.8 MB, free: 11.11 MB / 170.7 MB Notification: Performance of SimCode: time 1.123e-06/0.08618, allocations: 3.938 kB / 193.8 MB, free: 11.11 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.597/2.684, allocations: 2.928 MB / 196.7 MB, free: 8.18 MB / 170.7 MB