Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.009013/0.009013, allocations: 101.8 kB / 15.73 MB, free: 6.051 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.001922/0.001923, allocations: 188.4 kB / 16.67 MB, free: 5.98 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.702/1.702, 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.0012/0.0012, allocations: 46.78 kB / 326.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1149, allocations: 46.62 MB / 373.1 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002849/0.1178, allocations: 1.474 MB / 374.6 MB, free: 15.85 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006259/0.1185, allocations: 243.1 kB / 374.8 MB, free: 15.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.526e-05/0.1186, allocations: 7.938 kB / 374.9 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001219/0.1187, allocations: 19.73 kB / 374.9 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.088e-05/0.1188, allocations: 19.81 kB / 374.9 MB, free: 15.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003929/0.1192, allocations: 123.7 kB / 375 MB, free: 15.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002882/0.1195, allocations: 251.6 kB / 375.3 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002767/0.1198, allocations: 166.4 kB / 375.4 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.368e-05/0.1199, allocations: 87.75 kB / 375.5 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/0.12, allocations: 95.53 kB / 375.6 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.461e-05/0.1201, allocations: 23.94 kB / 375.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.018e-05/0.1202, allocations: 32 kB / 375.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.358e-05/0.1202, allocations: 55.83 kB / 375.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.1203, allocations: 95.52 kB / 375.8 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002795/0.1206, allocations: 239.1 kB / 376 MB, free: 14.42 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1206, allocations: 0 / 376 MB, free: 14.42 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1206, allocations: 4 kB / 376 MB, free: 14.42 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.1206, allocations: 0 / 376 MB, free: 14.42 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.000719/0.1214, allocations: 486.6 kB / 376.5 MB, free: 13.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.1214, allocations: 8.031 kB / 376.5 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.708e-05/0.1215, allocations: 28.64 kB / 376.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003287/0.1218, allocations: 224.1 kB / 376.8 MB, free: 13.6 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.476e-05/0.1219, allocations: 20.88 kB / 376.8 MB, free: 13.58 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.559e-05/0.1219, allocations: 32.36 kB / 376.8 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003918/0.1223, allocations: 240 kB / 377.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.1223, allocations: 4.172 kB / 377.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.607e-05/0.1224, allocations: 15.94 kB / 377.1 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.1224, allocations: 4 kB / 377.1 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002812/0.1227, allocations: 157.7 kB / 377.2 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009115/0.1236, allocations: 0.7089 MB / 377.9 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002823/0.1239, allocations: 162.8 kB / 378.1 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.124, allocations: 80.83 kB / 378.2 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.124, allocations: 4 kB / 378.2 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001876/0.1242, allocations: 131 kB / 378.3 MB, free: 11.96 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.853e-06/0.1242, allocations: 0 / 378.3 MB, free: 11.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004237/0.1247, allocations: 209.4 kB / 378.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.569e-05/0.1247, allocations: 59.34 kB / 378.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.1249, allocations: 153.9 kB / 378.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/0.1249, allocations: 33.7 kB / 378.8 MB, free: 11.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.845e-05/0.125, allocations: 136.6 kB / 378.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.554e-05/0.125, allocations: 55.27 kB / 378.9 MB, free: 11.29 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.242e-05/0.1251, allocations: 82 kB / 379 MB, free: 11.2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.1253, allocations: 322.8 kB / 379.3 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.1254, allocations: 64.62 kB / 379.4 MB, free: 10.81 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.1256, allocations: 128.1 kB / 379.5 MB, free: 10.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002198/0.1258, allocations: 170.7 kB / 379.7 MB, free: 10.47 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1258, allocations: 4 kB / 379.7 MB, free: 10.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003461/0.1261, allocations: 253.1 kB / 380 MB, free: 10.21 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.1262, allocations: 8 kB / 380 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.1262, allocations: 0 / 380 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.1262, allocations: 7.938 kB / 380 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.1264, allocations: 27.92 kB / 380 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.1264, allocations: 7.984 kB / 380 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.503e-05/0.1265, allocations: 31.69 kB / 380 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.057e-05/0.1265, allocations: 12.2 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.0002229/0.1267, allocations: 161.7 kB / 380.2 MB, free: 9.953 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.466e-05/0.1268, allocations: 15.84 kB / 380.2 MB, free: 9.938 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003568/0.1271, allocations: 206.2 kB / 380.4 MB, free: 9.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.1271, allocations: 0 / 380.4 MB, free: 9.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.1272, allocations: 4 kB / 380.4 MB, free: 9.727 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.1272, allocations: 0 / 380.4 MB, free: 9.727 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007113/0.1279, allocations: 0.5645 MB / 381 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1279, allocations: 0 / 381 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.47e-05/0.128, allocations: 19.98 kB / 381 MB, free: 9.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.128, allocations: 0 / 381 MB, free: 9.086 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.128, allocations: 0 / 381 MB, free: 9.086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.128, allocations: 4 kB / 381 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.128, allocations: 3.938 kB / 381 MB, free: 9.078 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002874/0.1283, allocations: 283.6 kB / 381.3 MB, free: 8.785 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.149e-05/0.1284, allocations: 88.95 kB / 381.4 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.492e-05/0.1284, allocations: 12 kB / 381.4 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.516e-05/0.1285, allocations: 11.98 kB / 381.4 MB, free: 8.656 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.128e-05/0.1286, allocations: 23.91 kB / 381.4 MB, free: 8.633 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.1286, allocations: 8 kB / 381.4 MB, free: 8.625 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.176e-05/0.1287, allocations: 91.27 kB / 381.5 MB, free: 8.535 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1287, allocations: 0 / 381.5 MB, free: 8.535 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002939/0.129, 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.0001487/0.1291, allocations: 115.4 kB / 381.7 MB, free: 8.363 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003348/0.1295, 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.934e-06/0.1295, allocations: 0 / 381.9 MB, free: 8.18 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00013/0.1296, 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.0002803/0.1299, allocations: 16 kB / 382 MB, free: 8.082 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005842/0.1305, allocations: 327.6 kB / 382.3 MB, free: 7.734 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003306/0.1308, allocations: 0.7442 MB / 383 MB, free: 6.965 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.705e-05/0.1309, allocations: 33.86 kB / 383.1 MB, free: 6.934 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.741e-05/0.131, allocations: 23.38 kB / 383.1 MB, free: 6.91 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.131, allocations: 4 kB / 383.1 MB, free: 6.906 MB / 318.1 MB Notification: Performance of Templates: time 0.004965/0.136, allocations: 1.885 MB / 385 MB, free: 5.02 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)