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: translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002733/0.002736, allocations: 359.4 kB / 15.96 MB, free: 6.184 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 4.517/4.517, allocations: 446.6 MB / 463.2 MB, free: 2.871 MB / 362.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002865/0.002865, allocations: 192 kB / 0.5025 GB, free: 15.53 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2354/0.2354, allocations: 27.14 MB / 0.5788 GB, free: 210.1 MB / 458.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004604/0.0004606, allocations: 8 kB / 0.6415 GB, free: 147.3 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09398/0.09446, allocations: 53.71 MB / 0.694 GB, free: 93.52 MB / 458.7 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4): time 0.002493/0.09702, allocations: 1.727 MB / 0.6957 GB, free: 91.79 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.002071/0.09915, allocations: 0.9276 MB / 0.6966 GB, free: 90.86 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002505/0.09945, allocations: 19.88 kB / 0.6966 GB, free: 90.84 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002164/0.09968, allocations: 59.53 kB / 0.6967 GB, free: 90.78 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001411/0.09984, allocations: 31.72 kB / 0.6967 GB, free: 90.75 MB / 458.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.00115/0.101, allocations: 255.5 kB / 0.6969 GB, free: 90.5 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007123/0.1017, allocations: 0.5261 MB / 0.6975 GB, free: 89.97 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001747/0.1035, allocations: 0.9235 MB / 0.6984 GB, free: 89 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002398/0.1038, allocations: 159.3 kB / 0.6985 GB, free: 88.84 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002143/0.104, allocations: 162.9 kB / 0.6987 GB, free: 88.68 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 5.935e-05/0.1041, allocations: 20 kB / 0.6987 GB, free: 88.66 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001398/0.1042, allocations: 32 kB / 0.6987 GB, free: 88.63 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.1044, allocations: 87.66 kB / 0.6988 GB, free: 88.55 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 9.695e-05/0.1045, allocations: 105.4 kB / 0.6989 GB, free: 88.44 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004988/0.105, allocations: 363.2 kB / 0.6992 GB, free: 88.08 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.105, allocations: 0 / 0.6992 GB, free: 88.08 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.105, allocations: 0 / 0.6992 GB, free: 88.08 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.105, allocations: 0 / 0.6992 GB, free: 88.08 MB / 458.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.001006/0.1061, allocations: 0.6661 MB / 0.6999 GB, free: 87.37 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.1061, allocations: 8.031 kB / 0.6999 GB, free: 87.36 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.1062, allocations: 55.34 kB / 0.7 GB, free: 87.31 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005416/0.1068, allocations: 361.9 kB / 0.7003 GB, free: 86.91 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.025e-05/0.1069, allocations: 45.31 kB / 0.7003 GB, free: 86.87 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.261e-05/0.107, allocations: 59.95 kB / 0.7004 GB, free: 86.81 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.1082, allocations: 0.6158 MB / 0.701 GB, free: 86.15 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.497e-05/0.1082, allocations: 0 / 0.701 GB, free: 86.15 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.353e-05/0.1083, allocations: 27.98 kB / 0.701 GB, free: 86.12 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/0.1083, allocations: 16 kB / 0.701 GB, free: 86.11 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009851/0.1093, allocations: 411.6 kB / 0.7014 GB, free: 85.71 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003072/0.1124, allocations: 2.579 MB / 0.704 GB, free: 82.96 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005239/0.113, allocations: 472 kB / 0.7044 GB, free: 82.43 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/0.1132, allocations: 93.69 kB / 0.7045 GB, free: 82.33 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009164/0.1141, allocations: 0.8584 MB / 0.7053 GB, free: 81.39 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002929/0.1145, allocations: 123.6 kB / 0.7055 GB, free: 81.26 MB / 458.7 MB Notification: Performance of pre-optimization done (n=29): time 3.217e-06/0.1145, allocations: 0 / 0.7055 GB, free: 81.26 MB / 458.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006002/0.1151, allocations: 269.2 kB / 0.7057 GB, free: 80.99 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/0.1151, allocations: 59.41 kB / 0.7058 GB, free: 80.92 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003367/0.1155, allocations: 314 kB / 0.7061 GB, free: 80.61 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.329e-05/0.1155, allocations: 37.7 kB / 0.7061 GB, free: 80.57 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.1157, allocations: 252.4 kB / 0.7063 GB, free: 80.32 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.307e-05/0.1158, allocations: 75.14 kB / 0.7064 GB, free: 80.24 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.173e-05/0.1158, allocations: 12 kB / 0.7064 GB, free: 80.23 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.75e-05/0.1159, allocations: 338.8 kB / 0.7067 GB, free: 79.89 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002333/0.1161, allocations: 85.08 kB / 0.7068 GB, free: 79.81 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002961/0.1164, allocations: 269.5 kB / 0.7071 GB, free: 79.46 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002634/0.1167, allocations: 123.8 kB / 0.7072 GB, free: 79.34 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.1167, allocations: 4 kB / 0.7072 GB, free: 79.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007756/0.1175, allocations: 397.4 kB / 0.7076 GB, free: 78.95 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.1176, allocations: 4 kB / 0.7076 GB, free: 78.94 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.1176, allocations: 8 kB / 0.7076 GB, free: 78.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.463e-05/0.1176, allocations: 8 kB / 0.7076 GB, free: 78.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001828/0.1178, allocations: 43.8 kB / 0.7076 GB, free: 78.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.675e-05/0.1178, allocations: 16.53 kB / 0.7077 GB, free: 78.87 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002445/0.1181, allocations: 51.61 kB / 0.7077 GB, free: 78.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.555e-05/0.1181, allocations: 24 kB / 0.7077 GB, free: 78.79 MB / 458.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.0002968/0.1185, allocations: 228.2 kB / 0.708 GB, free: 78.57 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.938e-05/0.1185, allocations: 35.56 kB / 0.708 GB, free: 78.53 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004911/0.119, allocations: 220.8 kB / 0.7082 GB, free: 78.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.119, allocations: 3.984 kB / 0.7082 GB, free: 78.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.119, allocations: 0 / 0.7082 GB, free: 78.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.1192, allocations: 116.7 kB / 0.7083 GB, free: 78.16 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.394e-05/0.1192, allocations: 11.98 kB / 0.7083 GB, free: 78.15 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.1193, allocations: 11.95 kB / 0.7083 GB, free: 78.14 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.633e-05/0.1194, allocations: 31.89 kB / 0.7084 GB, free: 78.11 MB / 458.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004531/0.1199, allocations: 274.1 kB / 0.7086 GB, free: 77.84 MB / 458.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0004523/0.1204, allocations: 386.7 kB / 0.709 GB, free: 77.44 MB / 458.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001657/0.1206, allocations: 79.95 kB / 0.7091 GB, free: 77.36 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0001868/0.1208, allocations: 177.9 kB / 0.7092 GB, free: 77.2 MB / 458.7 MB Notification: Performance of Backend: time 5.81e-07/0.1208, allocations: 0 / 0.7092 GB, free: 77.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0008726/0.1217, allocations: 286.3 kB / 0.7095 GB, free: 76.91 MB / 458.7 MB Notification: Performance of SimCode: time 0.001444/0.1231, allocations: 1.196 MB / 0.7107 GB, free: 75.66 MB / 458.7 MB Notification: Performance of Templates: time 0.009591/0.1328, allocations: 2.424 MB / 0.7131 GB, free: 73.25 MB / 458.7 MB