Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.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.Actions3,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_BasicStateGraphs_Actions3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_StateGraph2): time 2.178/2.178, allocations: 208.5 MB / 216 MB, free: 10.15 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.702e-05/1.704e-05, allocations: 0 / 269.6 MB, free: 4.488 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 47.77 MB / 317.4 MB, free: 4.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4129/0.5242, allocations: 71.47 MB / 388.8 MB, free: 15.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001901/0.5244, allocations: 52.03 kB / 388.9 MB, free: 15.5 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.03084/0.5553, allocations: 8.065 MB / 397 MB, free: 8.828 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5553, allocations: 0 / 397 MB, free: 8.828 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.28e-05/0.5554, allocations: 23.98 kB / 397 MB, free: 8.805 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.001448/0.5569, allocations: 0.7487 MB / 397.7 MB, free: 8.047 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.5569, allocations: 8.031 kB / 397.7 MB, free: 8.039 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.5571, allocations: 75.16 kB / 397.8 MB, free: 7.965 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/0.5582, allocations: 451.2 kB / 398.3 MB, free: 7.547 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.013e-05/0.5583, allocations: 24 kB / 398.3 MB, free: 7.523 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.5584, allocations: 44 kB / 398.3 MB, free: 7.48 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001226/0.5597, allocations: 454.9 kB / 398.8 MB, free: 7.191 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.5612, allocations: 0.6984 MB / 399.5 MB, free: 6.586 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.813e-05/0.5613, allocations: 3.938 kB / 399.5 MB, free: 6.582 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.363e-05/0.5614, allocations: 8 kB / 399.5 MB, free: 6.574 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-05/0.5614, allocations: 29.25 kB / 399.5 MB, free: 6.547 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004399/0.5658, allocations: 3.055 MB / 402.6 MB, free: 3.594 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007838/0.5667, allocations: 0.6382 MB / 403.2 MB, free: 2.926 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/0.5669, allocations: 99.8 kB / 403.3 MB, free: 2.859 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001109/0.567, allocations: 85.09 kB / 403.4 MB, free: 2.758 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003957/0.5674, allocations: 172.4 kB / 403.5 MB, free: 2.617 MB / 314.7 MB Notification: Performance of pre-optimization done (n=45): time 3.397e-06/0.5675, allocations: 7.938 kB / 403.6 MB, free: 2.609 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.0008293/0.5683, allocations: 292.8 kB / 403.8 MB, free: 2.367 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.5684, allocations: 195.2 kB / 404 MB, free: 2.137 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004458/0.5689, allocations: 345.9 kB / 404.4 MB, free: 1.867 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.29e-05/0.569, allocations: 37.27 kB / 404.4 MB, free: 1.828 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002664/0.5692, allocations: 289.8 kB / 404.7 MB, free: 1.59 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.5694, allocations: 96.5 kB / 404.8 MB, free: 1.516 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.499e-05/0.5694, allocations: 0 / 404.8 MB, free: 1.516 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.5696, allocations: 356.9 kB / 405.1 MB, free: 1.176 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003071/0.5699, allocations: 114.2 kB / 405.2 MB, free: 1.102 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000562/0.5705, allocations: 384.6 kB / 405.6 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004822/0.571, allocations: 174.9 kB / 405.8 MB, free: 0.543 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-06/0.571, allocations: 4 kB / 405.8 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00119/0.5722, allocations: 498.3 kB / 406.3 MB, free: 124 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.5723, allocations: 8 kB / 406.3 MB, free: 116 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.126e-05/0.5723, allocations: 8 kB / 406.3 MB, free: 108 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.287e-05/0.5724, allocations: 12 kB / 406.3 MB, free: 96 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002676/0.5726, allocations: 58.72 kB / 406.4 MB, free: 44 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.921e-05/0.5727, allocations: 11.94 kB / 406.4 MB, free: 32 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005049/0.5732, allocations: 40.11 kB / 406.4 MB, free: 15.99 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.782e-05/0.5733, allocations: 34.58 kB / 406.4 MB, free: 15.96 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 91 ($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,$PRE.add1.y,add1.y,initialStep.node.resume,initialStep.node.suspend,$whenCondition7,$whenCondition6,$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.enableFire,$PRE.T2.t_start,T2.t_start,T2.firePort,$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.enableFire,$PRE.T5.t_start,T5.t_start,T5.firePort,$PRE.step1.newActive,step1.newActive,step1.inport_fire,step1.outport_fire,$PRE.set1.y,set1.y,set1.firstActiveIndex,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 (91): * Single equations (assignments): 91 * 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.0002352/0.5735, allocations: 172 kB / 406.6 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006989/0.5742, allocations: 292.6 kB / 406.9 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.683e-05/0.5743, allocations: 39.53 kB / 406.9 MB, free: 15.52 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008243/0.5752, allocations: 318.9 kB / 407.3 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.806e-06/0.5752, allocations: 4 kB / 407.3 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.359e-05/0.5752, allocations: 7.938 kB / 407.3 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.5752, allocations: 7.922 kB / 407.3 MB, free: 15.24 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001997/0.5772, allocations: 0.873 MB / 408.1 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.5772, allocations: 4 kB / 408.1 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.89e-05/0.5773, allocations: 19.36 kB / 408.2 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.603e-06/0.5774, allocations: 0 / 408.2 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.976e-05/0.5774, allocations: 7.984 kB / 408.2 MB, free: 14.44 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.5774, allocations: 0 / 408.2 MB, free: 14.44 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.5774, allocations: 0 / 408.2 MB, free: 14.44 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007584/0.5782, allocations: 401.6 kB / 408.6 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001813/0.5784, allocations: 131.2 kB / 408.7 MB, free: 13.94 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.098e-05/0.5785, allocations: 10.75 kB / 408.7 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003471/0.5788, allocations: 19.97 kB / 408.7 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.579, allocations: 45.73 kB / 408.8 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.899e-05/0.5791, allocations: 14.5 kB / 408.8 MB, free: 13.86 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000231/0.5793, allocations: 192 kB / 409 MB, free: 13.71 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5793, allocations: 0 / 409 MB, free: 13.71 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006674/0.58, allocations: 84 kB / 409.1 MB, free: 13.63 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: 45 (initialStep.inport_fire,initialStep.outport_fire,T1.enableFire,step2.outport_fire,T2.firePort,T2.enableFire,step3.outport_fire,T4.enableFire,step4.outport_fire,T5.firePort,T5.enableFire,T3.enableFire,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,T1.fire,T1.t_start,step2.newActive,step2.oldActive,step2.inport_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.t_start,step1.newActive,step1.oldActive,step1.inport_fire,step1.outport_fire,add1.y,set1.y,set1.firstActiveIndex) * Number of discrete states: 7 (step1.newActive,step4.newActive,step3.newActive,step2.newActive,initialStep.newActive,set1.y,add1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * 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.001178/0.5812, allocations: 0.965 MB / 410 MB, free: 12.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007852/0.582, allocations: 339.4 kB / 410.4 MB, free: 12.45 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.582, allocations: 0 / 410.4 MB, free: 12.45 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002833/0.5823, allocations: 131.2 kB / 410.5 MB, free: 12.35 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003629/0.5827, allocations: 34.27 kB / 410.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001973/0.5847, allocations: 0.6988 MB / 411.2 MB, free: 11.66 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006028/0.5853, allocations: 0.9013 MB / 412.1 MB, free: 10.73 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003483/0.5857, allocations: 88.33 kB / 412.2 MB, free: 10.64 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003318/0.586, allocations: 193.5 kB / 412.4 MB, free: 10.59 MB / 330.7 MB Notification: Performance of SimCode: time 8.52e-07/0.586, allocations: 0 / 412.4 MB, free: 10.59 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05231/0.6383, allocations: 8.046 MB / 420.4 MB, free: 2.547 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003202/0.6387, allocations: 154.8 kB / 420.6 MB, free: 2.352 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.862/3.501, allocations: 0 / 420.6 MB, free: 2.352 MB / 330.7 MB