Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.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_Variant3,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_BasicStateGraphs_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_StateGraph2): time 2.647/2.647, allocations: 208.4 MB / 221 MB, free: 15.36 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.175e-05/4.193e-05, allocations: 4 kB / 276.1 MB, free: 8.172 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4203/0.4204, allocations: 47.78 MB / 323.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1382/0.5587, allocations: 71.92 MB / 395.8 MB, free: 5.254 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001934/0.559, allocations: 51.92 kB / 395.9 MB, free: 5.203 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.02073/0.5797, allocations: 5.041 MB / 400.9 MB, free: 136 kB / 330.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.5798, allocations: 4 kB / 400.9 MB, free: 132 kB / 330.7 MB Notification: Performance of Transformations before backend: time 3.816e-05/0.5798, allocations: 11.98 kB / 400.9 MB, free: 120 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001113/0.5809, allocations: 0.5655 MB / 401.5 MB, free: 15.49 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/0.581, allocations: 8.031 kB / 401.5 MB, free: 15.48 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001492/0.5812, allocations: 82.52 kB / 401.6 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001346/0.5813, allocations: 43.53 kB / 401.6 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007529/0.5821, allocations: 322.4 kB / 401.9 MB, free: 15 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/0.5822, allocations: 54.7 kB / 402 MB, free: 14.94 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.307e-05/0.5823, allocations: 51.95 kB / 402 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.5835, allocations: 479 kB / 402.5 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.5835, allocations: 0 / 402.5 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.679e-05/0.5836, allocations: 20 kB / 402.5 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.637e-05/0.5836, allocations: 11.94 kB / 402.5 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008312/0.5844, allocations: 283 kB / 402.8 MB, free: 14.06 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003098/0.5876, allocations: 1.881 MB / 404.7 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006028/0.5882, allocations: 409.3 kB / 405.1 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001937/0.5884, allocations: 78.09 kB / 405.2 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001104/0.5896, allocations: 0.7211 MB / 405.9 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003386/0.5899, allocations: 174.6 kB / 406.1 MB, free: 10.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 3.357e-06/0.5899, allocations: 4 kB / 406.1 MB, free: 10.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005371/0.5905, allocations: 203.1 kB / 406.3 MB, free: 10.29 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.5906, allocations: 162.4 kB / 406.4 MB, free: 10.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003733/0.591, allocations: 233.7 kB / 406.7 MB, free: 9.852 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.083e-05/0.5911, allocations: 33.7 kB / 406.7 MB, free: 9.812 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001846/0.5913, allocations: 204.2 kB / 406.9 MB, free: 9.609 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.039e-05/0.5914, allocations: 51.41 kB / 406.9 MB, free: 9.559 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.316e-05/0.5914, allocations: 12 kB / 407 MB, free: 9.547 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.5916, allocations: 335.5 kB / 407.3 MB, free: 9.211 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.5918, allocations: 72.8 kB / 407.4 MB, free: 9.141 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003333/0.5921, allocations: 211.8 kB / 407.6 MB, free: 8.867 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002704/0.5924, allocations: 125.5 kB / 407.7 MB, free: 8.738 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.5924, allocations: 4 kB / 407.7 MB, free: 8.734 MB / 346.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008008/0.5932, allocations: 350.8 kB / 408 MB, free: 8.379 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.153e-05/0.5933, allocations: 33.7 kB / 408.1 MB, free: 8.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.5933, allocations: 4 kB / 408.1 MB, free: 8.336 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.092e-05/0.5934, allocations: 8 kB / 408.1 MB, free: 8.328 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.5935, allocations: 31.86 kB / 408.1 MB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.254e-05/0.5936, allocations: 8 kB / 408.1 MB, free: 8.289 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002755/0.5939, allocations: 28.23 kB / 408.1 MB, free: 8.262 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.974e-05/0.5939, allocations: 23.95 kB / 408.2 MB, free: 8.238 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 47 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.onDelay.u,$PRE.step3.oldActive,step3.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.initialStep.oldActive,initialStep.oldActive,$whenCondition1,$whenCondition2,$whenCondition3,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,T2.enableFire,T2.conditionPort,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.enableFire,$PRE.T3.t_start,T3.t_start,onDelay.u,$PRE.onDelay.delaySignal,onDelay.delaySignal,$PRE.onDelay.t_next,onDelay.t_next,step3.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.node.resume,initialStep.node.suspend,T3.condition,step3.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection,T2.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 1 * 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.0002243/0.5942, allocations: 179.8 kB / 408.3 MB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.169e-05/0.5942, allocations: 23.83 kB / 408.4 MB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006062/0.5949, allocations: 244.7 kB / 408.6 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.5949, allocations: 0 / 408.6 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.5949, allocations: 7.953 kB / 408.6 MB, free: 7.773 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/0.5949, allocations: 7.984 kB / 408.6 MB, free: 7.766 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001283/0.5962, allocations: 0.66 MB / 409.3 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.5962, allocations: 4 kB / 409.3 MB, free: 7.039 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.272e-05/0.5963, allocations: 7.938 kB / 409.3 MB, free: 7.031 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/0.5963, allocations: 0 / 409.3 MB, free: 7.031 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.498e-05/0.5963, allocations: 8 kB / 409.3 MB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.5963, allocations: 0 / 409.3 MB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.5964, allocations: 3.984 kB / 409.3 MB, free: 7.02 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005224/0.5969, allocations: 316.9 kB / 409.6 MB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001334/0.597, allocations: 112.8 kB / 409.7 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.218e-05/0.5971, allocations: 8 kB / 409.7 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002067/0.5973, allocations: 15.98 kB / 409.7 MB, free: 6.535 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.5974, allocations: 19.91 kB / 409.8 MB, free: 6.516 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.5975, allocations: 8 kB / 409.8 MB, free: 6.508 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001865/0.5977, allocations: 148.6 kB / 409.9 MB, free: 6.363 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5977, allocations: 0 / 409.9 MB, free: 6.363 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005434/0.5982, allocations: 63.95 kB / 410 MB, free: 6.301 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 (T3.enableFire,$whenCondition1,$whenCondition2,$whenCondition3,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.enableFire,T2.conditionPort,step3.newActive,step3.oldActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.t_start,onDelay.u,onDelay.delaySignal,onDelay.t_next) * Number of discrete states: 7 (initialStep.newActive,step2.newActive,step3.newActive,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.0009525/0.5992, allocations: 0.8746 MB / 410.9 MB, free: 5.391 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005998/0.5998, allocations: 254.6 kB / 411.1 MB, free: 5.133 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5999, allocations: 0 / 411.1 MB, free: 5.133 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002501/0.6001, allocations: 151.2 kB / 411.2 MB, free: 4.973 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002996/0.6004, allocations: 25.91 kB / 411.3 MB, free: 4.945 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.6018, allocations: 444.3 kB / 411.7 MB, free: 4.477 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004713/0.6023, allocations: 0.8035 MB / 412.5 MB, free: 3.648 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001869/0.6025, allocations: 34.95 kB / 412.5 MB, free: 3.609 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002112/0.6027, allocations: 111.4 kB / 412.7 MB, free: 3.5 MB / 346.7 MB Notification: Performance of SimCode: time 9.42e-07/0.6027, allocations: 0 / 412.7 MB, free: 3.5 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03645/0.6392, allocations: 4.723 MB / 417.4 MB, free: 14.82 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003936/0.6397, allocations: 182.3 kB / 417.6 MB, free: 14.59 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.922/3.561, allocations: 7.938 kB / 417.6 MB, free: 14.58 MB / 362.7 MB