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/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.Actions2,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_BasicStateGraphs_Actions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_StateGraph2): time 2.616/2.616, allocations: 208.4 MB / 221 MB, free: 15.45 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.611e-05/3.635e-05, allocations: 0 / 276.1 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3428, allocations: 47.78 MB / 323.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1456/0.4885, allocations: 72.03 MB / 395.9 MB, free: 5.148 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001998/0.4888, allocations: 47.98 kB / 396 MB, free: 5.102 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.03483/0.5236, allocations: 8.019 MB / 404 MB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5237, allocations: 0 / 404 MB, free: 13.05 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.084e-05/0.5237, allocations: 24 kB / 404 MB, free: 13.03 MB / 346.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.001647/0.5254, allocations: 0.7339 MB / 404.8 MB, free: 12.24 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.837e-05/0.5255, allocations: 11.98 kB / 404.8 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002504/0.5257, allocations: 118.5 kB / 404.9 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002247/0.526, allocations: 79.16 kB / 405 MB, free: 12.03 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/0.5272, allocations: 437.9 kB / 405.4 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.061e-05/0.5273, allocations: 54 kB / 405.4 MB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.5275, allocations: 68 kB / 405.5 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00201/0.5295, allocations: 0.792 MB / 406.3 MB, free: 10.58 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.041e-05/0.5296, allocations: 0 / 406.3 MB, free: 10.58 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001141/0.5297, allocations: 32 kB / 406.3 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.327e-05/0.5298, allocations: 29.25 kB / 406.4 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001493/0.5313, allocations: 497 kB / 406.8 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005604/0.5369, allocations: 3.099 MB / 409.9 MB, free: 6.688 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.5381, allocations: 0.6726 MB / 410.6 MB, free: 5.914 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003232/0.5384, allocations: 128.8 kB / 410.7 MB, free: 5.785 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001541/0.5386, allocations: 85.77 kB / 410.8 MB, free: 5.684 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004892/0.5391, allocations: 198.2 kB / 411 MB, free: 5.477 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 3.858e-06/0.5391, allocations: 0 / 411 MB, free: 5.477 MB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.0009032/0.54, allocations: 309.1 kB / 411.3 MB, free: 5.168 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001425/0.5402, allocations: 191.9 kB / 411.5 MB, free: 4.938 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006154/0.5408, allocations: 346 kB / 411.9 MB, free: 4.59 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.358e-05/0.5409, allocations: 49.64 kB / 411.9 MB, free: 4.535 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003442/0.5413, allocations: 284.2 kB / 412.2 MB, free: 4.254 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.5414, allocations: 106.8 kB / 412.3 MB, free: 4.148 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.124e-05/0.5415, allocations: 16 kB / 412.3 MB, free: 4.133 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.5417, allocations: 358.7 kB / 412.6 MB, free: 3.773 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004169/0.5421, allocations: 137.5 kB / 412.8 MB, free: 3.637 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006634/0.5428, allocations: 412.7 kB / 413.2 MB, free: 3.125 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005059/0.5433, allocations: 191.1 kB / 413.4 MB, free: 2.934 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.824e-06/0.5433, allocations: 0 / 413.4 MB, free: 2.934 MB / 346.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001418/0.5448, allocations: 0.5643 MB / 413.9 MB, free: 2.363 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.099e-05/0.5448, allocations: 8 kB / 413.9 MB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/0.5448, allocations: 8.906 kB / 414 MB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.894e-05/0.5449, allocations: 12 kB / 414 MB, free: 2.336 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002797/0.5452, allocations: 59.78 kB / 414 MB, free: 2.277 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.973e-05/0.5452, allocations: 15.92 kB / 414 MB, free: 2.262 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005385/0.5458, allocations: 39.98 kB / 414.1 MB, free: 2.223 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.437e-05/0.5459, allocations: 35.98 kB / 414.1 MB, free: 2.188 MB / 346.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.0002863/0.5462, allocations: 196.6 kB / 414.3 MB, free: 1.988 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.5463, allocations: 39.53 kB / 414.3 MB, free: 1.949 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009704/0.5473, allocations: 349.4 kB / 414.7 MB, free: 1.598 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.5473, allocations: 4 kB / 414.7 MB, free: 1.594 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.5473, allocations: 4 kB / 414.7 MB, free: 1.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.5473, allocations: 3.984 kB / 414.7 MB, free: 1.586 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002466/0.5498, allocations: 0.9912 MB / 415.7 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.5499, allocations: 4 kB / 415.7 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.55, allocations: 11.94 kB / 415.7 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-05/0.55, allocations: 4 kB / 415.7 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.949e-05/0.5501, allocations: 11.94 kB / 415.7 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.603e-06/0.5501, allocations: 4 kB / 415.7 MB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.5501, allocations: 0 / 415.7 MB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008822/0.551, allocations: 422.7 kB / 416.1 MB, free: 72 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002598/0.5513, allocations: 144.5 kB / 416.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.681e-05/0.5514, allocations: 8 kB / 416.3 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003931/0.5518, allocations: 35.92 kB / 416.3 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/0.552, allocations: 43.92 kB / 416.4 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.068e-05/0.5521, allocations: 16 kB / 416.4 MB, free: 15.81 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003245/0.5524, allocations: 206.2 kB / 416.6 MB, free: 15.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.5524, allocations: 0 / 416.6 MB, free: 15.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008251/0.5532, allocations: 108 kB / 416.7 MB, free: 15.5 MB / 362.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.001393/0.5546, allocations: 0.9878 MB / 417.7 MB, free: 14.49 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.5558, allocations: 397.1 kB / 418.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.5558, allocations: 0 / 418.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003683/0.5562, allocations: 151.7 kB / 418.2 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004429/0.5566, allocations: 53.03 kB / 418.3 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002426/0.5591, allocations: 0.7204 MB / 419 MB, free: 13.14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006978/0.5598, allocations: 0.8993 MB / 419.9 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004333/0.5603, allocations: 80.36 kB / 420 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004014/0.5607, allocations: 191.4 kB / 420.1 MB, free: 11.95 MB / 362.7 MB Notification: Performance of SimCode: time 1.763e-06/0.5607, allocations: 4 kB / 420.1 MB, free: 11.95 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04311/0.6038, allocations: 8.561 MB / 428.7 MB, free: 3.422 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003513/0.6042, allocations: 172.2 kB / 428.9 MB, free: 3.191 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.014/3.618, allocations: 4 kB / 428.9 MB, free: 3.188 MB / 362.7 MB