Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.0009801/0.00098, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.00115/0.00115, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.449/1.449, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.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.0004705/0.0004705, allocations: 10.81 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2423, allocations: 47.58 MB / 326.5 MB, free: 1.371 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00144/0.2438, allocations: 1.198 MB / 327.7 MB, free: 424 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005552/0.2443, allocations: 249.4 kB / 327.9 MB, free: 224 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.778e-05/0.2444, allocations: 7.844 kB / 327.9 MB, free: 220 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 9.5e-05/0.2445, allocations: 19.48 kB / 327.9 MB, free: 204 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 4.079e-05/0.2446, allocations: 13 kB / 327.9 MB, free: 192 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000309/0.2449, allocations: 85.27 kB / 328 MB, free: 124 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002851/0.2452, allocations: 229.3 kB / 328.3 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002405/0.2454, allocations: 141.9 kB / 328.4 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.431e-05/0.2455, allocations: 60.8 kB / 328.5 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001048/0.2456, allocations: 77.02 kB / 328.5 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.2457, allocations: 9.875 kB / 328.5 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.055e-05/0.2458, allocations: 21.81 kB / 328.6 MB, free: 15.79 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.473e-05/0.2458, allocations: 36.61 kB / 328.6 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.388e-05/0.2459, allocations: 58.05 kB / 328.6 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001889/0.2461, allocations: 151.6 kB / 328.8 MB, free: 15.6 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.2461, allocations: 0 / 328.8 MB, free: 15.6 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.2461, allocations: 0 / 328.8 MB, free: 15.6 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.2461, allocations: 4.875 kB / 328.8 MB, free: 15.6 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.0006086/0.2467, allocations: 440.1 kB / 329.2 MB, free: 15.16 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.2468, allocations: 9.469 kB / 329.2 MB, free: 15.16 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.887e-05/0.2468, allocations: 26.75 kB / 329.3 MB, free: 15.15 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002454/0.2471, allocations: 221.8 kB / 329.5 MB, free: 14.91 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.079e-05/0.2471, allocations: 22.72 kB / 329.5 MB, free: 14.9 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.972e-05/0.2472, allocations: 25.31 kB / 329.5 MB, free: 14.89 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004162/0.2476, allocations: 240 kB / 329.8 MB, free: 14.73 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.2476, allocations: 1.375 kB / 329.8 MB, free: 14.73 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.457e-05/0.2477, allocations: 9.375 kB / 329.8 MB, free: 14.72 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.2477, allocations: 9.5 kB / 329.8 MB, free: 14.72 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002964/0.248, allocations: 157.4 kB / 329.9 MB, free: 14.64 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009797/0.249, allocations: 0.7051 MB / 330.6 MB, free: 14.01 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002998/0.2493, allocations: 168 kB / 330.8 MB, free: 13.92 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001376/0.2494, allocations: 83.95 kB / 330.9 MB, free: 13.87 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.748e-05/0.2495, allocations: 2.375 kB / 330.9 MB, free: 13.87 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002572/0.2497, allocations: 111 kB / 331 MB, free: 13.79 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.804e-06/0.2497, allocations: 0 / 331 MB, free: 13.79 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.000449/0.2502, allocations: 218.2 kB / 331.2 MB, free: 13.67 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.2502, allocations: 59.22 kB / 331.3 MB, free: 13.61 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.2504, allocations: 156.5 kB / 331.4 MB, free: 13.46 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.2504, allocations: 34.17 kB / 331.5 MB, free: 13.42 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.81e-05/0.2505, allocations: 141.7 kB / 331.6 MB, free: 13.29 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.903e-05/0.2506, allocations: 55.77 kB / 331.6 MB, free: 13.24 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.273e-05/0.2506, allocations: 9.906 kB / 331.7 MB, free: 13.23 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.2507, allocations: 326 kB / 332 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.2508, allocations: 62.25 kB / 332 MB, free: 12.88 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/0.251, allocations: 126.3 kB / 332.2 MB, free: 12.77 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/0.2511, allocations: 78.47 kB / 332.2 MB, free: 12.73 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2512, allocations: 0.9375 kB / 332.2 MB, free: 12.73 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003858/0.2515, allocations: 237.4 kB / 332.5 MB, free: 12.61 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.2516, allocations: 5.469 kB / 332.5 MB, free: 12.61 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.2516, allocations: 6.125 kB / 332.5 MB, free: 12.6 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.2516, allocations: 3.656 kB / 332.5 MB, free: 12.6 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.2518, allocations: 31.2 kB / 332.5 MB, free: 12.59 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.2518, allocations: 7.344 kB / 332.5 MB, free: 12.59 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.727e-05/0.2519, allocations: 25.2 kB / 332.5 MB, free: 12.57 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.279e-05/0.2519, allocations: 14.11 kB / 332.6 MB, free: 12.57 MB / 270.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.0001604/0.2521, allocations: 154.3 kB / 332.7 MB, free: 12.42 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.003e-05/0.2521, allocations: 17.97 kB / 332.7 MB, free: 12.41 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003865/0.2525, allocations: 200.8 kB / 332.9 MB, free: 12.29 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.2525, allocations: 2.375 kB / 332.9 MB, free: 12.29 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.2525, allocations: 1.031 kB / 332.9 MB, free: 12.29 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.2526, allocations: 0 / 332.9 MB, free: 12.29 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008009/0.2534, allocations: 0.5792 MB / 333.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.2534, allocations: 1.25 kB / 333.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.067e-05/0.2535, allocations: 19.55 kB / 333.5 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.2535, allocations: 2.156 kB / 333.5 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.2535, allocations: 9.188 kB / 333.5 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-06/0.2535, allocations: 4.953 kB / 333.5 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2535, allocations: 0 / 333.5 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003412/0.2539, allocations: 279.9 kB / 333.8 MB, free: 11.58 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.159e-05/0.2539, allocations: 89.45 kB / 333.9 MB, free: 11.48 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.298e-05/0.254, allocations: 9.391 kB / 333.9 MB, free: 11.47 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.121e-05/0.2541, allocations: 9.844 kB / 333.9 MB, free: 11.46 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.184e-05/0.2542, allocations: 22.08 kB / 333.9 MB, free: 11.45 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.112e-05/0.2542, allocations: 13.45 kB / 334 MB, free: 11.45 MB / 270.1 MB Notification: Performance of sorting global known variables: time 5.742e-05/0.2542, allocations: 92.61 kB / 334 MB, free: 11.36 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2542, allocations: 0 / 334 MB, free: 11.36 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000303/0.2546, allocations: 50.94 kB / 334.1 MB, free: 11.35 MB / 270.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.0001654/0.2547, allocations: 111.6 kB / 334.2 MB, free: 11.24 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003605/0.2551, allocations: 178.4 kB / 334.4 MB, free: 11.17 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2551, allocations: 0 / 334.4 MB, free: 11.17 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.2552, allocations: 85.22 kB / 334.5 MB, free: 11.1 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.2555, allocations: 19.98 kB / 334.5 MB, free: 11.08 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006344/0.2562, allocations: 383.7 kB / 334.9 MB, free: 10.68 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002892/0.2565, allocations: 0.7328 MB / 335.6 MB, free: 9.926 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.272e-05/0.2566, allocations: 29.92 kB / 335.6 MB, free: 9.895 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.443e-05/0.2566, allocations: 19.44 kB / 335.6 MB, free: 9.879 MB / 270.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2567, allocations: 0 / 335.6 MB, free: 9.879 MB / 270.1 MB Notification: Performance of Templates: time 0.004482/0.2611, allocations: 1.664 MB / 337.3 MB, free: 8.219 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)