Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Modelica_StateGraph2 with version 2.0.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica_StateGraph2 2.0.3/package.mo) Running command: "" <> buildModelFMU(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_BasicStateGraphs_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_StateGraph2): time 2.125/2.125, allocations: 208.5 MB / 216 MB, free: 10.15 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.902e-05/1.936e-05, allocations: 0 / 269.6 MB, free: 4.484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1116, allocations: 47.78 MB / 317.4 MB, free: 4.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4071/0.5187, allocations: 71.13 MB / 388.5 MB, free: 15.63 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001611/0.5189, allocations: 51.92 kB / 388.6 MB, free: 15.61 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica_StateGraph2 2.0.3/package.mo:12150:5-12156:3:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRoot. Functionality might be partially supported but is not guaranteed. Notification: Performance of FrontEnd - DAE generated: time 0.02037/0.5393, allocations: 4.801 MB / 393.4 MB, free: 11.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5394, allocations: 4 kB / 393.4 MB, free: 11.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.75e-05/0.5395, allocations: 12 kB / 393.4 MB, free: 11.61 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001103/0.5406, allocations: 0.5337 MB / 393.9 MB, free: 11.05 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.148e-05/0.5407, allocations: 8.031 kB / 393.9 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001531/0.5408, allocations: 43.52 kB / 394 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007789/0.5416, allocations: 308.3 kB / 394.3 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.958e-05/0.5417, allocations: 12 kB / 394.3 MB, free: 10.68 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.624e-05/0.5418, allocations: 31.12 kB / 394.3 MB, free: 10.65 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007708/0.5426, allocations: 245.2 kB / 394.5 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009223/0.5435, allocations: 397.7 kB / 394.9 MB, free: 10.15 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.5435, allocations: 0 / 394.9 MB, free: 10.15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.886e-05/0.5436, allocations: 4 kB / 394.9 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.5436, allocations: 12 kB / 394.9 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002989/0.5466, allocations: 1.773 MB / 396.7 MB, free: 8.406 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004762/0.5472, allocations: 369.4 kB / 397.1 MB, free: 8.016 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/0.5473, allocations: 57.61 kB / 397.1 MB, free: 7.977 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001216/0.5475, allocations: 85.36 kB / 397.2 MB, free: 7.875 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002489/0.5477, allocations: 104.4 kB / 397.3 MB, free: 7.781 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 5.881e-06/0.5477, allocations: 0 / 397.3 MB, free: 7.781 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005186/0.5483, allocations: 154.5 kB / 397.5 MB, free: 7.645 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.5484, allocations: 106.8 kB / 397.6 MB, free: 7.516 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003488/0.5488, allocations: 227.8 kB / 397.8 MB, free: 7.328 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.469e-05/0.5488, allocations: 29.7 kB / 397.8 MB, free: 7.293 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.549, allocations: 190.7 kB / 398 MB, free: 7.129 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.762e-05/0.5491, allocations: 58.03 kB / 398.1 MB, free: 7.078 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.38e-05/0.5491, allocations: 0 / 398.1 MB, free: 7.078 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.5493, allocations: 332.5 kB / 398.4 MB, free: 6.754 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.5495, allocations: 55.88 kB / 398.4 MB, free: 6.723 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003111/0.5498, allocations: 203.4 kB / 398.6 MB, free: 6.484 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002831/0.5501, allocations: 89.92 kB / 398.7 MB, free: 6.418 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-06/0.5501, allocations: 3.953 kB / 398.7 MB, free: 6.414 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000708/0.5508, allocations: 269.8 kB / 399 MB, free: 6.184 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.5509, allocations: 11.98 kB / 399 MB, free: 6.172 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.5509, allocations: 7.984 kB / 399 MB, free: 6.164 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.919e-05/0.5509, allocations: 8 kB / 399 MB, free: 6.156 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.5511, allocations: 26.42 kB / 399.1 MB, free: 6.133 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.621e-05/0.5511, allocations: 8 kB / 399.1 MB, free: 6.125 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002972/0.5514, allocations: 16.48 kB / 399.1 MB, free: 6.109 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.966e-05/0.5515, allocations: 18.75 kB / 399.1 MB, free: 6.094 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.initialStep.oldActive,initialStep.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.step3.oldActive,step3.oldActive,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,initialStep.outport_fire,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.outport_fire,T2.fire,T2.enableFire,$PRE.T2.t_start,T2.t_start,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.enableFire,$PRE.T3.t_start,T3.t_start,initialStep.node.resume,initialStep.node.suspend,T3.condition,T2.condition,initialStep.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0001881/0.5517, allocations: 129.7 kB / 399.2 MB, free: 5.965 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004105/0.5521, allocations: 155.8 kB / 399.4 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.75e-05/0.5522, allocations: 19.81 kB / 399.4 MB, free: 5.809 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000519/0.5527, allocations: 180.9 kB / 399.6 MB, free: 5.66 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.5527, allocations: 4 kB / 399.6 MB, free: 5.656 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.5527, allocations: 0 / 399.6 MB, free: 5.656 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.5528, allocations: 7.984 kB / 399.6 MB, free: 5.648 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001165/0.5539, allocations: 0.5286 MB / 400.1 MB, free: 5.152 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.554, allocations: 3.938 kB / 400.1 MB, free: 5.148 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.427e-05/0.554, allocations: 6.938 kB / 400.1 MB, free: 5.145 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.297e-05/0.554, allocations: 4 kB / 400.1 MB, free: 5.141 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.5541, allocations: 3.984 kB / 400.1 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.5541, allocations: 0 / 400.1 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.5541, allocations: 3.953 kB / 400.1 MB, free: 5.133 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004435/0.5545, allocations: 252.8 kB / 400.4 MB, free: 4.895 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.5547, allocations: 104.3 kB / 400.5 MB, free: 4.777 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.002e-05/0.5548, allocations: 7.188 kB / 400.5 MB, free: 4.773 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000227/0.555, allocations: 11.98 kB / 400.5 MB, free: 4.762 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.5551, allocations: 23.47 kB / 400.5 MB, free: 4.742 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.576e-05/0.5552, allocations: 7.953 kB / 400.5 MB, free: 4.734 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001689/0.5553, allocations: 133.8 kB / 400.7 MB, free: 4.621 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.5554, allocations: 0 / 400.7 MB, free: 4.621 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005365/0.5559, allocations: 40 kB / 400.7 MB, free: 4.582 MB / 314.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: 23 (initialStep.inport_fire,initialStep.outport_fire,step2.outport_fire,T2.enableFire,T3.enableFire,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.fire,T2.t_start,step3.newActive,step3.oldActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.t_start) * Number of discrete states: 3 (step3.newActive,step2.newActive,initialStep.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0009048/0.5568, allocations: 0.8065 MB / 401.5 MB, free: 3.781 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000525/0.5574, allocations: 171.9 kB / 401.7 MB, free: 3.652 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.5574, allocations: 0 / 401.7 MB, free: 3.652 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001597/0.5576, allocations: 67.22 kB / 401.7 MB, free: 3.602 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.5579, allocations: 27.67 kB / 401.8 MB, free: 3.582 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.5593, allocations: 388.6 kB / 402.1 MB, free: 3.195 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004795/0.5598, allocations: 0.8072 MB / 403 MB, free: 2.363 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002202/0.56, allocations: 39.27 kB / 403 MB, free: 2.324 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/0.5602, allocations: 95.72 kB / 403.1 MB, free: 2.297 MB / 314.7 MB Notification: Performance of SimCode: time 1.122e-06/0.5602, allocations: 0 / 403.1 MB, free: 2.297 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.049/0.6093, allocations: 4.309 MB / 407.4 MB, free: 13.99 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003023/0.6096, allocations: 155.8 kB / 407.5 MB, free: 13.8 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.531/3.14, allocations: 3.938 kB / 407.6 MB, free: 13.79 MB / 330.7 MB