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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Modelica_StateGraph2 with version 2.0.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.335/2.335, allocations: 208.4 MB / 221 MB, free: 15.45 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.5e-05/3.516e-05, allocations: 7.984 kB / 276.1 MB, free: 8.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4051/0.4052, allocations: 47.77 MB / 323.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1396/0.5449, allocations: 71.8 MB / 395.7 MB, free: 5.383 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002038/0.5452, allocations: 47.98 kB / 395.7 MB, free: 5.336 MB / 330.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.01992/0.5651, allocations: 4.834 MB / 400.6 MB, free: 484 kB / 330.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.5652, allocations: 3.938 kB / 400.6 MB, free: 480 kB / 330.7 MB Notification: Performance of Transformations before backend: time 3.812e-05/0.5652, allocations: 12 kB / 400.6 MB, free: 468 kB / 330.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.001059/0.5663, allocations: 0.5342 MB / 401.1 MB, free: 15.88 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.5664, allocations: 8.031 kB / 401.1 MB, free: 15.87 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001408/0.5665, allocations: 82.52 kB / 401.2 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.5667, allocations: 39.53 kB / 401.3 MB, free: 15.74 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007623/0.5674, allocations: 306.5 kB / 401.6 MB, free: 15.4 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.908e-05/0.5675, allocations: 32.78 kB / 401.6 MB, free: 15.37 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.766e-05/0.5676, allocations: 40 kB / 401.6 MB, free: 15.33 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.5687, allocations: 459.4 kB / 402.1 MB, free: 14.83 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.5688, allocations: 4 kB / 402.1 MB, free: 14.83 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-05/0.5689, allocations: 16 kB / 402.1 MB, free: 14.81 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.406e-05/0.5689, allocations: 12 kB / 402.1 MB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000905/0.5698, allocations: 267 kB / 402.4 MB, free: 14.54 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003499/0.5733, allocations: 1.861 MB / 404.2 MB, free: 12.51 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009039/0.5743, allocations: 379 kB / 404.6 MB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000298/0.5747, allocations: 61.17 kB / 404.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001686/0.5749, allocations: 85.28 kB / 404.7 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004277/0.5753, allocations: 111.4 kB / 404.9 MB, free: 11.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 4.759e-06/0.5754, allocations: 4 kB / 404.9 MB, free: 11.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007975/0.5762, allocations: 157.2 kB / 405 MB, free: 11.63 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001461/0.5764, allocations: 118.9 kB / 405.1 MB, free: 11.49 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005858/0.577, allocations: 221.7 kB / 405.3 MB, free: 11.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001321/0.5771, allocations: 33.7 kB / 405.4 MB, free: 11.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000295/0.5774, allocations: 188.4 kB / 405.6 MB, free: 11.04 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.5776, allocations: 55.34 kB / 405.6 MB, free: 10.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.025e-05/0.5776, allocations: 4 kB / 405.6 MB, free: 10.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002313/0.5779, allocations: 350.7 kB / 406 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003002/0.5782, allocations: 64.86 kB / 406 MB, free: 10.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000503/0.5787, allocations: 207.8 kB / 406.2 MB, free: 10.29 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003902/0.5792, allocations: 104.5 kB / 406.3 MB, free: 10.19 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.266e-06/0.5792, allocations: 0 / 406.3 MB, free: 10.19 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00112/0.5803, allocations: 305.4 kB / 406.6 MB, free: 9.887 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.892e-05/0.5804, allocations: 8 kB / 406.6 MB, free: 9.879 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-05/0.5804, allocations: 4 kB / 406.6 MB, free: 9.875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.645e-05/0.5805, allocations: 8 kB / 406.6 MB, free: 9.867 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000194/0.5807, allocations: 27.86 kB / 406.7 MB, free: 9.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.124e-05/0.5807, allocations: 15.97 kB / 406.7 MB, free: 9.824 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004839/0.5812, allocations: 20 kB / 406.7 MB, free: 9.805 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.818e-05/0.5813, allocations: 12 kB / 406.7 MB, free: 9.793 MB / 346.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.0002854/0.5816, allocations: 166.1 kB / 406.9 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.882e-05/0.5817, allocations: 19.72 kB / 406.9 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006957/0.5824, allocations: 183.1 kB / 407.1 MB, free: 9.418 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.5825, allocations: 4 kB / 407.1 MB, free: 9.414 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.5825, allocations: 0 / 407.1 MB, free: 9.414 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.5825, allocations: 0 / 407.1 MB, free: 9.414 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001934/0.5845, allocations: 0.6233 MB / 407.7 MB, free: 8.734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.5846, allocations: 3.938 kB / 407.7 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.47e-05/0.5846, allocations: 3.984 kB / 407.7 MB, free: 8.727 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.455e-05/0.5847, allocations: 4 kB / 407.7 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.765e-05/0.5847, allocations: 0 / 407.7 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.212e-06/0.5847, allocations: 0 / 407.7 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/0.5847, allocations: 3.953 kB / 407.7 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007461/0.5855, allocations: 279 kB / 408 MB, free: 8.43 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002109/0.5858, allocations: 104.8 kB / 408.1 MB, free: 8.309 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.87e-05/0.5859, allocations: 8 kB / 408.1 MB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003656/0.5862, allocations: 11.98 kB / 408.1 MB, free: 8.289 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.5864, allocations: 27.91 kB / 408.1 MB, free: 8.262 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.233e-05/0.5865, allocations: 12 kB / 408.2 MB, free: 8.25 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003088/0.5868, allocations: 144.6 kB / 408.3 MB, free: 8.109 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.5869, allocations: 0 / 408.3 MB, free: 8.109 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009941/0.5879, allocations: 52 kB / 408.3 MB, free: 8.059 MB / 346.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.00142/0.5893, allocations: 0.8151 MB / 409.2 MB, free: 7.219 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008409/0.5902, allocations: 187.6 kB / 409.3 MB, free: 7.035 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/0.5903, allocations: 0 / 409.3 MB, free: 7.035 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002765/0.5906, allocations: 71.92 kB / 409.4 MB, free: 6.965 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005068/0.5911, allocations: 25.12 kB / 409.4 MB, free: 6.941 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002231/0.5934, allocations: 416.5 kB / 409.8 MB, free: 6.5 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000667/0.5941, allocations: 0.7957 MB / 410.6 MB, free: 5.676 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003356/0.5945, allocations: 46.92 kB / 410.7 MB, free: 5.629 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002928/0.5948, allocations: 103.4 kB / 410.8 MB, free: 5.527 MB / 346.7 MB Notification: Performance of SimCode: time 2.214e-06/0.5948, allocations: 0 / 410.8 MB, free: 5.527 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03787/0.6327, allocations: 4.711 MB / 415.5 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003244/0.6331, allocations: 172.6 kB / 415.7 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.753/3.386, allocations: 0 / 415.7 MB, free: 0.6328 MB / 346.7 MB