Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.008343/0.008343, allocations: 101.9 kB / 15.73 MB, free: 6.438 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.00171/0.00171, allocations: 194.3 kB / 16.67 MB, free: 6.355 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.679/1.679, allocations: 205.1 MB / 222.6 MB, free: 4.473 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.001272/0.001272, allocations: 54.16 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1234, allocations: 46.63 MB / 373.1 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002394/0.1258, allocations: 1.467 MB / 374.6 MB, free: 15.85 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006559/0.1265, allocations: 243.2 kB / 374.9 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.767e-05/0.1266, allocations: 8 kB / 374.9 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000129/0.1268, allocations: 23.69 kB / 374.9 MB, free: 15.58 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.565e-05/0.1268, allocations: 19.8 kB / 374.9 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003877/0.1272, allocations: 111.8 kB / 375 MB, free: 15.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002759/0.1275, allocations: 259.5 kB / 375.3 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002605/0.1278, allocations: 166.4 kB / 375.4 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.953e-05/0.1279, allocations: 87.75 kB / 375.5 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001239/0.128, allocations: 95.53 kB / 375.6 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.497e-05/0.128, allocations: 24 kB / 375.6 MB, free: 14.83 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.712e-05/0.1281, allocations: 31.98 kB / 375.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.874e-05/0.1282, allocations: 51.84 kB / 375.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.1283, allocations: 99.45 kB / 375.8 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002731/0.1286, allocations: 243.1 kB / 376 MB, free: 14.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.628e-06/0.1286, allocations: 0 / 376 MB, free: 14.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.1286, allocations: 3.938 kB / 376.1 MB, free: 14.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.782e-06/0.1286, allocations: 0 / 376.1 MB, free: 14.41 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006226/0.1293, allocations: 486.6 kB / 376.5 MB, free: 13.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.1293, allocations: 12.03 kB / 376.5 MB, free: 13.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.783e-05/0.1294, allocations: 24.66 kB / 376.6 MB, free: 13.85 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002719/0.1296, allocations: 224.1 kB / 376.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/0.1297, allocations: 24.94 kB / 376.8 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.697e-05/0.1297, allocations: 28.38 kB / 376.8 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004124/0.1301, allocations: 244 kB / 377.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.1302, allocations: 192 / 377.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.564e-05/0.1302, allocations: 11.94 kB / 377.1 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.1302, allocations: 4 kB / 377.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002818/0.1305, allocations: 161.7 kB / 377.2 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000939/0.1314, allocations: 0.705 MB / 377.9 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000289/0.1317, allocations: 166.8 kB / 378.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.1319, allocations: 80.83 kB / 378.2 MB, free: 12.1 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.1319, allocations: 4 kB / 378.2 MB, free: 12.1 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000182/0.1321, allocations: 131 kB / 378.3 MB, free: 11.96 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.944e-06/0.1321, allocations: 0 / 378.3 MB, free: 11.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004236/0.1325, allocations: 209.4 kB / 378.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.655e-05/0.1326, allocations: 59.41 kB / 378.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.1327, allocations: 146.2 kB / 378.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.705e-05/0.1327, allocations: 33.7 kB / 378.8 MB, free: 11.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.452e-05/0.1328, allocations: 136.6 kB / 378.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.595e-05/0.1329, allocations: 63.25 kB / 379 MB, free: 11.28 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.819e-05/0.133, allocations: 74.02 kB / 379 MB, free: 11.2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.1331, allocations: 326.8 kB / 379.3 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.1332, allocations: 60.62 kB / 379.4 MB, free: 10.81 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.1334, allocations: 132 kB / 379.5 MB, free: 10.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.1336, allocations: 174.7 kB / 379.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.1336, allocations: 8 kB / 379.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003548/0.134, allocations: 237.2 kB / 379.9 MB, free: 10.22 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.134, allocations: 5.094 kB / 380 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.134, allocations: 4 kB / 380 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.134, allocations: 7.938 kB / 380 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.1342, allocations: 31.92 kB / 380 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.1342, allocations: 7.938 kB / 380 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.36e-05/0.1343, allocations: 39.89 kB / 380 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.672e-05/0.1343, allocations: 8 kB / 380 MB, free: 10.12 MB / 318.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,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001313/0.1345, allocations: 153.8 kB / 380.2 MB, free: 9.957 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.243e-05/0.1345, allocations: 15.84 kB / 380.2 MB, free: 9.941 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003263/0.1348, allocations: 194.3 kB / 380.4 MB, free: 9.746 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.1348, allocations: 3.938 kB / 380.4 MB, free: 9.742 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1349, allocations: 0 / 380.4 MB, free: 9.742 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.1349, allocations: 7.984 kB / 380.4 MB, free: 9.734 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006519/0.1355, allocations: 0.5606 MB / 381 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1355, allocations: 0 / 381 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.81e-05/0.1356, allocations: 27.92 kB / 381 MB, free: 9.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1356, allocations: 0 / 381 MB, free: 9.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.1357, allocations: 0 / 381 MB, free: 9.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.1357, allocations: 4 kB / 381 MB, free: 9.086 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.1357, allocations: 3.938 kB / 381 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003093/0.136, allocations: 287.6 kB / 381.3 MB, free: 8.785 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.74e-05/0.136, allocations: 92.94 kB / 381.4 MB, free: 8.676 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.403e-05/0.1361, allocations: 8 kB / 381.4 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.505e-05/0.1362, allocations: 8 kB / 381.4 MB, free: 8.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.6e-05/0.1362, allocations: 23.91 kB / 381.4 MB, free: 8.637 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.1363, allocations: 4 kB / 381.4 MB, free: 8.633 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.112e-05/0.1363, allocations: 99.39 kB / 381.5 MB, free: 8.535 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1363, allocations: 0 / 381.5 MB, free: 8.535 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002976/0.1366, allocations: 51.84 kB / 381.6 MB, free: 8.484 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 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,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 (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.0001444/0.1368, allocations: 115.4 kB / 381.7 MB, free: 8.363 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003219/0.1371, allocations: 187.7 kB / 381.9 MB, free: 8.18 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1371, allocations: 0 / 381.9 MB, free: 8.18 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001285/0.1373, allocations: 83.91 kB / 382 MB, free: 8.098 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.1375, allocations: 23.98 kB / 382 MB, free: 8.074 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005553/0.1381, allocations: 332.1 kB / 382.3 MB, free: 7.723 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002896/0.1384, allocations: 0.7321 MB / 383 MB, free: 6.965 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.984e-05/0.1385, allocations: 25.94 kB / 383.1 MB, free: 6.941 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.331e-05/0.1386, allocations: 23.38 kB / 383.1 MB, free: 6.918 MB / 318.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1386, allocations: 0 / 383.1 MB, free: 6.918 MB / 318.1 MB Notification: Performance of Templates: time 0.0055/0.1441, allocations: 1.9 MB / 385 MB, free: 5.016 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)