Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.007496/0.007496, allocations: 101.6 kB / 15.73 MB, free: 5.98 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.00135/0.00135, allocations: 190.5 kB / 16.67 MB, free: 5.918 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.621/1.621, allocations: 205.1 MB / 222.5 MB, free: 4.488 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.001184/0.001184, allocations: 54.14 kB / 326.5 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1316, allocations: 46.62 MB / 373.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003539/0.1352, allocations: 1.648 MB / 374.8 MB, free: 15.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007747/0.136, allocations: 255.2 kB / 375 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.1362, allocations: 7.938 kB / 375.1 MB, free: 15.42 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001703/0.1364, allocations: 31.73 kB / 375.1 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.442e-05/0.1364, allocations: 19.73 kB / 375.1 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004875/0.1369, allocations: 115.8 kB / 375.2 MB, free: 15.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003525/0.1373, allocations: 267.5 kB / 375.5 MB, free: 14.99 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003703/0.1377, allocations: 198.9 kB / 375.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.1378, allocations: 87.7 kB / 375.8 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.138, allocations: 103.5 kB / 375.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.15e-05/0.138, allocations: 24 kB / 375.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.69e-05/0.1381, allocations: 36 kB / 375.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.901e-05/0.1382, allocations: 59.77 kB / 376 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.1383, allocations: 111.4 kB / 376.1 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003601/0.1387, allocations: 251.2 kB / 376.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.1387, allocations: 3.938 kB / 376.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.1387, allocations: 0 / 376.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.1387, allocations: 0 / 376.3 MB, free: 14.13 MB / 318.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.0008549/0.1396, allocations: 485.9 kB / 376.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.349e-05/0.1397, allocations: 8.031 kB / 376.8 MB, free: 13.6 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.829e-05/0.1398, allocations: 28.75 kB / 376.8 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003759/0.1402, allocations: 235.9 kB / 377.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.969e-05/0.1402, allocations: 20.94 kB / 377.1 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.97e-05/0.1403, allocations: 28.38 kB / 377.1 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004861/0.1408, allocations: 270.6 kB / 377.4 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.1408, allocations: 192 / 377.4 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.156e-05/0.1408, allocations: 19.94 kB / 377.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.1408, allocations: 4 kB / 377.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003283/0.1412, allocations: 173.5 kB / 377.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.1424, allocations: 0.9516 MB / 378.5 MB, free: 11.76 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003467/0.1428, allocations: 166.6 kB / 378.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.1429, allocations: 72.92 kB / 378.8 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.646e-05/0.143, allocations: 4 kB / 378.8 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002533/0.1432, allocations: 127 kB / 378.9 MB, free: 11.37 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.174e-06/0.1433, allocations: 0 / 378.9 MB, free: 11.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005095/0.1438, allocations: 209.3 kB / 379.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.793e-05/0.1438, allocations: 59.39 kB / 379.2 MB, free: 11.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.144, allocations: 158.3 kB / 379.3 MB, free: 10.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.144, allocations: 37.7 kB / 379.3 MB, free: 10.88 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.1442, allocations: 136.5 kB / 379.5 MB, free: 10.74 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.47e-05/0.1442, allocations: 63.19 kB / 379.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.1443, allocations: 78.02 kB / 379.6 MB, free: 10.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001977/0.1445, allocations: 330.8 kB / 379.9 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.1447, allocations: 68.56 kB / 380 MB, free: 10.2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/0.1449, allocations: 137.8 kB / 380.1 MB, free: 10.03 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002668/0.1451, allocations: 188.4 kB / 380.3 MB, free: 9.816 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1452, allocations: 3.938 kB / 380.3 MB, free: 9.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004583/0.1456, allocations: 249.2 kB / 380.6 MB, free: 9.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.1456, allocations: 7.938 kB / 380.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.1457, allocations: 4 kB / 380.6 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.1457, allocations: 4.281 kB / 380.6 MB, free: 9.547 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.1458, allocations: 39.91 kB / 380.6 MB, free: 9.508 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.1458, allocations: 4 kB / 380.6 MB, free: 9.504 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.53e-05/0.1459, allocations: 27.75 kB / 380.7 MB, free: 9.477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.146, allocations: 16 kB / 380.7 MB, free: 9.461 MB / 318.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.localCondition,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.0001764/0.1462, allocations: 156.3 kB / 380.8 MB, free: 9.297 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.101e-05/0.1462, allocations: 7.906 kB / 380.8 MB, free: 9.289 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003483/0.1465, allocations: 202.5 kB / 381 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.1466, allocations: 8 kB / 381 MB, free: 9.074 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1466, allocations: 3.984 kB / 381 MB, free: 9.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1466, allocations: 0 / 381 MB, free: 9.07 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006932/0.1473, allocations: 0.5831 MB / 381.6 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1473, allocations: 0 / 381.6 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.062e-05/0.1474, allocations: 19.94 kB / 381.6 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.1474, allocations: 3.938 kB / 381.7 MB, free: 8.402 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.1474, allocations: 3.984 kB / 381.7 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1474, allocations: 7.938 kB / 381.7 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1474, allocations: 4 kB / 381.7 MB, free: 8.387 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003359/0.1478, allocations: 267.7 kB / 381.9 MB, free: 8.109 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.376e-05/0.1478, allocations: 100.8 kB / 382 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.701e-05/0.1479, allocations: 7.938 kB / 382 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.207e-05/0.148, allocations: 8 kB / 382 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.231e-05/0.1481, allocations: 19.97 kB / 382.1 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.1481, allocations: 8 kB / 382.1 MB, free: 7.949 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.674e-05/0.1482, allocations: 107.3 kB / 382.2 MB, free: 7.844 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1482, allocations: 0 / 382.2 MB, free: 7.844 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003061/0.1485, allocations: 55.83 kB / 382.2 MB, free: 7.789 MB / 318.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.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,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.0001718/0.1486, allocations: 111.3 kB / 382.3 MB, free: 7.672 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003488/0.149, allocations: 183.9 kB / 382.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.149, allocations: 0 / 382.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001382/0.1492, allocations: 88.41 kB / 382.6 MB, free: 7.406 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.1495, allocations: 27.98 kB / 382.6 MB, free: 7.379 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006135/0.1501, allocations: 335.7 kB / 383 MB, free: 7.027 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003135/0.1504, allocations: 0.7363 MB / 383.7 MB, free: 6.266 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.537e-05/0.1505, allocations: 21.95 kB / 383.7 MB, free: 6.242 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.717e-05/0.1506, allocations: 27.42 kB / 383.7 MB, free: 6.215 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1506, allocations: 4 kB / 383.7 MB, free: 6.211 MB / 318.1 MB Notification: Performance of Templates: time 0.005615/0.1562, allocations: 1.881 MB / 385.6 MB, free: 4.328 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)