Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 95.61 kB / 16.3 MB, free: 6.453 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.001978/0.001979, allocations: 181.9 kB / 17.19 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.572/1.572, allocations: 205.4 MB / 223.3 MB, free: 13.17 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.0004642/0.0004645, allocations: 11.44 kB / 280.1 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1078, allocations: 47.58 MB / 327.7 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001595/0.1095, allocations: 1.19 MB / 328.9 MB, free: 2.91 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005725/0.1101, allocations: 259.3 kB / 329.1 MB, free: 2.656 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.66e-05/0.1102, allocations: 7.938 kB / 329.1 MB, free: 2.648 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000107/0.1103, allocations: 19.86 kB / 329.2 MB, free: 2.629 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.206e-05/0.1103, allocations: 15.92 kB / 329.2 MB, free: 2.613 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003633/0.1107, allocations: 83.83 kB / 329.2 MB, free: 2.531 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002462/0.1109, allocations: 151.7 kB / 329.4 MB, free: 2.383 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002603/0.1112, allocations: 146.2 kB / 329.5 MB, free: 2.234 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.897e-05/0.1113, allocations: 63.78 kB / 329.6 MB, free: 2.172 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.1114, allocations: 79.59 kB / 329.7 MB, free: 2.094 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.491e-05/0.1115, allocations: 12 kB / 329.7 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.473e-05/0.1116, allocations: 12 kB / 329.7 MB, free: 2.07 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.347e-05/0.1116, allocations: 35.91 kB / 329.7 MB, free: 2.035 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.336e-05/0.1117, allocations: 53.58 kB / 329.8 MB, free: 1.977 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001669/0.1118, allocations: 155.6 kB / 329.9 MB, free: 1.824 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.305e-06/0.1119, allocations: 0 / 329.9 MB, free: 1.824 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1119, allocations: 4 kB / 329.9 MB, free: 1.82 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.1119, allocations: 0 / 329.9 MB, free: 1.82 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006169/0.1125, allocations: 438.8 kB / 330.4 MB, free: 1.344 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.1125, allocations: 12.03 kB / 330.4 MB, free: 1.332 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.523e-05/0.1126, allocations: 23.72 kB / 330.4 MB, free: 1.309 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002276/0.1128, allocations: 226.8 kB / 330.6 MB, free: 1.047 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.883e-05/0.1129, allocations: 24.5 kB / 330.7 MB, free: 1.023 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.1129, allocations: 28 kB / 330.7 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000414/0.1133, allocations: 243.4 kB / 330.9 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.1134, allocations: 0 / 330.9 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.645e-05/0.1134, allocations: 8 kB / 330.9 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.1134, allocations: 4 kB / 330.9 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002768/0.1137, allocations: 161.6 kB / 331.1 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.1147, allocations: 0.7014 MB / 331.8 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002816/0.115, allocations: 175.3 kB / 332 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.1151, allocations: 8.188 kB / 332 MB, free: 15.63 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002382/0.1153, allocations: 111.4 kB / 332.1 MB, free: 15.51 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.733e-06/0.1153, allocations: 0 / 332.1 MB, free: 15.51 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004351/0.1158, allocations: 214 kB / 332.3 MB, free: 15.29 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.47e-05/0.1158, allocations: 59.39 kB / 332.3 MB, free: 15.22 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.116, allocations: 153.8 kB / 332.5 MB, free: 15.06 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.116, allocations: 37.7 kB / 332.5 MB, free: 15.02 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.1161, allocations: 132.6 kB / 332.7 MB, free: 14.88 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.084e-05/0.1162, allocations: 63.19 kB / 332.7 MB, free: 14.82 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.135e-05/0.1162, allocations: 4 kB / 332.7 MB, free: 14.82 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1163, allocations: 326.8 kB / 333 MB, free: 14.49 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.1165, allocations: 60.62 kB / 333.1 MB, free: 14.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.1166, allocations: 128.1 kB / 333.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001325/0.1167, allocations: 71.91 kB / 333.3 MB, free: 14.21 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.1168, allocations: 0 / 333.3 MB, free: 14.21 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003617/0.1171, allocations: 241.3 kB / 333.5 MB, free: 13.96 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.1172, allocations: 8 kB / 333.5 MB, free: 13.96 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.575e-06/0.1172, allocations: 0 / 333.5 MB, free: 13.96 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.1172, allocations: 4 kB / 333.6 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.1173, allocations: 27.92 kB / 333.6 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.1174, allocations: 7.938 kB / 333.6 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.97e-05/0.1175, allocations: 27.75 kB / 333.6 MB, free: 13.89 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.1175, allocations: 24.16 kB / 333.6 MB, free: 13.87 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001714/0.1177, allocations: 157.7 kB / 333.8 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.918e-05/0.1177, allocations: 7.906 kB / 333.8 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003572/0.1181, allocations: 198.4 kB / 334 MB, free: 13.5 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.1181, allocations: 0 / 334 MB, free: 13.5 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1181, allocations: 4 kB / 334 MB, free: 13.49 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1181, allocations: 0 / 334 MB, free: 13.49 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007174/0.1188, allocations: 0.5765 MB / 334.6 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1188, allocations: 0 / 334.6 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.195e-05/0.1189, allocations: 19.92 kB / 334.6 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.1189, allocations: 0 / 334.6 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.119, allocations: 11.88 kB / 334.6 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-05/0.119, allocations: 7.953 kB / 334.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.119, allocations: 3.984 kB / 334.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003066/0.1193, allocations: 283.2 kB / 334.9 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.625e-05/0.1194, allocations: 88.95 kB / 335 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.646e-05/0.1194, allocations: 7.984 kB / 335 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.553e-05/0.1195, allocations: 8 kB / 335 MB, free: 12.4 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.179e-05/0.1196, allocations: 27.91 kB / 335 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.1196, allocations: 12 kB / 335 MB, free: 12.36 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.074e-05/0.1197, allocations: 91.27 kB / 335.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1197, allocations: 4 kB / 335.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002935/0.12, allocations: 51.84 kB / 335.2 MB, free: 12.22 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0001673/0.1201, allocations: 107.1 kB / 335.3 MB, free: 12.1 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003224/0.1205, allocations: 179.8 kB / 335.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.1205, allocations: 0 / 335.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001391/0.1206, allocations: 79.91 kB / 335.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002097/0.1208, allocations: 20.42 kB / 335.6 MB, free: 11.83 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006736/0.1215, allocations: 371.8 kB / 335.9 MB, free: 11.44 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004246/0.122, allocations: 0.7328 MB / 336.7 MB, free: 10.68 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.747e-05/0.1221, allocations: 25.94 kB / 336.7 MB, free: 10.66 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.617e-05/0.1221, allocations: 23.44 kB / 336.7 MB, free: 10.64 MB / 286.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1221, allocations: 0 / 336.7 MB, free: 10.64 MB / 286.1 MB Notification: Performance of Templates: time 0.004479/0.1266, allocations: 1.661 MB / 338.4 MB, free: 8.984 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) Environment - environmentSimulation: