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_Variant2.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_Variant2,fileNamePrefix="Modelica_3_1_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.3/1.3, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002924/0.0002925, allocations: 8 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05575/0.05609, allocations: 25.17 MB / 183.5 MB, free: 5.918 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002273/0.05842, allocations: 1.23 MB / 184.7 MB, free: 4.688 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008159/0.05928, allocations: 267.2 kB / 185 MB, free: 4.426 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.05941, allocations: 7.938 kB / 185 MB, free: 4.418 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001176/0.05954, allocations: 27.8 kB / 185 MB, free: 4.391 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 5.597e-05/0.05961, allocations: 7.984 kB / 185 MB, free: 4.383 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004672/0.06009, allocations: 87.89 kB / 185.1 MB, free: 4.297 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003425/0.06045, allocations: 159.7 kB / 185.3 MB, free: 4.141 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003369/0.0608, allocations: 157.8 kB / 185.4 MB, free: 3.984 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001088/0.06092, allocations: 67.7 kB / 185.5 MB, free: 3.918 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.06108, allocations: 71.69 kB / 185.6 MB, free: 3.848 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 3.429e-05/0.06113, allocations: 11.94 kB / 185.6 MB, free: 3.836 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.119e-05/0.06122, allocations: 12 kB / 185.6 MB, free: 3.824 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 6.919e-05/0.0613, allocations: 47.83 kB / 185.6 MB, free: 3.777 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 7.595e-05/0.06139, allocations: 53.58 kB / 185.7 MB, free: 3.719 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002882/0.06169, allocations: 163.6 kB / 185.9 MB, free: 3.559 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.06171, allocations: 0 / 185.9 MB, free: 3.559 MB / 154.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.06172, allocations: 0 / 185.9 MB, free: 3.559 MB / 154.7 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.06173, allocations: 3.938 kB / 185.9 MB, free: 3.555 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.0007948/0.06254, allocations: 434.1 kB / 186.3 MB, free: 3.082 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.0626, allocations: 8.031 kB / 186.3 MB, free: 3.074 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.776e-05/0.06271, allocations: 62.48 kB / 186.4 MB, free: 3.004 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.192e-05/0.06279, allocations: 23.72 kB / 186.4 MB, free: 2.98 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003346/0.06313, allocations: 234.7 kB / 186.6 MB, free: 2.711 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.735e-05/0.0632, allocations: 20.56 kB / 186.6 MB, free: 2.688 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.941e-05/0.06326, allocations: 24 kB / 186.6 MB, free: 2.664 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006344/0.06391, allocations: 262 kB / 186.9 MB, free: 2.387 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.06398, allocations: 4 kB / 186.9 MB, free: 2.383 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.869e-05/0.06402, allocations: 4 kB / 186.9 MB, free: 2.379 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.06405, allocations: 19.89 kB / 186.9 MB, free: 2.359 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004912/0.06455, allocations: 169.6 kB / 187.1 MB, free: 2.195 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00159/0.06616, allocations: 0.9521 MB / 188 MB, free: 1.172 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004162/0.0666, allocations: 151.3 kB / 188.2 MB, free: 1.016 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.06664, allocations: 8.188 kB / 188.2 MB, free: 1.008 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003241/0.06698, allocations: 107.6 kB / 188.3 MB, free: 0.8906 MB / 154.7 MB Notification: Performance of pre-optimization done (n=23): time 3.246e-06/0.06699, allocations: 3.938 kB / 188.3 MB, free: 0.8867 MB / 154.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006515/0.06765, allocations: 215.8 kB / 188.5 MB, free: 0.6719 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.503e-05/0.06773, allocations: 59.39 kB / 188.6 MB, free: 0.6016 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001949/0.06794, allocations: 157.8 kB / 188.7 MB, free: 448 kB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 4.941e-05/0.06801, allocations: 41.7 kB / 188.8 MB, free: 400 kB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.06817, allocations: 210.9 kB / 189 MB, free: 188 kB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.094e-05/0.06826, allocations: 55.27 kB / 189 MB, free: 132 kB / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.699e-05/0.06828, allocations: 4 kB / 189 MB, free: 128 kB / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.06848, allocations: 330.8 kB / 189.4 MB, free: 15.79 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001944/0.06869, allocations: 60.62 kB / 189.4 MB, free: 15.73 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002629/0.06896, allocations: 137.8 kB / 189.6 MB, free: 15.57 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002213/0.0692, allocations: 67.97 kB / 189.6 MB, free: 15.5 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.06922, allocations: 8 kB / 189.6 MB, free: 15.49 MB / 170.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006031/0.06983, allocations: 237.3 kB / 189.9 MB, free: 15.25 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.06987, allocations: 8 kB / 189.9 MB, free: 15.25 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.06989, allocations: 0 / 189.9 MB, free: 15.25 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.222e-05/0.06992, allocations: 4 kB / 189.9 MB, free: 15.24 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002395/0.07017, allocations: 39.84 kB / 189.9 MB, free: 15.2 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.0702, allocations: 4.281 kB / 189.9 MB, free: 15.2 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001757/0.07038, allocations: 35.69 kB / 190 MB, free: 15.16 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.044e-05/0.07044, allocations: 15.94 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.0002907/0.07074, allocations: 164.3 kB / 190.1 MB, free: 14.98 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.4e-05/0.07078, allocations: 11.81 kB / 190.1 MB, free: 14.96 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005269/0.07132, allocations: 194.7 kB / 190.3 MB, free: 14.77 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.07134, allocations: 4 kB / 190.3 MB, free: 14.77 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.004e-06/0.07136, allocations: 8 kB / 190.3 MB, free: 14.76 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.07138, allocations: 0 / 190.3 MB, free: 14.76 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.07255, allocations: 0.5877 MB / 190.9 MB, free: 14.11 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.07258, allocations: 0 / 190.9 MB, free: 14.11 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001322/0.07272, allocations: 15.94 kB / 190.9 MB, free: 14.09 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.643e-06/0.07274, allocations: 4 kB / 191 MB, free: 14.09 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.07277, allocations: 3.984 kB / 191 MB, free: 14.09 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.608e-06/0.07279, allocations: 4 kB / 191 MB, free: 14.08 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.0728, allocations: 7.953 kB / 191 MB, free: 14.07 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004957/0.07331, allocations: 275.4 kB / 191.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.216e-05/0.07338, allocations: 88.95 kB / 191.3 MB, free: 13.68 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.223e-05/0.07344, allocations: 4 kB / 191.3 MB, free: 13.68 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.07358, allocations: 8 kB / 191.3 MB, free: 13.67 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.463e-05/0.07369, allocations: 27.91 kB / 191.4 MB, free: 13.64 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.261e-05/0.07372, allocations: 8 kB / 191.4 MB, free: 13.64 MB / 170.7 MB Notification: Performance of sorting global known variables: time 8.859e-05/0.07382, allocations: 99.27 kB / 191.5 MB, free: 13.54 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.07383, allocations: 0 / 191.5 MB, free: 13.54 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004248/0.07427, allocations: 51.84 kB / 191.5 MB, free: 13.49 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,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.0008913/0.07517, allocations: 0.8098 MB / 192.3 MB, free: 12.65 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0005472/0.07574, allocations: 191.9 kB / 192.5 MB, free: 12.46 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.07575, allocations: 0 / 192.5 MB, free: 12.46 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002334/0.076, allocations: 76.3 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.0002778/0.07629, allocations: 15.98 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.002205/0.07851, allocations: 1.011 MB / 193.6 MB, free: 11.28 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004079/0.07895, allocations: 0.7406 MB / 194.4 MB, free: 10.51 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.07913, allocations: 59.48 kB / 194.4 MB, free: 10.45 MB / 170.7 MB Notification: Performance of SimCode: time 1.212e-06/0.07915, allocations: 7.938 kB / 194.4 MB, free: 10.44 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.393/2.472, allocations: 3.017 MB / 197.4 MB, free: 7.422 MB / 170.7 MB