Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.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.Actions2,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_BasicStateGraphs_Actions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_StateGraph2): time 2.246/2.246, allocations: 208.5 MB / 216 MB, free: 10.15 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.903e-05/1.91e-05, allocations: 0 / 269.6 MB, free: 4.473 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1081, allocations: 47.77 MB / 317.4 MB, free: 4.605 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4293/0.5374, allocations: 71.37 MB / 388.7 MB, free: 15.34 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001633/0.5377, allocations: 48.36 kB / 388.8 MB, free: 15.32 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.03105/0.5687, allocations: 7.958 MB / 396.8 MB, free: 8.742 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5688, allocations: 7.938 kB / 396.8 MB, free: 8.734 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.546e-05/0.5689, allocations: 19.98 kB / 396.8 MB, free: 8.715 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.001473/0.5703, allocations: 0.7374 MB / 397.5 MB, free: 7.973 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.5704, allocations: 8.031 kB / 397.5 MB, free: 7.965 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001946/0.5706, allocations: 75.16 kB / 397.6 MB, free: 7.891 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001089/0.5717, allocations: 438.7 kB / 398 MB, free: 7.484 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.599e-05/0.5718, allocations: 28 kB / 398.1 MB, free: 7.457 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001255/0.5719, allocations: 40 kB / 398.1 MB, free: 7.418 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001263/0.5732, allocations: 455.2 kB / 398.5 MB, free: 7.129 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.5748, allocations: 0.6818 MB / 399.2 MB, free: 6.535 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.79e-05/0.5748, allocations: 7.938 kB / 399.2 MB, free: 6.527 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.012e-05/0.5749, allocations: 3.984 kB / 399.2 MB, free: 6.523 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-05/0.575, allocations: 29.31 kB / 399.3 MB, free: 6.496 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00461/0.5796, allocations: 2.959 MB / 402.2 MB, free: 3.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009189/0.5805, allocations: 0.6487 MB / 402.9 MB, free: 2.988 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002598/0.5808, allocations: 104.6 kB / 403 MB, free: 2.918 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001382/0.581, allocations: 92.16 kB / 403.1 MB, free: 2.812 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000421/0.5814, allocations: 173.3 kB / 403.2 MB, free: 2.668 MB / 314.7 MB Notification: Performance of pre-optimization done (n=46): time 3.326e-06/0.5814, allocations: 0 / 403.2 MB, free: 2.668 MB / 314.7 MB Notification: Performance of matching and sorting (n=46): time 0.0008889/0.5823, allocations: 290.9 kB / 403.5 MB, free: 2.426 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/0.5825, allocations: 198.8 kB / 403.7 MB, free: 2.191 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005162/0.583, allocations: 334.7 kB / 404 MB, free: 1.93 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.135e-05/0.5831, allocations: 40.75 kB / 404.1 MB, free: 1.887 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002692/0.5834, allocations: 282 kB / 404.4 MB, free: 1.652 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.5835, allocations: 95.41 kB / 404.4 MB, free: 1.578 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-05/0.5836, allocations: 4 kB / 404.4 MB, free: 1.574 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.5838, allocations: 353 kB / 404.8 MB, free: 1.238 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003214/0.5841, allocations: 122.9 kB / 404.9 MB, free: 1.164 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005674/0.5847, allocations: 387.8 kB / 405.3 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005146/0.5852, allocations: 186.8 kB / 405.5 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.5852, allocations: 0 / 405.5 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001301/0.5865, allocations: 0.4962 MB / 406 MB, free: 176 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.5866, allocations: 8 kB / 406 MB, free: 168 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/0.5866, allocations: 8.875 kB / 406 MB, free: 160 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.685e-05/0.5866, allocations: 12 kB / 406 MB, free: 148 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002402/0.5869, allocations: 51.66 kB / 406 MB, free: 100 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.435e-05/0.5869, allocations: 19.92 kB / 406.1 MB, free: 80 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004862/0.5874, allocations: 23.98 kB / 406.1 MB, free: 56 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.777e-05/0.5875, allocations: 35.69 kB / 406.1 MB, free: 28 kB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 93 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.T4.enableFire,$PRE.T5.enableFire,$PRE.initialStep.oldActive,initialStep.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.step3.oldActive,step3.oldActive,$PRE.step4.oldActive,step4.oldActive,$PRE.step1.oldActive,step1.oldActive,initialStep.node.resume,initialStep.node.suspend,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,initialStep.outport_fire,T1.fire,T1.enableFire,$PRE.T1.t_start,T1.t_start,$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,$PRE.step4.newActive,step4.newActive,step4.inport_fire,step4.outport_fire,T4.fire,T4.enableFire,$PRE.T4.t_start,T4.t_start,T5.fire,T5.enableFire,$PRE.T5.t_start,T5.t_start,$PRE.step1.newActive,step1.newActive,step1.inport_fire,step1.outport_fire,$PRE.risingEdge.u,risingEdge.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.fallingEdge.not_u,fallingEdge.not_u,set1.expr[1],set1.expr[2],T5.condition,T4.condition,T3.condition,T2.condition,T1.condition,T5.outPort.checkOneDelayedTransitionPerLoop,step1.outPort[1].checkOneDelayedTransitionPerLoop,step1.inPort[1].checkUnaryConnection,T4.outPort.checkOneDelayedTransitionPerLoop,step4.outPort[1].checkOneDelayedTransitionPerLoop,step4.inPort[1].checkUnaryConnection,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,T1.outPort.checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step2.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 93 * 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.0002763/0.5878, allocations: 188.1 kB / 406.3 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007393/0.5886, allocations: 284.8 kB / 406.6 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.516e-05/0.5887, allocations: 39.53 kB / 406.6 MB, free: 15.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008658/0.5895, allocations: 316 kB / 406.9 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.5896, allocations: 8 kB / 406.9 MB, free: 15.31 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.5896, allocations: 4 kB / 406.9 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.5896, allocations: 3.984 kB / 407 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002059/0.5917, allocations: 0.848 MB / 407.8 MB, free: 14.56 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.5917, allocations: 4 kB / 407.8 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.921e-05/0.5918, allocations: 15.36 kB / 407.8 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.401e-05/0.5918, allocations: 4 kB / 407.8 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.207e-05/0.5919, allocations: 10.75 kB / 407.8 MB, free: 14.53 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.5919, allocations: 4 kB / 407.8 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.5919, allocations: 0 / 407.8 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008079/0.5927, allocations: 396.5 kB / 408.2 MB, free: 14.17 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001987/0.5929, allocations: 139.3 kB / 408.4 MB, free: 14.03 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.56e-05/0.593, allocations: 7.984 kB / 408.4 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003656/0.5934, allocations: 23.94 kB / 408.4 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000181/0.5936, allocations: 50.86 kB / 408.4 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.887e-05/0.5937, allocations: 19.8 kB / 408.5 MB, free: 13.94 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002564/0.5939, allocations: 185.3 kB / 408.6 MB, free: 13.79 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5939, allocations: 0 / 408.6 MB, free: 13.79 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000732/0.5947, allocations: 87.98 kB / 408.7 MB, free: 13.7 MB / 330.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: 46 (initialStep.inport_fire,initialStep.outport_fire,T1.enableFire,step2.outport_fire,T2.enableFire,step3.outport_fire,T4.enableFire,step4.outport_fire,T5.enableFire,T3.enableFire,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,T1.fire,T1.t_start,step2.newActive,step2.oldActive,step2.inport_fire,T2.fire,T2.t_start,step3.newActive,step3.oldActive,step3.inport_fire,T3.fire,T3.t_start,step4.newActive,step4.oldActive,step4.inport_fire,T4.fire,T4.t_start,T5.fire,T5.t_start,step1.newActive,step1.oldActive,step1.inport_fire,step1.outport_fire,risingEdge.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,fallingEdge.not_u) * Number of discrete states: 8 (step1.newActive,step4.newActive,step3.newActive,fallingEdge.not_u,step2.newActive,initialStep.newActive,risingEdge.u,set1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.001255/0.596, allocations: 0.9572 MB / 409.7 MB, free: 12.78 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009034/0.5969, allocations: 358.3 kB / 410 MB, free: 12.52 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.5969, allocations: 0 / 410 MB, free: 12.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003125/0.5972, allocations: 135.7 kB / 410.2 MB, free: 12.42 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004173/0.5977, allocations: 50.16 kB / 410.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002119/0.5998, allocations: 0.6895 MB / 410.9 MB, free: 11.71 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005927/0.6004, allocations: 0.8972 MB / 411.8 MB, free: 10.8 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003669/0.6008, allocations: 80.36 kB / 411.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003382/0.6011, allocations: 192.7 kB / 412.1 MB, free: 10.67 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6012, allocations: 0 / 412.1 MB, free: 10.67 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05686/0.658, allocations: 8.077 MB / 420.1 MB, free: 2.598 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000327/0.6584, allocations: 150.9 kB / 420.3 MB, free: 2.406 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.726/3.384, allocations: 0 / 420.3 MB, free: 2.406 MB / 330.7 MB