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.005835/0.005835, allocations: 100.5 kB / 15.73 MB, free: 6.02 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.001269/0.00127, allocations: 189 kB / 16.67 MB, free: 5.938 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.663/1.663, allocations: 205.1 MB / 222.6 MB, free: 4.477 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.001361/0.001361, allocations: 49.33 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1221, allocations: 46.62 MB / 373.1 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00359/0.1258, allocations: 1.474 MB / 374.6 MB, free: 15.85 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009036/0.1267, allocations: 251.1 kB / 374.9 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001878/0.1269, allocations: 4 kB / 374.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001832/0.1272, allocations: 27.67 kB / 374.9 MB, free: 15.57 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.231e-05/0.1273, allocations: 15.8 kB / 374.9 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005287/0.1278, allocations: 107.8 kB / 375 MB, free: 15.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005236/0.1283, allocations: 259.5 kB / 375.3 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003768/0.1287, allocations: 162.4 kB / 375.4 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001205/0.1289, allocations: 83.77 kB / 375.5 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001665/0.129, allocations: 99.53 kB / 375.6 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.94e-05/0.1291, allocations: 24 kB / 375.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.474e-05/0.1292, allocations: 32 kB / 375.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.694e-05/0.1293, allocations: 55.81 kB / 375.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001294/0.1294, allocations: 103.5 kB / 375.8 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003633/0.1298, allocations: 239 kB / 376.1 MB, free: 14.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/0.1298, allocations: 0 / 376.1 MB, free: 14.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.1298, allocations: 3.938 kB / 376.1 MB, free: 14.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.1298, 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.0008918/0.1307, allocations: 486.3 kB / 376.5 MB, free: 13.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.1308, allocations: 11.97 kB / 376.5 MB, free: 13.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.188e-05/0.1309, allocations: 28.8 kB / 376.6 MB, free: 13.85 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003946/0.1313, allocations: 232.1 kB / 376.8 MB, free: 13.58 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.79e-05/0.1314, allocations: 24.94 kB / 376.8 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.08e-05/0.1314, allocations: 24.38 kB / 376.8 MB, free: 13.53 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005198/0.1319, allocations: 244 kB / 377.1 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.132, allocations: 192 / 377.1 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/0.132, allocations: 11.94 kB / 377.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.132, allocations: 8 kB / 377.1 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003291/0.1324, allocations: 161.7 kB / 377.3 MB, free: 13.1 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.1335, allocations: 0.6897 MB / 377.9 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000329/0.1339, allocations: 178.8 kB / 378.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.134, allocations: 80.83 kB / 378.2 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.115e-05/0.1341, allocations: 0 / 378.2 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002285/0.1343, allocations: 130.9 kB / 378.3 MB, free: 11.95 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.555e-06/0.1343, allocations: 0 / 378.3 MB, free: 11.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005397/0.1349, allocations: 221.4 kB / 378.5 MB, free: 11.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.016e-05/0.135, allocations: 55.41 kB / 378.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/0.1351, allocations: 146 kB / 378.7 MB, free: 11.51 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.649e-05/0.1352, allocations: 45.69 kB / 378.8 MB, free: 11.46 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.1353, allocations: 128.8 kB / 378.9 MB, free: 11.33 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.609e-05/0.1354, allocations: 67.47 kB / 379 MB, free: 11.26 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001467/0.1355, allocations: 82 kB / 379.1 MB, free: 11.17 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1357, allocations: 318.8 kB / 379.4 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001346/0.1358, allocations: 64.62 kB / 379.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.136, allocations: 136 kB / 379.6 MB, free: 10.63 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002565/0.1363, allocations: 170.8 kB / 379.7 MB, free: 10.44 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1363, allocations: 0 / 379.7 MB, free: 10.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003793/0.1367, allocations: 241.3 kB / 380 MB, free: 10.2 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.1367, allocations: 8 kB / 380 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.1367, allocations: 3.938 kB / 380 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.1367, allocations: 7.984 kB / 380 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.1369, allocations: 32.14 kB / 380 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.1369, allocations: 7.938 kB / 380 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.137, allocations: 23.84 kB / 380.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.077e-05/0.1371, allocations: 12 kB / 380.1 MB, free: 10.11 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.0001826/0.1372, allocations: 157.8 kB / 380.2 MB, free: 9.941 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.746e-05/0.1373, allocations: 15.84 kB / 380.2 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003743/0.1377, allocations: 202.3 kB / 380.4 MB, free: 9.723 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1377, allocations: 4 kB / 380.4 MB, free: 9.719 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.1377, allocations: 4 kB / 380.4 MB, free: 9.715 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.1377, allocations: 0 / 380.4 MB, free: 9.715 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007857/0.1385, allocations: 0.5606 MB / 381 MB, free: 9.098 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.1385, allocations: 0 / 381 MB, free: 9.098 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.16e-05/0.1386, allocations: 19.92 kB / 381 MB, free: 9.078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.1386, allocations: 0 / 381 MB, free: 9.078 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.832e-05/0.1386, allocations: 8 kB / 381 MB, free: 9.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1386, allocations: 0 / 381 MB, free: 9.07 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.1387, allocations: 3.938 kB / 381 MB, free: 9.066 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003382/0.139, allocations: 291.7 kB / 381.3 MB, free: 8.766 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.468e-05/0.1391, allocations: 93 kB / 381.4 MB, free: 8.656 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.1391, allocations: 4 kB / 381.4 MB, free: 8.652 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.763e-05/0.1392, allocations: 7.984 kB / 381.4 MB, free: 8.645 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.87e-05/0.1393, allocations: 27.91 kB / 381.4 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.1393, allocations: 8 kB / 381.5 MB, free: 8.609 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.959e-05/0.1394, allocations: 95.27 kB / 381.5 MB, free: 8.516 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1394, allocations: 4 kB / 381.5 MB, free: 8.512 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003145/0.1397, allocations: 47.89 kB / 381.6 MB, free: 8.465 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.0001983/0.1399, allocations: 111.4 kB / 381.7 MB, free: 8.348 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003764/0.1403, allocations: 191.7 kB / 381.9 MB, free: 8.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1403, allocations: 3.938 kB / 381.9 MB, free: 8.156 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001475/0.1405, allocations: 79.92 kB / 382 MB, free: 8.078 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003316/0.1408, allocations: 28.41 kB / 382 MB, free: 8.051 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007585/0.1416, allocations: 323.4 kB / 382.3 MB, free: 7.707 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004954/0.1421, allocations: 0.7321 MB / 383 MB, free: 6.949 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.468e-05/0.1422, allocations: 29.89 kB / 383.1 MB, free: 6.922 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.633e-05/0.1423, allocations: 31.42 kB / 383.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1423, allocations: 0 / 383.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of Templates: time 0.006251/0.1485, allocations: 1.9 MB / 385 MB, free: 4.988 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)