Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001027/0.001027, allocations: 90.8 kB / 16.65 MB, free: 6.535 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.001053/0.001053, allocations: 176.5 kB / 17.56 MB, free: 6.18 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.918/1.918, allocations: 205.4 MB / 223.7 MB, free: 13.06 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.0005655/0.0005656, allocations: 12.94 kB / 280.7 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1235, allocations: 47.58 MB / 328.3 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001989/0.1256, allocations: 1.219 MB / 329.5 MB, free: 2.543 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006804/0.1263, allocations: 259.2 kB / 329.8 MB, free: 2.289 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.878e-05/0.1264, allocations: 0 / 329.8 MB, free: 2.289 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001161/0.1265, allocations: 19.8 kB / 329.8 MB, free: 2.27 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.004e-05/0.1266, allocations: 11.92 kB / 329.8 MB, free: 2.258 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003676/0.1269, allocations: 95.91 kB / 329.9 MB, free: 2.164 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003283/0.1273, allocations: 243.5 kB / 330.1 MB, free: 1.926 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000292/0.1276, allocations: 150.2 kB / 330.3 MB, free: 1.773 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.73e-05/0.1277, allocations: 67.72 kB / 330.3 MB, free: 1.707 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.1278, allocations: 75.59 kB / 330.4 MB, free: 1.633 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.696e-05/0.1279, allocations: 15.94 kB / 330.4 MB, free: 1.617 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.274e-05/0.1279, allocations: 20 kB / 330.5 MB, free: 1.598 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.035e-05/0.128, allocations: 39.83 kB / 330.5 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.718e-05/0.1281, allocations: 105.2 kB / 330.6 MB, free: 1.449 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002427/0.1284, allocations: 195.3 kB / 330.8 MB, free: 1.258 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1284, allocations: 0 / 330.8 MB, free: 1.258 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1284, allocations: 0 / 330.8 MB, free: 1.258 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1284, allocations: 0 / 330.8 MB, free: 1.258 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.0006764/0.1291, allocations: 446.9 kB / 331.2 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.1291, allocations: 8.031 kB / 331.2 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.81e-05/0.1292, allocations: 24.66 kB / 331.3 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002524/0.1294, allocations: 232 kB / 331.5 MB, free: 484 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.136e-05/0.1295, allocations: 24.88 kB / 331.5 MB, free: 460 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.886e-05/0.1295, allocations: 24.38 kB / 331.5 MB, free: 436 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004279/0.13, allocations: 244 kB / 331.8 MB, free: 176 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.13, allocations: 192 / 331.8 MB, free: 176 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.641e-05/0.13, allocations: 15.94 kB / 331.8 MB, free: 160 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.13, allocations: 8 kB / 331.8 MB, free: 152 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003006/0.1304, allocations: 161.6 kB / 332 MB, free: 15.99 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009822/0.1313, allocations: 0.7051 MB / 332.7 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000292/0.1316, allocations: 174.7 kB / 332.8 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.1318, allocations: 76.83 kB / 332.9 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.315e-05/0.1318, allocations: 4 kB / 332.9 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002247/0.132, allocations: 123.3 kB / 333 MB, free: 14.84 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.1321, allocations: 0 / 333 MB, free: 14.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.000425/0.1325, allocations: 218 kB / 333.2 MB, free: 14.62 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.969e-05/0.1325, allocations: 59.39 kB / 333.3 MB, free: 14.55 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.1327, allocations: 141.8 kB / 333.4 MB, free: 14.4 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.277e-05/0.1327, allocations: 41.69 kB / 333.5 MB, free: 14.35 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.288e-05/0.1328, allocations: 128.6 kB / 333.6 MB, free: 14.22 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.631e-05/0.1328, allocations: 67.19 kB / 333.7 MB, free: 14.16 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.862e-05/0.1329, allocations: 49.69 kB / 333.7 MB, free: 14.1 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.133, allocations: 322.8 kB / 334 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.1332, allocations: 64.62 kB / 334.1 MB, free: 13.71 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.1333, allocations: 128.1 kB / 334.2 MB, free: 13.56 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002319/0.1336, allocations: 178.6 kB / 334.4 MB, free: 13.36 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.1336, allocations: 0 / 334.4 MB, free: 13.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003733/0.134, allocations: 253.2 kB / 334.6 MB, free: 13.11 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.134, allocations: 8 kB / 334.7 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.134, allocations: 3.938 kB / 334.7 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.134, allocations: 4 kB / 334.7 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.1341, allocations: 27.92 kB / 334.7 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.1342, allocations: 4 kB / 334.7 MB, free: 13.06 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.995e-05/0.1343, allocations: 39.89 kB / 334.7 MB, free: 13.02 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.796e-05/0.1343, allocations: 12 kB / 334.7 MB, free: 13.01 MB / 286.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.0001529/0.1345, allocations: 149.8 kB / 334.9 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.269e-05/0.1345, allocations: 15.83 kB / 334.9 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003394/0.1348, allocations: 194.3 kB / 335.1 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.1349, allocations: 4 kB / 335.1 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1349, allocations: 0 / 335.1 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.1349, allocations: 3.938 kB / 335.1 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007105/0.1356, allocations: 0.5763 MB / 335.7 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1356, allocations: 4 kB / 335.7 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.239e-05/0.1357, allocations: 15.98 kB / 335.7 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1357, allocations: 0 / 335.7 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.1357, allocations: 4 kB / 335.7 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.728e-06/0.1357, allocations: 4 kB / 335.7 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.812e-06/0.1357, allocations: 11.88 kB / 335.7 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003059/0.136, allocations: 275.2 kB / 336 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.24e-05/0.1361, allocations: 92.86 kB / 336.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.791e-05/0.1361, allocations: 11.98 kB / 336.1 MB, free: 11.56 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.692e-05/0.1362, allocations: 4 kB / 336.1 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.124e-05/0.1363, allocations: 27.91 kB / 336.1 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.1363, allocations: 8 kB / 336.1 MB, free: 11.52 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.087e-05/0.1364, allocations: 99.27 kB / 336.2 MB, free: 11.42 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1364, allocations: 0 / 336.2 MB, free: 11.42 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002983/0.1367, allocations: 47.84 kB / 336.3 MB, free: 11.38 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 (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 (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.0002145/0.1369, allocations: 119.1 kB / 336.4 MB, free: 11.25 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003495/0.1373, allocations: 179.8 kB / 336.6 MB, free: 11.07 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.1373, allocations: 448 / 336.6 MB, free: 11.07 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001292/0.1375, allocations: 84.34 kB / 336.6 MB, free: 10.99 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002941/0.1378, allocations: 23.98 kB / 336.7 MB, free: 10.96 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005993/0.1384, allocations: 391.4 kB / 337 MB, free: 10.56 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000304/0.1387, allocations: 0.7326 MB / 337.8 MB, free: 9.801 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.705e-05/0.1388, allocations: 25.88 kB / 337.8 MB, free: 9.773 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.468e-05/0.1388, allocations: 27.31 kB / 337.8 MB, free: 9.75 MB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1388, allocations: 0 / 337.8 MB, free: 9.75 MB / 286.1 MB Notification: Performance of Templates: time 0.004893/0.1437, allocations: 1.721 MB / 339.6 MB, free: 8.035 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)