Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.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_Variant3,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_BasicStateGraphs_FirstExample_Variant3",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.01414/0.01414, allocations: 163.7 kB / 15.12 MB, free: 6.055 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.37/2.37, allocations: 223.3 MB / 239.1 MB, free: 1.73 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.001015/0.001014, allocations: 100.9 kB / 290.3 MB, free: 13.89 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.1231/0.1231, allocations: 13.57 MB / 355 MB, free: 13.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006182/0.0006184, allocations: 14.56 kB / 419.2 MB, free: 87.39 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09494/0.0956, allocations: 53.72 MB / 473 MB, free: 34.4 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3): time 0.002088/0.09775, allocations: 1.523 MB / 474.5 MB, free: 32.86 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001634/0.09941, allocations: 0.8029 MB / 475.3 MB, free: 32.05 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.09959, allocations: 15.88 kB / 475.3 MB, free: 32.04 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001694/0.09978, allocations: 35.67 kB / 475.3 MB, free: 32 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.0999, allocations: 27.78 kB / 475.4 MB, free: 31.98 MB / 330.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 NFTyping.typeClassSections: time 0.0008143/0.1007, allocations: 191.8 kB / 475.5 MB, free: 31.79 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000498/0.1012, allocations: 411 kB / 475.9 MB, free: 31.39 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001286/0.1025, allocations: 0.72 MB / 476.7 MB, free: 30.63 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001817/0.1028, allocations: 123.4 kB / 476.8 MB, free: 30.51 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.1029, allocations: 119.3 kB / 476.9 MB, free: 30.39 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.54e-05/0.103, allocations: 16 kB / 476.9 MB, free: 30.38 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.1031, allocations: 31.98 kB / 476.9 MB, free: 30.34 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.473e-05/0.1032, allocations: 71.73 kB / 477 MB, free: 30.27 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.47e-05/0.1033, allocations: 81.52 kB / 477.1 MB, free: 30.19 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003568/0.1037, allocations: 287.4 kB / 477.4 MB, free: 29.91 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1037, allocations: 0 / 477.4 MB, free: 29.91 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1037, allocations: 0 / 477.4 MB, free: 29.91 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.1037, allocations: 0 / 477.4 MB, free: 29.91 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.0008879/0.1046, allocations: 0.5786 MB / 478 MB, free: 29.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.1047, allocations: 8.031 kB / 478 MB, free: 29.27 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001047/0.1048, allocations: 86.52 kB / 478.1 MB, free: 29.17 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.729e-05/0.1049, allocations: 43.53 kB / 478.1 MB, free: 29.13 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004636/0.1054, allocations: 314.2 kB / 478.4 MB, free: 28.78 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.855e-05/0.1055, allocations: 66.7 kB / 478.5 MB, free: 28.71 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.371e-05/0.1055, allocations: 40 kB / 478.5 MB, free: 28.67 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009501/0.1065, allocations: 471.3 kB / 479 MB, free: 28.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.387e-05/0.1065, allocations: 4 kB / 479 MB, free: 28.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.299e-05/0.1066, allocations: 23.94 kB / 479 MB, free: 28.15 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.1066, allocations: 12 kB / 479 MB, free: 28.14 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007027/0.1073, allocations: 294.3 kB / 479.3 MB, free: 27.86 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002297/0.1097, allocations: 1.938 MB / 481.2 MB, free: 25.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004501/0.1102, allocations: 405.2 kB / 481.6 MB, free: 25.3 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001536/0.1103, allocations: 81.88 kB / 481.7 MB, free: 25.22 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008236/0.1112, allocations: 0.721 MB / 482.4 MB, free: 24.43 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003128/0.1115, allocations: 177.3 kB / 482.6 MB, free: 24.24 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 3.476e-06/0.1115, allocations: 0 / 482.6 MB, free: 24.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005708/0.1121, allocations: 259.2 kB / 482.9 MB, free: 23.97 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.994e-05/0.1122, allocations: 166.4 kB / 483 MB, free: 23.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00026/0.1125, allocations: 258.6 kB / 483.3 MB, free: 23.51 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.1125, allocations: 37.7 kB / 483.3 MB, free: 23.46 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.1126, allocations: 200.3 kB / 483.5 MB, free: 23.26 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.945e-05/0.1127, allocations: 59.28 kB / 483.6 MB, free: 23.2 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.957e-05/0.1127, allocations: 12 kB / 483.6 MB, free: 23.19 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.15e-05/0.1128, allocations: 334.8 kB / 483.9 MB, free: 22.86 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001686/0.113, allocations: 72.83 kB / 484 MB, free: 22.79 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002411/0.1132, allocations: 223.8 kB / 484.2 MB, free: 22.5 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002175/0.1135, allocations: 118.5 kB / 484.3 MB, free: 22.38 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.1135, allocations: 0 / 484.3 MB, free: 22.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0006683/0.1142, allocations: 351.6 kB / 484.6 MB, free: 22.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.731e-05/0.1142, allocations: 33.7 kB / 484.7 MB, free: 21.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.1142, allocations: 4 kB / 484.7 MB, free: 21.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.499e-05/0.1143, allocations: 8 kB / 484.7 MB, free: 21.97 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.1144, allocations: 28.48 kB / 484.7 MB, free: 21.95 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.578e-05/0.1144, allocations: 19.92 kB / 484.7 MB, free: 21.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002445/0.1147, allocations: 31.75 kB / 484.8 MB, free: 21.89 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.995e-05/0.1148, allocations: 20 kB / 484.8 MB, free: 21.88 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 47 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.onDelay.u,$PRE.step3.oldActive,step3.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.initialStep.oldActive,initialStep.oldActive,$whenCondition1,$whenCondition2,$whenCondition3,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,T2.enableFire,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.enableFire,$PRE.T3.t_start,T3.t_start,onDelay.y,onDelay.u,$PRE.onDelay.delaySignal,onDelay.delaySignal,$PRE.onDelay.t_next,onDelay.t_next,step3.outPort[1].checkOneDelayedTransitionPerLoop,T3.condition,initialStep.connectorNode.node.suspend,initialStep.connectorNode.node.resume,T2.condition,T3.outPort.checkOneDelayedTransitionPerLoop,step2.inPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 1 * 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.0002657/0.115, allocations: 233.1 kB / 485 MB, free: 21.63 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.417e-05/0.1151, allocations: 19.81 kB / 485 MB, free: 21.61 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004731/0.1156, allocations: 249.9 kB / 485.3 MB, free: 21.36 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1156, allocations: 0 / 485.3 MB, free: 21.36 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1156, allocations: 0 / 485.3 MB, free: 21.36 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.1156, allocations: 7.938 kB / 485.3 MB, free: 21.35 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009778/0.1166, allocations: 0.6823 MB / 486 MB, free: 20.61 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1166, allocations: 0 / 486 MB, free: 20.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.753e-05/0.1167, allocations: 0 / 486 MB, free: 20.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.1167, allocations: 4 kB / 486 MB, free: 20.6 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.102e-05/0.1167, allocations: 15.92 kB / 486 MB, free: 20.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.1167, allocations: 4 kB / 486 MB, free: 20.58 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1167, allocations: 0 / 486 MB, free: 20.58 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004182/0.1172, allocations: 328.8 kB / 486.3 MB, free: 20.24 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.1173, allocations: 108.8 kB / 486.4 MB, free: 20.11 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.229e-05/0.1173, allocations: 11.98 kB / 486.4 MB, free: 20.1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.1175, allocations: 4 kB / 486.4 MB, free: 20.1 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.466e-05/0.1176, allocations: 27.97 kB / 486.5 MB, free: 20.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.561e-05/0.1177, allocations: 7.984 kB / 486.5 MB, free: 20.06 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001584/0.1179, allocations: 143.2 kB / 486.6 MB, free: 19.92 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1179, allocations: 0 / 486.6 MB, free: 19.92 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005404/0.1184, allocations: 87.53 kB / 486.7 MB, free: 19.84 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: 23 (T3.enableFire,$whenCondition1,$whenCondition2,$whenCondition3,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.enableFire,step3.newActive,step3.oldActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.t_start,onDelay.y,onDelay.u,onDelay.delaySignal,onDelay.t_next) * Number of discrete states: 7 (initialStep.newActive,step2.newActive,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,step3.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.0007232/0.1191, allocations: 0.8842 MB / 487.6 MB, free: 18.92 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005668/0.1197, allocations: 270.7 kB / 487.8 MB, free: 18.65 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1198, allocations: 0 / 487.8 MB, free: 18.65 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002017/0.12, allocations: 143.3 kB / 488 MB, free: 18.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004234/0.1204, allocations: 36.78 kB / 488 MB, free: 18.46 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002654/0.1231, allocations: 1.441 MB / 489.5 MB, free: 16.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002725/0.1234, allocations: 0.8074 MB / 490.3 MB, free: 16.06 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001948/0.1236, allocations: 34.95 kB / 490.3 MB, free: 16.03 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001819/0.1238, allocations: 103.4 kB / 490.4 MB, free: 15.93 MB / 330.7 MB Notification: Performance of SimCode: time 1.042e-06/0.1238, allocations: 0 / 490.4 MB, free: 15.93 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03263/0.1565, allocations: 4.743 MB / 495.1 MB, free: 11.38 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000307/0.1568, allocations: 221.7 kB / 495.4 MB, free: 11.13 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.08/3.237, allocations: 0 / 495.4 MB, free: 11.13 MB / 330.7 MB