Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.conf.json Using package Modelica_StateGraph2 with version 2.1.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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 loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.009774/0.009774, allocations: 172 kB / 15.11 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.11/2.11, allocations: 223.3 MB / 239.1 MB, free: 1.699 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 105.1 kB / 290.3 MB, free: 13.85 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.1335/0.1335, allocations: 13.58 MB / 355 MB, free: 13.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005509/0.000551, allocations: 12.45 kB / 419.3 MB, free: 87.38 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1033, allocations: 53.72 MB / 473 MB, free: 34.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4541/0.5575, allocations: 77.33 MB / 0.5374 GB, free: 16.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001819/0.5577, allocations: 49.34 kB / 0.5375 GB, free: 16.07 MB / 362.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:12183:5-12189: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.03307/0.5908, allocations: 8.473 MB / 0.5458 GB, free: 15.21 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.5909, allocations: 4 kB / 0.5458 GB, free: 15.21 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.301e-05/0.5909, allocations: 23.31 kB / 0.5458 GB, free: 15.21 MB / 362.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.001597/0.5925, allocations: 0.7818 MB / 0.5465 GB, free: 14.67 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.5926, allocations: 9.5 kB / 0.5466 GB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002066/0.5928, allocations: 117.1 kB / 0.5467 GB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001843/0.593, allocations: 82.73 kB / 0.5467 GB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001422/0.5944, allocations: 439.3 kB / 0.5472 GB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.5946, allocations: 58.39 kB / 0.5472 GB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000207/0.5948, allocations: 74.83 kB / 0.5473 GB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002176/0.597, allocations: 0.8217 MB / 0.5481 GB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.371e-05/0.5971, allocations: 1.562 kB / 0.5481 GB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.714e-05/0.5972, allocations: 33.81 kB / 0.5481 GB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.886e-05/0.5972, allocations: 24.66 kB / 0.5481 GB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.5987, allocations: 0.5125 MB / 0.5486 GB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004446/0.6031, allocations: 3.235 MB / 0.5518 GB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008493/0.6041, allocations: 0.6648 MB / 0.5525 GB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001064/0.6042, allocations: 93.58 kB / 0.5525 GB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004565/0.6046, allocations: 192.9 kB / 0.5527 GB, free: 11.24 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 3.206e-06/0.6047, allocations: 0 / 0.5527 GB, free: 11.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.001095/0.6058, allocations: 415.5 kB / 0.5531 GB, free: 11.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.167e-05/0.6059, allocations: 203.2 kB / 0.5533 GB, free: 10.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005144/0.6064, allocations: 348.6 kB / 0.5537 GB, free: 10.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.485e-05/0.6065, allocations: 48.16 kB / 0.5537 GB, free: 10.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002045/0.6067, allocations: 294.1 kB / 0.554 GB, free: 10.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.593e-05/0.6068, allocations: 99.62 kB / 0.5541 GB, free: 10.58 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.782e-05/0.6068, allocations: 15.5 kB / 0.5541 GB, free: 10.58 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.674e-05/0.607, allocations: 352.7 kB / 0.5544 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003846/0.6073, allocations: 136.6 kB / 0.5546 GB, free: 10.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005327/0.6079, allocations: 411.6 kB / 0.5549 GB, free: 9.941 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004504/0.6084, allocations: 189.2 kB / 0.5551 GB, free: 9.914 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.6084, allocations: 3.25 kB / 0.5551 GB, free: 9.914 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001275/0.6097, allocations: 0.5692 MB / 0.5557 GB, free: 9.801 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.871e-05/0.6097, allocations: 8.562 kB / 0.5557 GB, free: 9.801 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.6097, allocations: 15.03 kB / 0.5557 GB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.196e-05/0.6098, allocations: 14 kB / 0.5557 GB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002738/0.6101, allocations: 54.27 kB / 0.5558 GB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.887e-05/0.6101, allocations: 23.36 kB / 0.5558 GB, free: 9.773 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005203/0.6106, allocations: 45.91 kB / 0.5558 GB, free: 9.773 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.849e-05/0.6107, allocations: 28.97 kB / 0.5559 GB, free: 9.773 MB / 362.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.connectorNode.node.resume,initialStep.connectorNode.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 () * Number of clocked 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.0005858/0.6113, allocations: 279.5 kB / 0.5561 GB, free: 9.625 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.824e-05/0.6114, allocations: 43.11 kB / 0.5562 GB, free: 9.602 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008849/0.6123, allocations: 353.2 kB / 0.5565 GB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.6124, allocations: 8.078 kB / 0.5565 GB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.6124, allocations: 0 / 0.5565 GB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.6124, allocations: 1.188 kB / 0.5565 GB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002223/0.6146, allocations: 1.025 MB / 0.5575 GB, free: 9.199 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.6146, allocations: 1.156 kB / 0.5575 GB, free: 9.199 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.04e-05/0.6147, allocations: 17.41 kB / 0.5575 GB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.717e-06/0.6148, allocations: 1.531 kB / 0.5575 GB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/0.6148, allocations: 9.781 kB / 0.5575 GB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.053e-06/0.6148, allocations: 2.312 kB / 0.5576 GB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.6148, allocations: 3.953 kB / 0.5576 GB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007753/0.6156, allocations: 430.3 kB / 0.558 GB, free: 9.027 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001784/0.6158, allocations: 137 kB / 0.5581 GB, free: 8.906 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.765e-05/0.6159, allocations: 11.59 kB / 0.5581 GB, free: 8.906 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003665/0.6163, allocations: 36.53 kB / 0.5581 GB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.6164, allocations: 43.69 kB / 0.5582 GB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.209e-05/0.6165, allocations: 23.92 kB / 0.5582 GB, free: 8.891 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002837/0.6168, allocations: 202.7 kB / 0.5584 GB, free: 8.812 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6168, allocations: 0.9688 kB / 0.5584 GB, free: 8.812 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007847/0.6176, allocations: 107.9 kB / 0.5585 GB, free: 8.812 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: 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) * Number of clocked states: 0 () * 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.001574/0.6192, allocations: 0.9964 MB / 0.5595 GB, free: 24.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.6203, allocations: 380.6 kB / 0.5598 GB, free: 24.08 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.6203, allocations: 4.25 kB / 0.5598 GB, free: 24.08 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003573/0.6206, allocations: 148.3 kB / 0.56 GB, free: 24.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004196/0.6211, allocations: 41.7 kB / 0.56 GB, free: 24.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007567/0.6287, allocations: 7.414 MB / 0.5673 GB, free: 17.94 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006268/0.6293, allocations: 0.9017 MB / 0.5681 GB, free: 17.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00043/0.6298, allocations: 78.69 kB / 0.5682 GB, free: 17.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003401/0.6301, allocations: 194.4 kB / 0.5684 GB, free: 17.22 MB / 378.7 MB Notification: Performance of SimCode: time 1.593e-06/0.6302, allocations: 3.938 kB / 0.5684 GB, free: 17.21 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03749/0.6677, allocations: 8.581 MB / 0.5768 GB, free: 14.33 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000237/0.668, allocations: 202.3 kB / 0.577 GB, free: 14.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.974/3.642, allocations: 0 / 0.577 GB, free: 14.09 MB / 378.7 MB