Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001269, allocations: 92.05 kB / 16.65 MB, free: 6.535 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.001295/0.001295, allocations: 171.8 kB / 17.56 MB, free: 6.184 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.865/1.865, allocations: 205.4 MB / 223.7 MB, free: 13.06 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.000545/0.000545, allocations: 11.98 kB / 280.7 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1064, allocations: 47.58 MB / 328.3 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001863/0.1083, allocations: 1.429 MB / 329.7 MB, free: 2.328 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006775/0.109, allocations: 267.2 kB / 330 MB, free: 2.066 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.1092, allocations: 7.938 kB / 330 MB, free: 2.059 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.231e-05/0.1093, allocations: 19.88 kB / 330 MB, free: 2.039 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.954e-05/0.1093, allocations: 7.922 kB / 330 MB, free: 2.031 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003814/0.1097, allocations: 107.8 kB / 330.1 MB, free: 1.926 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000323/0.1101, allocations: 243.5 kB / 330.4 MB, free: 1.688 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002672/0.1103, allocations: 161.9 kB / 330.5 MB, free: 1.535 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.1105, allocations: 75.69 kB / 330.6 MB, free: 1.461 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.1106, allocations: 75.61 kB / 330.7 MB, free: 1.387 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.114e-05/0.1106, allocations: 12 kB / 330.7 MB, free: 1.375 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.374e-05/0.1107, allocations: 15.94 kB / 330.7 MB, free: 1.359 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.845e-05/0.1108, allocations: 51.78 kB / 330.8 MB, free: 1.309 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.1109, allocations: 113.2 kB / 330.9 MB, free: 1.191 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002444/0.1111, allocations: 203.5 kB / 331.1 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.1111, allocations: 0 / 331.1 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1112, allocations: 0 / 331.1 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.1112, allocations: 4 kB / 331.1 MB, free: 0.9883 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.0005919/0.1118, allocations: 446 kB / 331.5 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.1118, allocations: 8.031 kB / 331.5 MB, free: 496 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.062e-05/0.1119, allocations: 24.75 kB / 331.5 MB, free: 472 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002405/0.1121, allocations: 232 kB / 331.8 MB, free: 200 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.532e-05/0.1122, allocations: 20.94 kB / 331.8 MB, free: 180 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.432e-05/0.1122, allocations: 32.38 kB / 331.8 MB, free: 148 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004664/0.1127, allocations: 262.6 kB / 332.1 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.1127, allocations: 192 / 332.1 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.772e-05/0.1128, allocations: 19.92 kB / 332.1 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.1128, allocations: 8 kB / 332.1 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002992/0.1131, allocations: 169.5 kB / 332.3 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.1144, allocations: 0.9711 MB / 333.2 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002612/0.1147, allocations: 158.7 kB / 333.4 MB, free: 14.47 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.1148, allocations: 72.83 kB / 333.5 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.1149, allocations: 4 kB / 333.5 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002076/0.1151, allocations: 115.3 kB / 333.6 MB, free: 14.27 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.813e-06/0.1151, allocations: 0 / 333.6 MB, free: 14.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003935/0.1155, allocations: 209.9 kB / 333.8 MB, free: 14.05 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.1155, allocations: 59.39 kB / 333.8 MB, free: 13.98 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.1157, allocations: 165.2 kB / 334 MB, free: 13.82 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.08e-05/0.1157, allocations: 37.7 kB / 334 MB, free: 13.77 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.1159, allocations: 136.5 kB / 334.2 MB, free: 13.64 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.002e-05/0.1159, allocations: 59.2 kB / 334.2 MB, free: 13.58 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-05/0.116, allocations: 49.69 kB / 334.3 MB, free: 13.52 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1161, allocations: 330.8 kB / 334.6 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.1162, allocations: 64.62 kB / 334.7 MB, free: 13.12 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/0.1164, allocations: 141.7 kB / 334.8 MB, free: 12.96 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002415/0.1166, allocations: 196.3 kB / 335 MB, free: 12.73 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1167, allocations: 0 / 335 MB, free: 12.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003699/0.117, allocations: 249.3 kB / 335.2 MB, free: 12.48 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.1171, allocations: 7.938 kB / 335.2 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.1171, allocations: 4 kB / 335.2 MB, free: 12.47 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.1171, allocations: 7.938 kB / 335.3 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.1172, allocations: 35.91 kB / 335.3 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.1172, allocations: 7.984 kB / 335.3 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001213/0.1174, allocations: 27.69 kB / 335.3 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.975e-05/0.1174, allocations: 16 kB / 335.3 MB, free: 12.38 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,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.condition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001388/0.1176, allocations: 160.6 kB / 335.5 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.206e-05/0.1176, allocations: 11.91 kB / 335.5 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003267/0.1179, allocations: 186.3 kB / 335.7 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1179, allocations: 7.938 kB / 335.7 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.118, allocations: 0 / 335.7 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.118, allocations: 7.969 kB / 335.7 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006968/0.1187, allocations: 0.6027 MB / 336.3 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.1187, allocations: 0 / 336.3 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.893e-05/0.1188, allocations: 12 kB / 336.3 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.1188, allocations: 3.938 kB / 336.3 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.1188, allocations: 8 kB / 336.3 MB, free: 11.31 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.643e-06/0.1188, allocations: 3.984 kB / 336.3 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/0.1188, allocations: 3.938 kB / 336.3 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000289/0.1191, allocations: 271.3 kB / 336.6 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.194e-05/0.1192, allocations: 96.88 kB / 336.7 MB, free: 10.91 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.817e-05/0.1192, allocations: 8 kB / 336.7 MB, free: 10.9 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.065e-05/0.1193, allocations: 4 kB / 336.7 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.99e-05/0.1194, allocations: 19.97 kB / 336.7 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.1194, allocations: 8 kB / 336.7 MB, free: 10.87 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.943e-05/0.1195, allocations: 95.27 kB / 336.8 MB, free: 10.77 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1195, allocations: 0 / 336.8 MB, free: 10.77 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003214/0.1198, allocations: 55.75 kB / 336.9 MB, free: 10.72 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,transition1.enableFire,step.localActive,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001638/0.12, allocations: 115.1 kB / 337 MB, free: 10.6 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003532/0.1204, allocations: 183.7 kB / 337.2 MB, free: 10.42 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1204, allocations: 0 / 337.2 MB, free: 10.42 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.1205, allocations: 83.91 kB / 337.3 MB, free: 10.34 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/0.1208, allocations: 20.55 kB / 337.3 MB, free: 10.32 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006845/0.1215, allocations: 412 kB / 337.7 MB, free: 9.887 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003657/0.1219, allocations: 0.7365 MB / 338.4 MB, free: 9.125 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.076e-05/0.122, allocations: 33.88 kB / 338.5 MB, free: 9.094 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.487e-05/0.1221, allocations: 19.44 kB / 338.5 MB, free: 9.074 MB / 286.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1221, allocations: 0 / 338.5 MB, free: 9.074 MB / 286.1 MB Notification: Performance of Templates: time 0.005034/0.1271, allocations: 1.696 MB / 340.2 MB, free: 7.383 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)