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.01419/0.01419, allocations: 101 kB / 15.73 MB, free: 5.992 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.003015/0.003015, allocations: 194.1 kB / 16.67 MB, free: 5.93 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.992/1.992, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.00119/0.00119, allocations: 50.52 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1163, allocations: 46.63 MB / 373.2 MB, free: 1.352 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002877/0.1192, allocations: 1.467 MB / 374.6 MB, free: 15.87 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007143/0.12, allocations: 243.2 kB / 374.9 MB, free: 15.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.1201, allocations: 4 kB / 374.9 MB, free: 15.63 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.1203, allocations: 27.67 kB / 374.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.615e-05/0.1203, allocations: 15.81 kB / 374.9 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005387/0.1209, allocations: 111.9 kB / 375 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003554/0.1212, allocations: 263.5 kB / 375.3 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003105/0.1216, allocations: 166.4 kB / 375.4 MB, free: 15.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.874e-05/0.1217, allocations: 87.7 kB / 375.5 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.1218, allocations: 99.52 kB / 375.6 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.884e-05/0.1219, allocations: 24 kB / 375.6 MB, free: 14.85 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.814e-05/0.122, allocations: 28 kB / 375.7 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.95e-05/0.122, allocations: 51.91 kB / 375.7 MB, free: 14.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.941e-05/0.1222, allocations: 103.4 kB / 375.8 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003012/0.1225, allocations: 239.1 kB / 376 MB, free: 14.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1225, allocations: 3.938 kB / 376.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1225, allocations: 4 kB / 376.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.994e-06/0.1225, allocations: 0 / 376.1 MB, free: 14.43 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.0006991/0.1232, allocations: 478.6 kB / 376.5 MB, free: 13.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.1232, allocations: 12.03 kB / 376.5 MB, free: 13.9 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.799e-05/0.1233, allocations: 24.66 kB / 376.6 MB, free: 13.88 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003029/0.1236, allocations: 224.1 kB / 376.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.703e-05/0.1237, allocations: 24.88 kB / 376.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.869e-05/0.1237, allocations: 28.38 kB / 376.8 MB, free: 13.56 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004102/0.1241, allocations: 244 kB / 377.1 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.1242, allocations: 192 / 377.1 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.821e-05/0.1242, allocations: 15.94 kB / 377.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.1242, allocations: 4 kB / 377.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002841/0.1245, allocations: 157.7 kB / 377.2 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009826/0.1255, allocations: 0.705 MB / 377.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003227/0.1258, allocations: 170.8 kB / 378.1 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.1259, allocations: 80.83 kB / 378.2 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.126, allocations: 0 / 378.2 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002209/0.1262, allocations: 130.9 kB / 378.3 MB, free: 11.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.1262, allocations: 0 / 378.3 MB, free: 11.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004344/0.1267, allocations: 213.4 kB / 378.5 MB, free: 11.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/0.1267, allocations: 59.39 kB / 378.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.1268, allocations: 145.9 kB / 378.7 MB, free: 11.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.284e-05/0.1269, allocations: 33.7 kB / 378.8 MB, free: 11.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.127, allocations: 140.5 kB / 378.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.974e-05/0.127, allocations: 51.27 kB / 378.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.652e-05/0.1271, allocations: 82.02 kB / 379 MB, free: 11.22 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.1273, allocations: 326.8 kB / 379.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.1274, allocations: 60.62 kB / 379.4 MB, free: 10.83 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.1276, allocations: 132 kB / 379.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002276/0.1278, allocations: 170.8 kB / 379.7 MB, free: 10.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1278, allocations: 0 / 379.7 MB, free: 10.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000433/0.1283, allocations: 249.2 kB / 379.9 MB, free: 10.24 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.1283, allocations: 4 kB / 380 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.1283, allocations: 4 kB / 380 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.1283, allocations: 7.938 kB / 380 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.1284, allocations: 31.86 kB / 380 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.1285, allocations: 7.922 kB / 380 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.727e-05/0.1286, allocations: 31.69 kB / 380 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.912e-05/0.1286, allocations: 12.22 kB / 380 MB, free: 10.14 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.0001753/0.1288, allocations: 157.8 kB / 380.2 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.661e-05/0.1288, allocations: 15.83 kB / 380.2 MB, free: 9.961 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003739/0.1292, allocations: 198.3 kB / 380.4 MB, free: 9.762 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.1292, allocations: 4 kB / 380.4 MB, free: 9.758 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1292, allocations: 0 / 380.4 MB, free: 9.758 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.1292, allocations: 3.984 kB / 380.4 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006803/0.1299, allocations: 0.5645 MB / 381 MB, free: 9.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1299, allocations: 0 / 381 MB, free: 9.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.45e-05/0.13, allocations: 15.94 kB / 381 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.13, allocations: 4 kB / 381 MB, free: 9.113 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.13, allocations: 7.984 kB / 381 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1301, allocations: 0 / 381 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.1301, allocations: 7.938 kB / 381 MB, free: 9.098 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003045/0.1304, allocations: 283.6 kB / 381.3 MB, free: 8.805 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/0.1304, allocations: 92.95 kB / 381.4 MB, free: 8.695 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.563e-05/0.1305, allocations: 8 kB / 381.4 MB, free: 8.688 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.529e-05/0.1305, allocations: 4 kB / 381.4 MB, free: 8.684 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.666e-05/0.1306, allocations: 23.91 kB / 381.4 MB, free: 8.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.1306, allocations: 11.98 kB / 381.4 MB, free: 8.648 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.903e-05/0.1307, allocations: 99.77 kB / 381.5 MB, free: 8.551 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1307, allocations: 0 / 381.5 MB, free: 8.551 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002869/0.131, allocations: 47.84 kB / 381.6 MB, free: 8.504 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.0001439/0.1312, allocations: 111.5 kB / 381.7 MB, free: 8.387 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003172/0.1315, allocations: 191.7 kB / 381.9 MB, free: 8.199 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1315, allocations: 0 / 381.9 MB, free: 8.199 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001312/0.1316, allocations: 83.91 kB / 382 MB, free: 8.117 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002734/0.1319, allocations: 19.98 kB / 382 MB, free: 8.098 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000572/0.1325, allocations: 323.6 kB / 382.3 MB, free: 7.754 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003399/0.1328, allocations: 0.7404 MB / 383 MB, free: 6.988 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.579e-05/0.1329, allocations: 25.94 kB / 383.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.591e-05/0.133, allocations: 23.44 kB / 383.1 MB, free: 6.941 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.133, allocations: 7.875 kB / 383.1 MB, free: 6.934 MB / 318.1 MB Notification: Performance of Templates: time 0.004826/0.1379, allocations: 1.896 MB / 385 MB, free: 5.035 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)