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.01456/0.01457, allocations: 172.4 kB / 15.13 MB, free: 6.023 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.388/2.388, 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.001491/0.001491, 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.1114/0.1114, allocations: 13.59 MB / 355 MB, free: 13.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004763/0.0004768, allocations: 12.75 kB / 419.2 MB, free: 87.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1018, allocations: 53.72 MB / 473 MB, free: 34.39 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4): time 0.002649/0.1045, allocations: 1.734 MB / 474.7 MB, free: 32.64 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002215/0.1068, allocations: 0.9314 MB / 475.6 MB, free: 31.71 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002752/0.1071, allocations: 15.88 kB / 475.6 MB, free: 31.69 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002266/0.1073, allocations: 59.58 kB / 475.7 MB, free: 31.63 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001475/0.1075, allocations: 35.66 kB / 475.7 MB, free: 31.6 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.00111/0.1086, allocations: 250.7 kB / 476 MB, free: 31.36 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006412/0.1093, allocations: 0.53 MB / 476.5 MB, free: 30.82 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001609/0.1109, allocations: 0.9159 MB / 477.4 MB, free: 29.87 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001959/0.1111, allocations: 163.2 kB / 477.6 MB, free: 29.71 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/0.1113, allocations: 151.1 kB / 477.7 MB, free: 29.56 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.944e-05/0.1114, allocations: 16 kB / 477.7 MB, free: 29.54 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001736/0.1116, allocations: 35.98 kB / 477.8 MB, free: 29.51 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003929/0.1121, allocations: 99.59 kB / 477.9 MB, free: 29.41 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002731/0.1124, allocations: 97.45 kB / 478 MB, free: 29.31 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009804/0.1134, allocations: 371.2 kB / 478.3 MB, free: 28.95 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1134, allocations: 0 / 478.3 MB, free: 28.95 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1134, allocations: 4 kB / 478.3 MB, free: 28.94 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.1135, allocations: 0 / 478.3 MB, free: 28.94 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001056/0.1145, allocations: 0.6544 MB / 479 MB, free: 28.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.1146, allocations: 12.03 kB / 479 MB, free: 28.22 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001384/0.1147, allocations: 98.5 kB / 479.1 MB, free: 28.11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.1148, allocations: 59.34 kB / 479.2 MB, free: 28.05 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005685/0.1154, allocations: 369.8 kB / 479.5 MB, free: 27.65 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.558e-05/0.1155, allocations: 49.3 kB / 479.6 MB, free: 27.61 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.418e-05/0.1156, allocations: 59.98 kB / 479.6 MB, free: 27.55 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/0.1168, allocations: 0.6119 MB / 480.2 MB, free: 26.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.308e-05/0.1168, allocations: 3.938 kB / 480.2 MB, free: 26.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.6e-05/0.1169, allocations: 24 kB / 480.3 MB, free: 26.87 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.754e-05/0.117, allocations: 16 kB / 480.3 MB, free: 26.85 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009422/0.1179, allocations: 399.6 kB / 480.7 MB, free: 26.46 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002912/0.1208, allocations: 2.587 MB / 483.3 MB, free: 23.71 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005044/0.1214, allocations: 468.9 kB / 483.7 MB, free: 23.18 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001835/0.1216, allocations: 97.67 kB / 483.8 MB, free: 23.08 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008731/0.1224, allocations: 0.8544 MB / 484.7 MB, free: 22.14 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003049/0.1228, allocations: 127.8 kB / 484.8 MB, free: 22 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 2.965e-06/0.1228, allocations: 3.938 kB / 484.8 MB, free: 22 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005853/0.1234, allocations: 262.2 kB / 485 MB, free: 21.74 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.1234, allocations: 59.41 kB / 485.1 MB, free: 21.67 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003151/0.1238, allocations: 318 kB / 485.4 MB, free: 21.35 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.146e-05/0.1238, allocations: 37.69 kB / 485.5 MB, free: 21.31 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.124, allocations: 260.4 kB / 485.7 MB, free: 21.05 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.175e-05/0.1241, allocations: 67.19 kB / 485.8 MB, free: 20.98 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.079e-05/0.1241, allocations: 12 kB / 485.8 MB, free: 20.97 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.182e-05/0.1242, allocations: 346.8 kB / 486.1 MB, free: 20.62 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.1244, allocations: 85.08 kB / 486.2 MB, free: 20.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002864/0.1247, allocations: 273.4 kB / 486.5 MB, free: 20.2 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002529/0.125, allocations: 116.4 kB / 486.6 MB, free: 20.08 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.125, allocations: 0 / 486.6 MB, free: 20.08 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007398/0.1257, allocations: 405.4 kB / 487 MB, free: 19.68 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.1258, allocations: 8 kB / 487 MB, free: 19.67 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.1258, allocations: 4 kB / 487 MB, free: 19.67 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.494e-05/0.1258, allocations: 12 kB / 487 MB, free: 19.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001811/0.126, allocations: 39.8 kB / 487 MB, free: 19.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.627e-05/0.126, allocations: 15.98 kB / 487.1 MB, free: 19.6 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002383/0.1263, allocations: 35.69 kB / 487.1 MB, free: 19.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.474e-05/0.1263, allocations: 24 kB / 487.1 MB, free: 19.54 MB / 330.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,step2.active,$PRE.step2.newActive,step2.newActive,step2.inport_fire,T2.enableFire,step3.active,$PRE.step3.newActive,step3.newActive,step3.inport_fire,T3.enableFire,$PRE.timer1.entryTime,timer1.entryTime,greaterEqual.y,$PRE.step4.newActive,step4.newActive,step4.inport_fire,step4.outport_fire,T4.enableFire,$PRE.timer2.entryTime,timer2.entryTime,greaterEqual1.y,step4.inPort[1].checkOneDelayedTransitionPerLoop,step4.outPort[1].checkOneDelayedTransitionPerLoop,T3.condition,initialStep.connectorNode.node.suspend,initialStep.connectorNode.node.resume,T4.condition,T2.condition,T3.outPort.checkOneDelayedTransitionPerLoop,step2.inPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkOneDelayedTransitionPerLoop,step4.inPort[1].checkUnaryConnection,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 (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.0002736/0.1266, allocations: 230.8 kB / 487.3 MB, free: 19.31 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.321e-05/0.1267, allocations: 27.62 kB / 487.4 MB, free: 19.28 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004942/0.1272, allocations: 224.8 kB / 487.6 MB, free: 19.05 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.1272, allocations: 3.984 kB / 487.6 MB, free: 19.04 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1272, allocations: 7.938 kB / 487.6 MB, free: 19.04 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.1273, allocations: 0 / 487.6 MB, free: 19.04 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.1284, allocations: 0.734 MB / 488.3 MB, free: 18.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.1284, allocations: 0 / 488.3 MB, free: 18.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.118e-05/0.1285, allocations: 11.94 kB / 488.3 MB, free: 18.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.1285, allocations: 3.938 kB / 488.4 MB, free: 18.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.193e-05/0.1285, allocations: 15.98 kB / 488.4 MB, free: 18.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.1285, allocations: 0 / 488.4 MB, free: 18.21 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1285, allocations: 0 / 488.4 MB, free: 18.21 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003918/0.1289, allocations: 311.5 kB / 488.7 MB, free: 17.89 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.1291, allocations: 116.7 kB / 488.8 MB, free: 17.76 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.835e-05/0.1291, allocations: 8 kB / 488.8 MB, free: 17.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.1293, allocations: 11.98 kB / 488.8 MB, free: 17.74 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.1294, allocations: 19.97 kB / 488.8 MB, free: 17.72 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.567e-05/0.1294, allocations: 11.98 kB / 488.8 MB, free: 17.71 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001751/0.1296, allocations: 170 kB / 489 MB, free: 17.54 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1296, allocations: 0 / 489 MB, free: 17.54 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005808/0.1302, allocations: 111.3 kB / 489.1 MB, free: 17.43 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: 27 (initialStep.inport_fire,step3.active,step2.active,$whenCondition2,$whenCondition1,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,T3.enableFire,timer1.entryTime,greaterEqual.y,step4.newActive,step4.oldActive,step4.inport_fire,step4.outport_fire,T4.enableFire,timer2.entryTime,greaterEqual1.y) * 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.0006978/0.1309, allocations: 0.8627 MB / 490 MB, free: 16.55 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005411/0.1315, allocations: 252 kB / 490.2 MB, free: 16.3 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1315, allocations: 0 / 490.2 MB, free: 16.3 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001781/0.1317, allocations: 92.34 kB / 490.3 MB, free: 16.21 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.1321, allocations: 32.55 kB / 490.3 MB, free: 16.18 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003038/0.1352, allocations: 1.807 MB / 492.1 MB, free: 14.25 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003166/0.1355, allocations: 0.8499 MB / 493 MB, free: 13.38 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002255/0.1358, allocations: 59.22 kB / 493.1 MB, free: 13.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002338/0.136, allocations: 143.4 kB / 493.2 MB, free: 13.18 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.136, allocations: 7.938 kB / 493.2 MB, free: 13.17 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03935/0.1754, allocations: 5.791 MB / 499 MB, free: 7.57 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002978/0.1757, allocations: 222.1 kB / 499.2 MB, free: 7.324 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.964/3.14, allocations: 0 / 499.2 MB, free: 7.324 MB / 330.7 MB