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.001202/0.001202, allocations: 105.6 kB / 16.5 MB, free: 6.645 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.001278/0.001278, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.546/1.546, allocations: 205.1 MB / 223.3 MB, free: 12.47 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.001338/0.001338, allocations: 52.39 kB / 279.3 MB, free: 3.609 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1233, allocations: 46.64 MB / 326 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.004664/0.1281, allocations: 1.772 MB / 327.7 MB, free: 3.109 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.1292, allocations: 275 kB / 328 MB, free: 2.84 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002082/0.1294, allocations: 4 kB / 328 MB, free: 2.836 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001932/0.1297, allocations: 15.81 kB / 328 MB, free: 2.82 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.645e-05/0.1298, allocations: 15.92 kB / 328 MB, free: 2.805 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000536/0.1303, allocations: 95.91 kB / 328.1 MB, free: 2.711 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004153/0.1308, allocations: 251.5 kB / 328.4 MB, free: 2.465 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003765/0.1311, allocations: 177.8 kB / 328.5 MB, free: 2.297 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.1313, allocations: 87.69 kB / 328.6 MB, free: 2.211 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001596/0.1315, allocations: 87.61 kB / 328.7 MB, free: 2.125 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.316e-05/0.1315, allocations: 16 kB / 328.7 MB, free: 2.109 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.297e-05/0.1316, allocations: 20 kB / 328.7 MB, free: 2.09 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.001e-05/0.1317, allocations: 55.81 kB / 328.8 MB, free: 2.035 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.1318, allocations: 91.47 kB / 328.9 MB, free: 1.945 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003479/0.1322, allocations: 223.5 kB / 329.1 MB, free: 1.727 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.1322, allocations: 0 / 329.1 MB, free: 1.727 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1322, allocations: 0 / 329.1 MB, free: 1.727 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.916e-05/0.1322, allocations: 0 / 329.1 MB, free: 1.727 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.0008981/0.1331, allocations: 494 kB / 329.6 MB, free: 1.184 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.1332, allocations: 12.03 kB / 329.6 MB, free: 1.172 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.793e-05/0.1333, allocations: 24.66 kB / 329.6 MB, free: 1.148 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.1336, allocations: 224.1 kB / 329.8 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.747e-05/0.1336, allocations: 24.94 kB / 329.9 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.438e-05/0.1337, allocations: 24.38 kB / 329.9 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000484/0.1342, allocations: 278.5 kB / 330.2 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.1342, allocations: 4.188 kB / 330.2 MB, free: 0.543 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.346e-05/0.1342, allocations: 11.92 kB / 330.2 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.1343, allocations: 8 kB / 330.2 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003329/0.1346, allocations: 165.5 kB / 330.4 MB, free: 372 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.136, allocations: 0.9672 MB / 331.3 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003273/0.1363, allocations: 162.8 kB / 331.5 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.1365, allocations: 80.7 kB / 331.6 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.1365, allocations: 0 / 331.6 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002923/0.1368, allocations: 107.4 kB / 331.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.433e-06/0.1368, allocations: 0 / 331.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004632/0.1373, allocations: 221.2 kB / 331.9 MB, free: 14.74 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/0.1374, allocations: 59.41 kB / 331.9 MB, free: 14.67 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/0.1375, allocations: 153.6 kB / 332.1 MB, free: 14.51 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.377e-05/0.1375, allocations: 33.7 kB / 332.1 MB, free: 14.47 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.1377, allocations: 144.5 kB / 332.3 MB, free: 14.32 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.168e-05/0.1377, allocations: 55.2 kB / 332.3 MB, free: 14.27 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.1378, allocations: 82 kB / 332.4 MB, free: 14.18 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1379, allocations: 334.8 kB / 332.7 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.1381, allocations: 60.62 kB / 332.8 MB, free: 13.79 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.1382, allocations: 141.7 kB / 332.9 MB, free: 13.62 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002632/0.1385, allocations: 188.3 kB / 333.1 MB, free: 13.41 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.1385, allocations: 8 kB / 333.1 MB, free: 13.4 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004008/0.1389, allocations: 245.2 kB / 333.4 MB, free: 13.15 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.139, allocations: 8 kB / 333.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.139, allocations: 0 / 333.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.139, allocations: 4 kB / 333.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.1392, allocations: 35.92 kB / 333.4 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.1392, allocations: 8.219 kB / 333.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.1393, allocations: 35.67 kB / 333.4 MB, free: 13.06 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.304e-05/0.1393, allocations: 12 kB / 333.5 MB, free: 13.05 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.0001564/0.1395, allocations: 156.3 kB / 333.6 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.018e-05/0.1395, allocations: 19.8 kB / 333.6 MB, free: 12.87 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003576/0.1399, allocations: 182.4 kB / 333.8 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.1399, allocations: 7.938 kB / 333.8 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.1399, allocations: 0 / 333.8 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.14, allocations: 4 kB / 333.8 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008126/0.1408, allocations: 0.5948 MB / 334.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1408, allocations: 0 / 334.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.93e-05/0.1409, allocations: 19.92 kB / 334.4 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.1409, allocations: 3.938 kB / 334.4 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.1409, allocations: 8 kB / 334.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1409, allocations: 0 / 334.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1409, allocations: 0 / 334.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003265/0.1413, allocations: 275.3 kB / 334.7 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.257e-05/0.1413, allocations: 100.8 kB / 334.8 MB, free: 11.58 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.906e-05/0.1414, allocations: 4 kB / 334.8 MB, free: 11.58 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.653e-05/0.1415, allocations: 11.98 kB / 334.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.104e-05/0.1416, allocations: 19.91 kB / 334.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.1416, allocations: 12 kB / 334.9 MB, free: 11.54 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.57e-05/0.1417, allocations: 96.53 kB / 334.9 MB, free: 11.44 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1417, allocations: 4 kB / 335 MB, free: 11.44 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003191/0.142, allocations: 47.84 kB / 335 MB, free: 11.39 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.0001723/0.1422, allocations: 107.2 kB / 335.1 MB, free: 11.28 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003722/0.1426, allocations: 191.7 kB / 335.3 MB, free: 11.09 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1426, allocations: 0 / 335.3 MB, free: 11.09 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.1427, allocations: 76.48 kB / 335.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003195/0.1431, allocations: 23.98 kB / 335.4 MB, free: 10.99 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007965/0.1439, allocations: 414.5 kB / 335.8 MB, free: 10.56 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004596/0.1443, allocations: 0.7365 MB / 336.5 MB, free: 9.797 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001031/0.1444, allocations: 25.94 kB / 336.6 MB, free: 9.773 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.769e-05/0.1445, allocations: 23.44 kB / 336.6 MB, free: 9.75 MB / 286.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1445, allocations: 0 / 336.6 MB, free: 9.75 MB / 286.1 MB Notification: Performance of Templates: time 0.005525/0.1501, allocations: 1.724 MB / 338.3 MB, free: 8.031 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)