Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01358/0.01358, allocations: 100 kB / 15.73 MB, free: 5.965 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.002995/0.002995, allocations: 198.7 kB / 16.68 MB, free: 5.887 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.851/1.851, allocations: 205.1 MB / 222.5 MB, free: 4.504 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.001389/0.001389, allocations: 57.48 kB / 326.5 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1177, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002843/0.1206, allocations: 1.648 MB / 374.8 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006276/0.1212, allocations: 255.2 kB / 375 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.771e-05/0.1213, allocations: 7.938 kB / 375.1 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.1215, allocations: 23.73 kB / 375.1 MB, free: 15.38 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.017e-05/0.1215, allocations: 19.75 kB / 375.1 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003912/0.1219, allocations: 123.8 kB / 375.2 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003017/0.1222, allocations: 263.5 kB / 375.5 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000285/0.1225, allocations: 202.9 kB / 375.7 MB, free: 14.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.1227, allocations: 87.72 kB / 375.8 MB, free: 14.69 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001299/0.1228, allocations: 103.5 kB / 375.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.651e-05/0.1228, allocations: 24 kB / 375.9 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.315e-05/0.1229, allocations: 32 kB / 375.9 MB, free: 14.53 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.958e-05/0.123, allocations: 59.77 kB / 376 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.54e-05/0.1231, allocations: 103.5 kB / 376.1 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002729/0.1234, allocations: 243.2 kB / 376.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.1234, allocations: 7.922 kB / 376.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.1234, allocations: 7.938 kB / 376.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.1234, allocations: 0 / 376.3 MB, free: 14.12 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006398/0.1241, allocations: 489.9 kB / 376.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.1241, allocations: 12.03 kB / 376.8 MB, free: 13.58 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.09e-05/0.1242, allocations: 20.75 kB / 376.8 MB, free: 13.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003018/0.1245, allocations: 239.9 kB / 377.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.449e-05/0.1245, allocations: 24.94 kB / 377.1 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.226e-05/0.1246, allocations: 28.38 kB / 377.1 MB, free: 13.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005106/0.1251, allocations: 274.6 kB / 377.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.1251, allocations: 192 / 377.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.997e-05/0.1252, allocations: 15.94 kB / 377.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.1252, allocations: 7.938 kB / 377.4 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002917/0.1255, allocations: 165.6 kB / 377.6 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001088/0.1266, allocations: 0.9594 MB / 378.5 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002719/0.1268, allocations: 162.7 kB / 378.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.127, allocations: 80.83 kB / 378.8 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.127, allocations: 0 / 378.8 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001838/0.1272, allocations: 127 kB / 378.9 MB, free: 11.35 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.363e-06/0.1272, allocations: 0 / 378.9 MB, free: 11.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004284/0.1276, allocations: 209.3 kB / 379.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/0.1277, allocations: 55.41 kB / 379.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.1278, allocations: 157.8 kB / 379.3 MB, free: 10.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.211e-05/0.1279, allocations: 41.69 kB / 379.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.899e-05/0.128, allocations: 136.5 kB / 379.5 MB, free: 10.72 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.981e-05/0.128, allocations: 63.19 kB / 379.5 MB, free: 10.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.1281, allocations: 82 kB / 379.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.1283, allocations: 326.8 kB / 379.9 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.1285, allocations: 64.56 kB / 380 MB, free: 10.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001604/0.1286, allocations: 145.8 kB / 380.2 MB, free: 10 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002435/0.1289, allocations: 188.4 kB / 380.3 MB, free: 9.789 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1289, allocations: 4 kB / 380.3 MB, free: 9.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003642/0.1293, allocations: 257.4 kB / 380.6 MB, free: 9.527 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.1293, allocations: 9.031 kB / 380.6 MB, free: 9.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.1293, allocations: 4 kB / 380.6 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.1293, allocations: 4 kB / 380.6 MB, free: 9.512 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.1295, allocations: 31.92 kB / 380.6 MB, free: 9.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.1295, allocations: 7.984 kB / 380.6 MB, free: 9.473 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.745e-05/0.1296, allocations: 23.75 kB / 380.7 MB, free: 9.449 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.543e-05/0.1296, allocations: 16 kB / 380.7 MB, free: 9.434 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001326/0.1298, allocations: 156.4 kB / 380.8 MB, free: 9.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.357e-05/0.1298, allocations: 11.91 kB / 380.9 MB, free: 9.258 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003282/0.1301, allocations: 202.5 kB / 381 MB, free: 9.051 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1301, allocations: 4 kB / 381.1 MB, free: 9.047 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.1301, allocations: 0 / 381.1 MB, free: 9.047 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.1302, allocations: 3.984 kB / 381.1 MB, free: 9.043 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006931/0.1309, allocations: 0.5753 MB / 381.6 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.1309, allocations: 3.984 kB / 381.6 MB, free: 8.402 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.032e-05/0.1309, allocations: 8 kB / 381.6 MB, free: 8.395 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.131, allocations: 15.88 kB / 381.7 MB, free: 8.379 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.131, allocations: 7.938 kB / 381.7 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.131, allocations: 3.984 kB / 381.7 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.131, allocations: 7.984 kB / 381.7 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002932/0.1313, allocations: 263.7 kB / 381.9 MB, free: 8.086 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.169e-05/0.1314, allocations: 92.86 kB / 382 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.632e-05/0.1314, allocations: 15.92 kB / 382 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.645e-05/0.1315, allocations: 12 kB / 382.1 MB, free: 7.949 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.156e-05/0.1316, allocations: 19.97 kB / 382.1 MB, free: 7.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.607e-05/0.1316, allocations: 8 kB / 382.1 MB, free: 7.922 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.394e-05/0.1316, allocations: 99.27 kB / 382.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1316, allocations: 4 kB / 382.2 MB, free: 7.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003003/0.132, allocations: 43.84 kB / 382.2 MB, free: 7.777 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 (step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,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 (25): * Single equations (assignments): 21 * 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.0001408/0.1321, allocations: 123.3 kB / 382.3 MB, free: 7.648 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003427/0.1324, allocations: 188.1 kB / 382.5 MB, free: 7.465 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1325, allocations: 0 / 382.5 MB, free: 7.465 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.1326, allocations: 83.84 kB / 382.6 MB, free: 7.383 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.1329, allocations: 19.98 kB / 382.6 MB, free: 7.363 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005546/0.1334, allocations: 339.7 kB / 383 MB, free: 7.008 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000356/0.1338, allocations: 0.7405 MB / 383.7 MB, free: 6.242 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.94e-05/0.1339, allocations: 21.89 kB / 383.7 MB, free: 6.219 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.001e-05/0.134, allocations: 27.42 kB / 383.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.134, allocations: 0 / 383.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of Templates: time 0.005953/0.1399, allocations: 1.886 MB / 385.6 MB, free: 4.305 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)