Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.01057/0.01058, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001404/0.001404, allocations: 201.9 kB / 16.68 MB, free: 5.969 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.625/1.625, allocations: 205.1 MB / 222.6 MB, free: 4.551 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.001289/0.001289, allocations: 49.31 kB / 326.5 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1291, allocations: 46.62 MB / 373.1 MB, free: 1.355 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003469/0.1326, allocations: 1.68 MB / 374.8 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007804/0.1334, allocations: 267.2 kB / 375.1 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.1336, allocations: 4 kB / 375.1 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.1338, allocations: 31.67 kB / 375.1 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.046e-05/0.1339, allocations: 11.81 kB / 375.1 MB, free: 15.35 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004781/0.1344, allocations: 115.8 kB / 375.2 MB, free: 15.24 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003508/0.1347, allocations: 259.6 kB / 375.5 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003757/0.1351, allocations: 185.5 kB / 375.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.1352, allocations: 91.64 kB / 375.8 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001518/0.1354, allocations: 103.5 kB / 375.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.592e-05/0.1355, allocations: 24 kB / 375.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.974e-05/0.1355, allocations: 32 kB / 375.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.407e-05/0.1356, allocations: 63.81 kB / 376 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.1358, allocations: 95.47 kB / 376.1 MB, free: 14.4 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003863/0.1361, allocations: 251 kB / 376.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.1362, allocations: 0 / 376.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1362, allocations: 0 / 376.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.1362, allocations: 0 / 376.3 MB, free: 14.15 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.0009162/0.1371, allocations: 0.4901 MB / 376.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.919e-05/0.1372, allocations: 15.95 kB / 376.8 MB, free: 13.6 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.947e-05/0.1373, allocations: 24.8 kB / 376.9 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004255/0.1377, allocations: 224.1 kB / 377.1 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.791e-05/0.1378, allocations: 24.92 kB / 377.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.073e-05/0.1378, allocations: 28.38 kB / 377.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005034/0.1383, allocations: 274.5 kB / 377.4 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.1383, allocations: 192 / 377.4 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.13e-05/0.1384, allocations: 15.94 kB / 377.4 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.1384, allocations: 7.984 kB / 377.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003163/0.1387, allocations: 165.6 kB / 377.6 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.1399, allocations: 0.9596 MB / 378.5 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003688/0.1402, allocations: 162.7 kB / 378.7 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.1404, allocations: 68.84 kB / 378.8 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.1404, allocations: 8 kB / 378.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002/0.1406, allocations: 123.1 kB / 378.9 MB, free: 11.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.723e-06/0.1406, allocations: 0 / 378.9 MB, free: 11.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004255/0.141, allocations: 213.3 kB / 379.1 MB, free: 11.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/0.1411, allocations: 55.41 kB / 379.2 MB, free: 11.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.1413, allocations: 157.7 kB / 379.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.372e-05/0.1413, allocations: 37.7 kB / 379.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.1414, allocations: 152.7 kB / 379.5 MB, free: 10.74 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.264e-05/0.1415, allocations: 55.59 kB / 379.6 MB, free: 10.69 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.1416, allocations: 77.97 kB / 379.6 MB, free: 10.6 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1418, allocations: 330.8 kB / 379.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.1419, allocations: 68.56 kB / 380 MB, free: 10.2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001999/0.1421, allocations: 141.8 kB / 380.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003052/0.1424, allocations: 188.4 kB / 380.3 MB, free: 9.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.1424, allocations: 0 / 380.3 MB, free: 9.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004423/0.1429, allocations: 249.3 kB / 380.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.1429, allocations: 5.375 kB / 380.6 MB, free: 9.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/0.1429, allocations: 11.98 kB / 380.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.276e-05/0.143, allocations: 11.92 kB / 380.6 MB, free: 9.543 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001826/0.1432, allocations: 27.92 kB / 380.6 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.1432, allocations: 7.938 kB / 380.6 MB, free: 9.508 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.1433, allocations: 35.78 kB / 380.7 MB, free: 9.473 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.77e-05/0.1434, allocations: 12 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.000214/0.1436, allocations: 160.3 kB / 380.8 MB, free: 9.293 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.52e-05/0.1436, allocations: 11.95 kB / 380.9 MB, free: 9.281 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004081/0.144, allocations: 202.3 kB / 381.1 MB, free: 9.078 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.1441, allocations: 4 kB / 381.1 MB, free: 9.074 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.1441, allocations: 0 / 381.1 MB, free: 9.074 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.1441, allocations: 0 / 381.1 MB, free: 9.074 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009585/0.1451, allocations: 0.5909 MB / 381.7 MB, free: 8.422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1451, allocations: 0 / 381.7 MB, free: 8.422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.301e-05/0.1452, allocations: 11.94 kB / 381.7 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.005e-05/0.1452, allocations: 7.938 kB / 381.7 MB, free: 8.402 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.1452, allocations: 11.98 kB / 381.7 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.1452, allocations: 0 / 381.7 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.431e-06/0.1452, allocations: 4 kB / 381.7 MB, free: 8.387 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003745/0.1456, allocations: 267.8 kB / 381.9 MB, free: 8.109 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.27e-05/0.1457, allocations: 92.95 kB / 382 MB, free: 8 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.367e-05/0.1458, allocations: 11.94 kB / 382.1 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.465e-05/0.1459, allocations: 4 kB / 382.1 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.977e-05/0.1459, allocations: 19.97 kB / 382.1 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.146, allocations: 8 kB / 382.1 MB, free: 7.957 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.295e-05/0.1461, allocations: 103.2 kB / 382.2 MB, free: 7.855 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1461, allocations: 0 / 382.2 MB, free: 7.855 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003567/0.1464, allocations: 51.89 kB / 382.2 MB, free: 7.805 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,transition1.enableFire,step.active,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.0001974/0.1466, allocations: 103.5 kB / 382.3 MB, free: 7.695 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000364/0.147, allocations: 192.2 kB / 382.5 MB, free: 7.508 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/0.147, allocations: 8.125 kB / 382.5 MB, free: 7.5 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.1472, allocations: 79.91 kB / 382.6 MB, free: 7.422 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.1475, allocations: 23.98 kB / 382.6 MB, free: 7.398 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000763/0.1483, allocations: 335.3 kB / 383 MB, free: 7.047 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003812/0.1487, allocations: 0.7363 MB / 383.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.185e-05/0.1488, allocations: 21.95 kB / 383.7 MB, free: 6.262 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.513e-05/0.1488, allocations: 27.42 kB / 383.7 MB, free: 6.234 MB / 318.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1488, allocations: 3.938 kB / 383.7 MB, free: 6.23 MB / 318.1 MB Notification: Performance of Templates: time 0.006306/0.1551, allocations: 1.87 MB / 385.6 MB, free: 4.359 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)