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_Variant3.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_Variant3,fileNamePrefix="Modelica_3_1_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.216/1.216, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002638/0.0002638, allocations: 4 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05552/0.05582, allocations: 25.18 MB / 183.5 MB, free: 5.922 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002265/0.05814, allocations: 1.253 MB / 184.8 MB, free: 4.668 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008073/0.05899, allocations: 263.2 kB / 185 MB, free: 4.41 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.05912, allocations: 7.938 kB / 185 MB, free: 4.402 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001205/0.05925, allocations: 27.8 kB / 185.1 MB, free: 4.375 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 6.773e-05/0.05933, allocations: 11.98 kB / 185.1 MB, free: 4.363 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004231/0.05977, allocations: 83.89 kB / 185.1 MB, free: 4.281 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003261/0.06011, allocations: 155.7 kB / 185.3 MB, free: 4.129 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003464/0.06047, allocations: 154.1 kB / 185.4 MB, free: 3.969 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.06059, allocations: 67.7 kB / 185.5 MB, free: 3.902 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001517/0.06075, allocations: 75.67 kB / 185.6 MB, free: 3.828 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 3.553e-05/0.0608, allocations: 8 kB / 185.6 MB, free: 3.82 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.062e-05/0.0609, allocations: 19.94 kB / 185.6 MB, free: 3.801 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 7.465e-05/0.06099, allocations: 39.84 kB / 185.7 MB, free: 3.762 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 6.496e-05/0.06106, allocations: 53.58 kB / 185.7 MB, free: 3.703 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002732/0.06135, allocations: 155.7 kB / 185.9 MB, free: 3.551 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.06137, allocations: 0 / 185.9 MB, free: 3.551 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.06138, allocations: 0 / 185.9 MB, free: 3.551 MB / 154.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.06139, allocations: 0 / 185.9 MB, free: 3.551 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.0007694/0.06217, allocations: 438.1 kB / 186.3 MB, free: 3.07 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.06223, allocations: 8.031 kB / 186.3 MB, free: 3.062 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.014e-05/0.06233, allocations: 66.47 kB / 186.4 MB, free: 2.988 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.179e-05/0.06241, allocations: 27.67 kB / 186.4 MB, free: 2.961 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003163/0.06274, allocations: 218.8 kB / 186.6 MB, free: 2.707 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.725e-05/0.0628, allocations: 24.56 kB / 186.6 MB, free: 2.684 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.929e-05/0.0629, allocations: 35.88 kB / 186.7 MB, free: 2.648 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006596/0.06357, allocations: 262 kB / 186.9 MB, free: 2.371 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.0636, allocations: 0 / 186.9 MB, free: 2.371 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.519e-05/0.06365, allocations: 12 kB / 186.9 MB, free: 2.359 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.442e-05/0.06367, allocations: 7.953 kB / 186.9 MB, free: 2.352 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004998/0.06418, allocations: 169.6 kB / 187.1 MB, free: 2.188 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001599/0.0658, allocations: 0.952 MB / 188.1 MB, free: 1.164 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004297/0.06626, allocations: 155.4 kB / 188.2 MB, free: 1.004 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.182e-05/0.0663, allocations: 8.188 kB / 188.2 MB, free: 0.9961 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003201/0.06663, allocations: 111.4 kB / 188.3 MB, free: 0.875 MB / 154.7 MB Notification: Performance of pre-optimization done (n=23): time 3.076e-06/0.06665, allocations: 0 / 188.3 MB, free: 0.875 MB / 154.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006579/0.06732, allocations: 215.9 kB / 188.5 MB, free: 0.6602 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.06738, allocations: 55.41 kB / 188.6 MB, free: 0.5938 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.06758, allocations: 161.5 kB / 188.7 MB, free: 436 kB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 4.193e-05/0.06763, allocations: 33.7 kB / 188.8 MB, free: 396 kB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.06779, allocations: 207 kB / 189 MB, free: 188 kB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.318e-05/0.06787, allocations: 63.17 kB / 189 MB, free: 124 kB / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.665e-05/0.0679, allocations: 4 kB / 189 MB, free: 120 kB / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.06808, allocations: 330.8 kB / 189.4 MB, free: 15.79 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.06828, allocations: 60.62 kB / 189.4 MB, free: 15.73 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.06855, allocations: 137.8 kB / 189.6 MB, free: 15.56 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.06878, allocations: 67.98 kB / 189.6 MB, free: 15.5 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.0688, allocations: 0 / 189.6 MB, free: 15.5 MB / 170.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006086/0.06941, allocations: 245.3 kB / 189.9 MB, free: 15.25 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.06945, allocations: 4 kB / 189.9 MB, free: 15.25 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.06947, allocations: 4 kB / 189.9 MB, free: 15.24 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.0695, allocations: 4 kB / 189.9 MB, free: 15.24 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002344/0.06974, allocations: 31.86 kB / 189.9 MB, free: 15.21 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.06977, allocations: 4 kB / 189.9 MB, free: 15.2 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001821/0.06996, allocations: 35.97 kB / 189.9 MB, free: 15.17 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/0.07001, allocations: 19.92 kB / 190 MB, free: 15.15 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.0002661/0.07029, allocations: 160.3 kB / 190.1 MB, free: 14.98 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.682e-05/0.07034, allocations: 15.8 kB / 190.1 MB, free: 14.96 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005501/0.0709, allocations: 194.3 kB / 190.3 MB, free: 14.77 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.07092, allocations: 4 kB / 190.3 MB, free: 14.77 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.07094, allocations: 4 kB / 190.3 MB, free: 14.76 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.07096, allocations: 4 kB / 190.3 MB, free: 14.76 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.07207, allocations: 0.5799 MB / 190.9 MB, free: 14.12 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.07209, allocations: 0 / 190.9 MB, free: 14.12 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001336/0.07223, allocations: 19.98 kB / 190.9 MB, free: 14.1 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.795e-06/0.07226, allocations: 4 kB / 190.9 MB, free: 14.09 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.725e-05/0.07228, allocations: 0 / 190.9 MB, free: 14.09 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.07229, allocations: 0 / 190.9 MB, free: 14.09 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.07231, allocations: 3.938 kB / 190.9 MB, free: 14.09 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000467/0.07278, allocations: 279.5 kB / 191.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.253e-05/0.07287, allocations: 96.86 kB / 191.3 MB, free: 13.69 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.626e-05/0.07292, allocations: 0 / 191.3 MB, free: 13.69 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001471/0.07307, allocations: 11.98 kB / 191.3 MB, free: 13.68 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.875e-05/0.07319, allocations: 23.97 kB / 191.4 MB, free: 13.65 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.07322, allocations: 4 kB / 191.4 MB, free: 13.65 MB / 170.7 MB Notification: Performance of sorting global known variables: time 9.062e-05/0.07332, allocations: 107.2 kB / 191.5 MB, free: 13.54 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.07333, allocations: 0 / 191.5 MB, free: 13.54 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004235/0.07376, allocations: 47.84 kB / 191.5 MB, free: 13.5 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.0008711/0.07464, allocations: 0.8098 MB / 192.3 MB, free: 12.66 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0005689/0.07523, allocations: 188.1 kB / 192.5 MB, free: 12.48 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.07525, allocations: 0 / 192.5 MB, free: 12.48 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002155/0.07548, allocations: 84.28 kB / 192.6 MB, free: 12.39 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.07577, allocations: 16 kB / 192.6 MB, free: 12.38 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.07797, allocations: 0.9908 MB / 193.6 MB, free: 11.3 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004089/0.07842, allocations: 0.7445 MB / 194.3 MB, free: 10.53 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.0786, allocations: 59.42 kB / 194.4 MB, free: 10.47 MB / 170.7 MB Notification: Performance of SimCode: time 1.092e-06/0.07862, allocations: 0 / 194.4 MB, free: 10.47 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.391/2.47, allocations: 3.002 MB / 197.4 MB, free: 7.469 MB / 170.7 MB