Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001047, allocations: 93.88 kB / 16.3 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 183.5 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.537/1.537, allocations: 205.4 MB / 223.3 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000665/0.0006651, allocations: 15.98 kB / 280.1 MB, free: 3.773 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1085, allocations: 47.58 MB / 327.7 MB, free: 4.121 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001777/0.1103, allocations: 1.371 MB / 329.1 MB, free: 2.734 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006005/0.111, allocations: 275.2 kB / 329.3 MB, free: 2.465 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.075e-05/0.1111, allocations: 3.938 kB / 329.3 MB, free: 2.461 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001085/0.1112, allocations: 19.84 kB / 329.4 MB, free: 2.441 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.104e-05/0.1112, allocations: 19.91 kB / 329.4 MB, free: 2.422 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003287/0.1116, allocations: 79.91 kB / 329.4 MB, free: 2.344 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002315/0.1118, allocations: 163.7 kB / 329.6 MB, free: 2.184 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002483/0.1121, allocations: 149.4 kB / 329.8 MB, free: 2.035 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.307e-05/0.1122, allocations: 71.7 kB / 329.8 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/0.1123, allocations: 75.61 kB / 329.9 MB, free: 1.891 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.517e-05/0.1123, allocations: 12 kB / 329.9 MB, free: 1.879 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.711e-05/0.1124, allocations: 19.98 kB / 329.9 MB, free: 1.859 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.062e-05/0.1124, allocations: 39.84 kB / 330 MB, free: 1.82 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.1125, allocations: 57.58 kB / 330 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001788/0.1127, allocations: 159.9 kB / 330.2 MB, free: 1.602 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.1127, allocations: 0 / 330.2 MB, free: 1.602 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1127, allocations: 0 / 330.2 MB, free: 1.602 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.1127, allocations: 0 / 330.2 MB, free: 1.602 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.000584/0.1133, allocations: 449.9 kB / 330.6 MB, free: 1.113 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.1134, allocations: 19.97 kB / 330.6 MB, free: 1.094 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.009e-05/0.1135, allocations: 19.81 kB / 330.7 MB, free: 1.074 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/0.1137, allocations: 226.7 kB / 330.9 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.032e-05/0.1137, allocations: 24.55 kB / 330.9 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.908e-05/0.1138, allocations: 27.95 kB / 330.9 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000415/0.1142, allocations: 270 kB / 331.2 MB, free: 480 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1142, allocations: 0 / 331.2 MB, free: 480 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.515e-05/0.1143, allocations: 12 kB / 331.2 MB, free: 468 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.1143, allocations: 11.94 kB / 331.2 MB, free: 456 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002762/0.1146, allocations: 165.6 kB / 331.4 MB, free: 292 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.1157, allocations: 0.9713 MB / 332.4 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002556/0.116, allocations: 159.3 kB / 332.5 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.116, allocations: 192 / 332.5 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002235/0.1162, allocations: 107.5 kB / 332.6 MB, free: 14.96 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.483e-06/0.1163, allocations: 0 / 332.6 MB, free: 14.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004179/0.1167, allocations: 217.9 kB / 332.8 MB, free: 14.75 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.056e-05/0.1167, allocations: 55.41 kB / 332.9 MB, free: 14.68 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.1169, allocations: 165.3 kB / 333 MB, free: 14.51 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.356e-05/0.1169, allocations: 37.7 kB / 333.1 MB, free: 14.46 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.969e-05/0.117, allocations: 140.5 kB / 333.2 MB, free: 14.32 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.163e-05/0.1171, allocations: 59.19 kB / 333.3 MB, free: 14.27 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.418e-05/0.1171, allocations: 8 kB / 333.3 MB, free: 14.26 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.1172, allocations: 326.8 kB / 333.6 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.1174, allocations: 60.62 kB / 333.7 MB, free: 13.87 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001581/0.1175, allocations: 137.8 kB / 333.8 MB, free: 13.7 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001218/0.1177, allocations: 79.89 kB / 333.9 MB, free: 13.62 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1177, allocations: 0 / 333.9 MB, free: 13.62 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003562/0.118, allocations: 241.2 kB / 334.1 MB, free: 13.38 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.1181, allocations: 8 kB / 334.1 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1181, allocations: 3.953 kB / 334.1 MB, free: 13.37 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.108e-05/0.1181, allocations: 4.281 kB / 334.1 MB, free: 13.37 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/0.1183, allocations: 47.84 kB / 334.2 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.1183, allocations: 8 kB / 334.2 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.816e-05/0.1184, allocations: 23.78 kB / 334.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.148e-05/0.1184, allocations: 16 kB / 334.2 MB, free: 13.27 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001557/0.1186, allocations: 152.4 kB / 334.4 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.49e-05/0.1186, allocations: 19.81 kB / 334.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003348/0.119, allocations: 198.6 kB / 334.6 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.119, allocations: 7.953 kB / 334.6 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.119, allocations: 0 / 334.6 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.119, allocations: 3.984 kB / 334.6 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006883/0.1197, allocations: 0.5915 MB / 335.2 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1197, allocations: 0 / 335.2 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.708e-05/0.1198, allocations: 12 kB / 335.2 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.1198, allocations: 4 kB / 335.2 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.1198, allocations: 7.984 kB / 335.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.087e-06/0.1198, allocations: 4 kB / 335.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1198, allocations: 0 / 335.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002792/0.1201, allocations: 267.2 kB / 335.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.774e-05/0.1202, allocations: 96.89 kB / 335.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.846e-05/0.1202, allocations: 8 kB / 335.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.332e-05/0.1203, allocations: 8 kB / 335.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.101e-05/0.1204, allocations: 27.95 kB / 335.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.1204, allocations: 8 kB / 335.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.585e-05/0.1205, allocations: 95.27 kB / 335.7 MB, free: 11.67 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1205, allocations: 4 kB / 335.7 MB, free: 11.67 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003027/0.1208, allocations: 51.75 kB / 335.8 MB, free: 11.62 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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.0001535/0.121, allocations: 111.1 kB / 335.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002899/0.1213, allocations: 180 kB / 336 MB, free: 11.32 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1213, allocations: 0 / 336 MB, free: 11.32 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.1214, allocations: 79.91 kB / 336.1 MB, free: 11.25 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002013/0.1216, allocations: 12 kB / 336.1 MB, free: 11.23 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00058/0.1222, allocations: 396 kB / 336.5 MB, free: 10.82 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.1225, allocations: 0.7444 MB / 337.3 MB, free: 10.05 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.559e-05/0.1226, allocations: 37.92 kB / 337.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.98e-05/0.1226, allocations: 19.44 kB / 337.3 MB, free: 9.996 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1226, allocations: 0 / 337.3 MB, free: 9.996 MB / 286.1 MB Notification: Performance of Templates: time 0.00464/0.1273, allocations: 1.651 MB / 339 MB, free: 8.348 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) Environment - environmentSimulation: