Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.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,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_BasicStateGraphs_FirstExample",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.01409/0.01409, allocations: 171 kB / 15.11 MB, free: 5.934 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.161/2.161, allocations: 223.3 MB / 239.1 MB, free: 4 kB / 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.001237/0.001236, allocations: 106.4 kB / 290.3 MB, free: 4.621 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.1053/0.1053, allocations: 13.58 MB / 355 MB, free: 15.27 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00047/0.00047, allocations: 10.38 kB / 419.3 MB, free: 99.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1036, allocations: 53.71 MB / 473 MB, free: 60.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1753/0.279, allocations: 76.99 MB / 0.5371 GB, free: 15.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002215/0.2793, allocations: 47.98 kB / 0.5371 GB, free: 15.79 MB / 378.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.02107/0.3003, allocations: 5.097 MB / 0.5421 GB, free: 10.67 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.318e-06/0.3004, allocations: 0 / 0.5421 GB, free: 10.67 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.087e-05/0.3005, allocations: 11.94 kB / 0.5421 GB, free: 10.66 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001053/0.3015, allocations: 0.5568 MB / 0.5427 GB, free: 10.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.3016, allocations: 8.031 kB / 0.5427 GB, free: 10.05 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000146/0.3017, allocations: 86.52 kB / 0.5428 GB, free: 9.953 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.3019, allocations: 39.53 kB / 0.5428 GB, free: 9.914 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007003/0.3026, allocations: 306.6 kB / 0.5431 GB, free: 9.574 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.564e-05/0.3027, allocations: 37 kB / 0.5431 GB, free: 9.539 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.407e-05/0.3028, allocations: 36 kB / 0.5432 GB, free: 9.504 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.3039, allocations: 469.9 kB / 0.5436 GB, free: 9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.304, allocations: 0 / 0.5436 GB, free: 9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.3e-05/0.304, allocations: 20 kB / 0.5436 GB, free: 8.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.3041, allocations: 12 kB / 0.5436 GB, free: 8.969 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008051/0.3049, allocations: 274.4 kB / 0.5439 GB, free: 8.703 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00309/0.308, allocations: 1.884 MB / 0.5457 GB, free: 6.648 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005624/0.3086, allocations: 385.7 kB / 0.5461 GB, free: 6.211 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001207/0.3088, allocations: 85.3 kB / 0.5462 GB, free: 6.109 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000265/0.309, allocations: 109.9 kB / 0.5463 GB, free: 5.992 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 3.636e-06/0.3091, allocations: 0 / 0.5463 GB, free: 5.992 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006169/0.3097, allocations: 213 kB / 0.5465 GB, free: 5.777 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.531e-05/0.3098, allocations: 114.8 kB / 0.5466 GB, free: 5.641 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003719/0.3102, allocations: 229.9 kB / 0.5468 GB, free: 5.406 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.883e-05/0.3103, allocations: 37.7 kB / 0.5469 GB, free: 5.363 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/0.3105, allocations: 196.3 kB / 0.547 GB, free: 5.168 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.473e-05/0.3105, allocations: 47.5 kB / 0.5471 GB, free: 5.121 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.206e-05/0.3106, allocations: 11.94 kB / 0.5471 GB, free: 5.109 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.3107, allocations: 330.8 kB / 0.5474 GB, free: 4.777 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.311, allocations: 64.84 kB / 0.5475 GB, free: 4.711 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003431/0.3113, allocations: 223.7 kB / 0.5477 GB, free: 4.426 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002535/0.3116, allocations: 96.83 kB / 0.5478 GB, free: 4.332 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.3116, allocations: 0 / 0.5478 GB, free: 4.332 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007489/0.3124, allocations: 313.9 kB / 0.5481 GB, free: 4.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.3124, allocations: 4 kB / 0.5481 GB, free: 4.016 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.3124, allocations: 4 kB / 0.5481 GB, free: 4.012 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.082e-05/0.3125, allocations: 12 kB / 0.5481 GB, free: 4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.3126, allocations: 36.41 kB / 0.5481 GB, free: 3.965 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.253e-05/0.3126, allocations: 7.984 kB / 0.5481 GB, free: 3.957 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002779/0.3129, allocations: 23.91 kB / 0.5482 GB, free: 3.934 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.293e-05/0.313, allocations: 20 kB / 0.5482 GB, free: 3.914 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.initialStep.oldActive,initialStep.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.step3.oldActive,step3.oldActive,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,initialStep.outport_fire,T1.condition,T1.enableFire,$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,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,T3.condition,T2.condition,initialStep.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.000356/0.3134, allocations: 198.9 kB / 0.5484 GB, free: 3.707 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.181e-05/0.3134, allocations: 19.81 kB / 0.5484 GB, free: 3.688 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000504/0.3139, allocations: 184.6 kB / 0.5486 GB, free: 3.496 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.314, allocations: 11.97 kB / 0.5486 GB, free: 3.484 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.314, allocations: 3.953 kB / 0.5486 GB, free: 3.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.314, allocations: 0 / 0.5486 GB, free: 3.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.3153, allocations: 0.6219 MB / 0.5492 GB, free: 2.805 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.3153, allocations: 4 kB / 0.5492 GB, free: 2.801 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.689e-05/0.3154, allocations: 7.938 kB / 0.5492 GB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.493e-06/0.3154, allocations: 4 kB / 0.5492 GB, free: 2.789 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.3154, allocations: 3.984 kB / 0.5492 GB, free: 2.785 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.3154, allocations: 0 / 0.5492 GB, free: 2.785 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.3154, allocations: 4 kB / 0.5492 GB, free: 2.781 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004295/0.3159, allocations: 255.2 kB / 0.5495 GB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/0.316, allocations: 120.7 kB / 0.5496 GB, free: 2.379 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.728e-05/0.3161, allocations: 4 kB / 0.5496 GB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002238/0.3163, allocations: 19.98 kB / 0.5496 GB, free: 2.355 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.861e-05/0.3164, allocations: 15.97 kB / 0.5496 GB, free: 2.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.572e-05/0.3165, allocations: 15.98 kB / 0.5496 GB, free: 2.324 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001856/0.3167, allocations: 135.2 kB / 0.5498 GB, free: 2.191 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3167, allocations: 0 / 0.5498 GB, free: 2.191 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005134/0.3172, allocations: 56 kB / 0.5498 GB, free: 2.137 MB / 378.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: 23 (initialStep.inport_fire,initialStep.outport_fire,step2.outport_fire,T2.enableFire,T3.enableFire,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.fire,T2.t_start,step3.newActive,step3.oldActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.t_start) * Number of discrete states: 3 (step3.newActive,step2.newActive,initialStep.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000891/0.3181, allocations: 0.8219 MB / 0.5506 GB, free: 1.293 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005714/0.3187, allocations: 193 kB / 0.5508 GB, free: 1.105 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.3187, allocations: 4.062 kB / 0.5508 GB, free: 1.102 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001988/0.3189, allocations: 75.7 kB / 0.5509 GB, free: 1.027 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.3193, allocations: 27.88 kB / 0.5509 GB, free: 1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.324/0.6433, allocations: 4.213 MB / 0.555 GB, free: 82.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004758/0.6438, allocations: 0.7965 MB / 0.5558 GB, free: 81.91 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003403/0.6442, allocations: 43.73 kB / 0.5558 GB, free: 81.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002568/0.6445, allocations: 95.83 kB / 0.5559 GB, free: 81.9 MB / 378.7 MB Notification: Performance of SimCode: time 1.593e-06/0.6445, allocations: 0 / 0.5559 GB, free: 81.9 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03554/0.68, allocations: 4.747 MB / 0.5606 GB, free: 81.57 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002612/0.6804, allocations: 199.8 kB / 0.5608 GB, free: 81.33 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.658/3.338, allocations: 0 / 0.5608 GB, free: 81.33 MB / 378.7 MB