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.009657/0.009663, allocations: 171 kB / 15.12 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.175/2.175, allocations: 223.3 MB / 239.1 MB, free: 1.715 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.001017/0.001016, allocations: 97.61 kB / 290.3 MB, free: 13.91 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.1125/0.1125, allocations: 13.58 MB / 355 MB, free: 13.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004595/0.0004597, allocations: 19.44 kB / 419.2 MB, free: 87.45 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09716/0.09765, allocations: 53.71 MB / 472.9 MB, free: 34.41 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample): time 0.002098/0.09981, allocations: 1.461 MB / 474.4 MB, free: 32.94 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001653/0.1015, allocations: 0.7951 MB / 475.2 MB, free: 32.14 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.1017, allocations: 11.94 kB / 475.2 MB, free: 32.13 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000192/0.1019, allocations: 35.67 kB / 475.2 MB, free: 32.09 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001039/0.102, allocations: 23.78 kB / 475.3 MB, free: 32.07 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.0008644/0.1029, allocations: 194.1 kB / 475.5 MB, free: 31.88 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004908/0.1034, allocations: 383.1 kB / 475.8 MB, free: 31.51 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001304/0.1047, allocations: 0.7061 MB / 476.5 MB, free: 30.77 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001669/0.1049, allocations: 115.4 kB / 476.7 MB, free: 30.65 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/0.1051, allocations: 115.3 kB / 476.8 MB, free: 30.54 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.644e-05/0.1051, allocations: 16 kB / 476.8 MB, free: 30.52 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001211/0.1053, allocations: 24 kB / 476.8 MB, free: 30.5 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.396e-05/0.1054, allocations: 67.75 kB / 476.9 MB, free: 30.43 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.997e-05/0.1055, allocations: 81.5 kB / 477 MB, free: 30.35 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003651/0.1058, allocations: 267.5 kB / 477.2 MB, free: 30.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.1059, allocations: 0 / 477.2 MB, free: 30.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1059, allocations: 4 kB / 477.2 MB, free: 30.08 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.1059, allocations: 0 / 477.2 MB, free: 30.08 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0008952/0.1068, allocations: 0.5545 MB / 477.8 MB, free: 29.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.1069, allocations: 12.03 kB / 477.8 MB, free: 29.47 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001038/0.107, allocations: 74.53 kB / 477.9 MB, free: 29.39 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.501e-05/0.1071, allocations: 43.52 kB / 477.9 MB, free: 29.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004633/0.1075, allocations: 302.4 kB / 478.2 MB, free: 29.01 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.789e-05/0.1076, allocations: 40.92 kB / 478.2 MB, free: 28.97 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.934e-05/0.1077, allocations: 44 kB / 478.3 MB, free: 28.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009407/0.1086, allocations: 447.4 kB / 478.7 MB, free: 28.45 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.1087, allocations: 3.953 kB / 478.7 MB, free: 28.45 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.539e-05/0.1087, allocations: 23.98 kB / 478.7 MB, free: 28.43 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.1088, allocations: 12 kB / 478.8 MB, free: 28.41 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006865/0.1095, allocations: 282.3 kB / 479 MB, free: 28.14 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003593/0.1131, allocations: 1.891 MB / 480.9 MB, free: 26.08 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004754/0.1136, allocations: 382.9 kB / 481.3 MB, free: 25.64 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001519/0.1138, allocations: 61.2 kB / 481.4 MB, free: 25.58 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001345/0.1139, allocations: 85.23 kB / 481.4 MB, free: 25.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003815/0.1144, allocations: 107.5 kB / 481.5 MB, free: 25.36 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 5.29e-06/0.1144, allocations: 4 kB / 481.5 MB, free: 25.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008785/0.1153, allocations: 218.8 kB / 481.8 MB, free: 25.14 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.606e-05/0.1154, allocations: 110.8 kB / 481.9 MB, free: 25.01 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004714/0.1159, allocations: 242.8 kB / 482.1 MB, free: 24.76 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.064e-05/0.116, allocations: 37.7 kB / 482.1 MB, free: 24.72 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000217/0.1162, allocations: 200.4 kB / 482.3 MB, free: 24.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.378e-05/0.1163, allocations: 51.34 kB / 482.4 MB, free: 24.47 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.71e-05/0.1164, allocations: 8 kB / 482.4 MB, free: 24.46 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.1165, allocations: 338.8 kB / 482.7 MB, free: 24.12 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002621/0.1168, allocations: 64.84 kB / 482.8 MB, free: 24.06 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004093/0.1172, allocations: 220.5 kB / 483 MB, free: 23.77 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003426/0.1176, allocations: 91.95 kB / 483.1 MB, free: 23.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.224e-05/0.1176, allocations: 4 kB / 483.1 MB, free: 23.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00131/0.1189, allocations: 310 kB / 483.4 MB, free: 23.37 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.119, allocations: 8 kB / 483.4 MB, free: 23.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.119, allocations: 4 kB / 483.4 MB, free: 23.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.451e-05/0.1191, allocations: 8 kB / 483.4 MB, free: 23.35 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.1193, allocations: 23.92 kB / 483.4 MB, free: 23.33 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.245e-05/0.1193, allocations: 15.92 kB / 483.5 MB, free: 23.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004674/0.1198, allocations: 35.69 kB / 483.5 MB, free: 23.28 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.218e-05/0.1199, allocations: 16 kB / 483.5 MB, free: 23.26 MB / 330.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,T3.condition,T2.condition,initialStep.connectorNode.node.suspend,initialStep.connectorNode.node.resume,T3.outPort.checkOneDelayedTransitionPerLoop,step2.inPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[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 (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.0004058/0.1203, allocations: 203 kB / 483.7 MB, free: 23.05 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.376e-05/0.1204, allocations: 15.81 kB / 483.7 MB, free: 23.04 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007617/0.1212, allocations: 197.6 kB / 483.9 MB, free: 22.84 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/0.1212, allocations: 7.984 kB / 483.9 MB, free: 22.84 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.1213, allocations: 0 / 483.9 MB, free: 22.84 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.1213, allocations: 0 / 483.9 MB, free: 22.84 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001918/0.1232, allocations: 0.6195 MB / 484.5 MB, free: 22.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.1233, allocations: 3.938 kB / 484.5 MB, free: 22.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.888e-05/0.1233, allocations: 7.938 kB / 484.6 MB, free: 22.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-05/0.1234, allocations: 4 kB / 484.6 MB, free: 22.14 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.452e-05/0.1234, allocations: 7.984 kB / 484.6 MB, free: 22.14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.1234, allocations: 0 / 484.6 MB, free: 22.14 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.1234, allocations: 4 kB / 484.6 MB, free: 22.13 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004651/0.1239, allocations: 274.4 kB / 484.8 MB, free: 21.85 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/0.1241, allocations: 116.7 kB / 485 MB, free: 21.72 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.173e-05/0.1242, allocations: 4 kB / 485 MB, free: 21.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004186/0.1246, allocations: 15.98 kB / 485 MB, free: 21.7 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.1248, allocations: 15.97 kB / 485 MB, free: 21.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-05/0.1249, allocations: 19.98 kB / 485 MB, free: 21.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002638/0.1252, allocations: 139.2 kB / 485.1 MB, free: 21.53 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.42e-07/0.1252, allocations: 0 / 485.1 MB, free: 21.53 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009461/0.1261, allocations: 75.69 kB / 485.2 MB, free: 21.45 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 (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.0009318/0.1271, allocations: 0.819 MB / 486 MB, free: 20.61 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005526/0.1277, allocations: 203.6 kB / 486.2 MB, free: 20.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.1277, allocations: 0 / 486.2 MB, free: 20.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.1279, allocations: 74.72 kB / 486.3 MB, free: 20.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004187/0.1283, allocations: 20 kB / 486.3 MB, free: 20.32 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002462/0.1308, allocations: 1.377 MB / 487.7 MB, free: 18.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002737/0.1311, allocations: 0.7957 MB / 488.5 MB, free: 18 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001987/0.1313, allocations: 34.95 kB / 488.5 MB, free: 17.96 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001767/0.1315, allocations: 95.41 kB / 488.6 MB, free: 17.87 MB / 330.7 MB Notification: Performance of SimCode: time 1.302e-06/0.1315, allocations: 4 kB / 488.6 MB, free: 17.87 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03245/0.164, allocations: 4.755 MB / 493.4 MB, free: 13.3 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002468/0.1643, allocations: 216.6 kB / 493.6 MB, free: 13.06 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.928/3.092, allocations: 0 / 493.6 MB, free: 13.06 MB / 330.7 MB