Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.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.FirstExample_Variant4,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_BasicStateGraphs_FirstExample_Variant4",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.009591/0.009591, allocations: 170 kB / 15.11 MB, free: 5.98 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.147/2.147, allocations: 223.3 MB / 239.1 MB, free: 1.719 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.001182/0.001182, allocations: 105.1 kB / 290.3 MB, free: 13.88 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.1457/0.1457, allocations: 13.58 MB / 355 MB, free: 13.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004663/0.0004662, allocations: 8 kB / 419.3 MB, free: 87.42 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1024, allocations: 53.73 MB / 473 MB, free: 34.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4624/0.5648, allocations: 77.43 MB / 0.5375 GB, free: 16.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001514/0.565, allocations: 52.48 kB / 0.5376 GB, free: 16.49 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.02508/0.5901, allocations: 6.879 MB / 0.5443 GB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5902, allocations: 0 / 0.5443 GB, free: 15.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.84e-05/0.5902, allocations: 20.22 kB / 0.5443 GB, free: 15.7 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001145/0.5914, allocations: 0.6484 MB / 0.5449 GB, free: 15.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.5915, allocations: 13.84 kB / 0.545 GB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001722/0.5916, allocations: 100.5 kB / 0.5451 GB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001438/0.5918, allocations: 62.61 kB / 0.5451 GB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007528/0.5926, allocations: 366 kB / 0.5455 GB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.535e-05/0.5926, allocations: 44.31 kB / 0.5455 GB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.5928, allocations: 56.44 kB / 0.5456 GB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.5943, allocations: 0.6546 MB / 0.5462 GB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.667e-05/0.5943, allocations: 0 / 0.5462 GB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.102e-05/0.5944, allocations: 31.44 kB / 0.5462 GB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.076e-05/0.5945, allocations: 13.72 kB / 0.5462 GB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001075/0.5955, allocations: 403 kB / 0.5466 GB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003452/0.599, allocations: 2.534 MB / 0.5491 GB, free: 13.01 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006026/0.5997, allocations: 474.4 kB / 0.5496 GB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009998/0.6007, allocations: 0.8495 MB / 0.5504 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003011/0.601, allocations: 127.8 kB / 0.5505 GB, free: 11.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 3.036e-06/0.601, allocations: 0 / 0.5505 GB, free: 11.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006709/0.6017, allocations: 260.5 kB / 0.5508 GB, free: 11.83 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.6018, allocations: 62.52 kB / 0.5508 GB, free: 11.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003909/0.6022, allocations: 288.4 kB / 0.5511 GB, free: 11.65 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.781e-05/0.6022, allocations: 39.33 kB / 0.5511 GB, free: 11.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001722/0.6024, allocations: 252 kB / 0.5514 GB, free: 11.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.129e-05/0.6025, allocations: 72.09 kB / 0.5514 GB, free: 11.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.527e-05/0.6025, allocations: 13.41 kB / 0.5514 GB, free: 11.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.376e-05/0.6026, allocations: 342.7 kB / 0.5518 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002376/0.6029, allocations: 87.02 kB / 0.5519 GB, free: 11.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003398/0.6032, allocations: 263.7 kB / 0.5521 GB, free: 10.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002834/0.6035, allocations: 118.9 kB / 0.5522 GB, free: 10.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.6035, allocations: 1.062 kB / 0.5522 GB, free: 10.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008464/0.6044, allocations: 405.2 kB / 0.5526 GB, free: 10.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/0.6044, allocations: 8.391 kB / 0.5526 GB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.6045, allocations: 10.03 kB / 0.5526 GB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.202e-05/0.6045, allocations: 14.03 kB / 0.5526 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002238/0.6047, allocations: 38.88 kB / 0.5527 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.323e-05/0.6048, allocations: 20.78 kB / 0.5527 GB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002644/0.6051, allocations: 20.91 kB / 0.5527 GB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.397e-05/0.6051, allocations: 23.75 kB / 0.5527 GB, free: 10.76 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.T4.enableFire,$PRE.step4.oldActive,step4.oldActive,$PRE.step3.oldActive,step3.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.initialStep.oldActive,initialStep.oldActive,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.activePort,T2.enableFire,T2.conditionPort,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.activePort,T3.enableFire,$PRE.timer1.entryTime,timer1.entryTime,$PRE.step4.newActive,step4.newActive,step4.inport_fire,step4.outport_fire,T4.enableFire,T4.conditionPort,$PRE.timer2.entryTime,timer2.entryTime,step3.outPort[1].checkOneDelayedTransitionPerLoop,step4.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,T3.condition,step4.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection,T4.condition,T2.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0003981/0.6055, allocations: 221 kB / 0.553 GB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.16e-05/0.6056, allocations: 35 kB / 0.553 GB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005671/0.6062, allocations: 234.9 kB / 0.5532 GB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.6062, allocations: 6.75 kB / 0.5532 GB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.6062, allocations: 1.375 kB / 0.5532 GB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.6062, allocations: 0 / 0.5532 GB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001322/0.6076, allocations: 0.7221 MB / 0.5539 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.6076, allocations: 5.031 kB / 0.5539 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.942e-05/0.6077, allocations: 11.86 kB / 0.5539 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.007e-06/0.6077, allocations: 6 kB / 0.5539 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.186e-05/0.6077, allocations: 4.531 kB / 0.5539 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.6077, allocations: 1.094 kB / 0.5539 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.6078, allocations: 1.062 kB / 0.554 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004695/0.6082, allocations: 312.2 kB / 0.5542 GB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.6084, allocations: 113.7 kB / 0.5544 GB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.896e-05/0.6084, allocations: 10.25 kB / 0.5544 GB, free: 9.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001538/0.6086, allocations: 7.406 kB / 0.5544 GB, free: 9.953 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.6087, allocations: 31.41 kB / 0.5544 GB, free: 9.949 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.77e-05/0.6088, allocations: 5.438 kB / 0.5544 GB, free: 9.949 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000206/0.609, allocations: 176.9 kB / 0.5546 GB, free: 9.871 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.609, allocations: 0 / 0.5546 GB, free: 9.871 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006114/0.6096, allocations: 64.59 kB / 0.5546 GB, free: 9.871 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: 27 (initialStep.inport_fire,step3.activePort,step2.activePort,$whenCondition2,$whenCondition1,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,T3.enableFire,timer1.entryTime,step4.newActive,step4.oldActive,step4.inport_fire,step4.outport_fire,T4.enableFire,T4.conditionPort,timer2.entryTime) * Number of discrete states: 4 (initialStep.newActive,step2.newActive,step3.newActive,step4.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0007547/0.6104, allocations: 0.8648 MB / 0.5555 GB, free: 9.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006636/0.6111, allocations: 249.8 kB / 0.5557 GB, free: 9.156 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.6111, allocations: 0 / 0.5557 GB, free: 9.156 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002136/0.6113, allocations: 84.39 kB / 0.5558 GB, free: 9.152 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/0.6117, allocations: 37.06 kB / 0.5558 GB, free: 9.141 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005582/0.6173, allocations: 5.726 MB / 0.5614 GB, free: 20.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005449/0.6178, allocations: 0.8479 MB / 0.5623 GB, free: 19.58 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002434/0.6181, allocations: 50.73 kB / 0.5623 GB, free: 19.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002445/0.6184, allocations: 151.7 kB / 0.5625 GB, free: 19.56 MB / 378.7 MB Notification: Performance of SimCode: time 1.904e-06/0.6184, allocations: 0 / 0.5625 GB, free: 19.56 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03817/0.6566, allocations: 5.786 MB / 0.5681 GB, free: 19.03 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001984/0.6568, allocations: 204.1 kB / 0.5683 GB, free: 18.79 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.817/3.474, allocations: 0.9688 kB / 0.5683 GB, free: 18.79 MB / 378.7 MB