Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.0108/0.0108, allocations: 104.5 kB / 15.74 MB, free: 6.039 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.001902/0.001902, allocations: 196.2 kB / 16.68 MB, free: 5.957 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.588/1.588, allocations: 205.1 MB / 222.5 MB, free: 4.484 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.00139/0.001391, allocations: 50.33 kB / 326.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1157, allocations: 46.63 MB / 373.1 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003145/0.1189, allocations: 1.652 MB / 374.8 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007589/0.1197, allocations: 259.2 kB / 375.1 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.1198, allocations: 8 kB / 375.1 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.12, allocations: 31.67 kB / 375.1 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.323e-05/0.12, allocations: 11.81 kB / 375.1 MB, free: 15.35 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004681/0.1205, allocations: 119.8 kB / 375.2 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003379/0.1209, allocations: 267.6 kB / 375.5 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003382/0.1212, allocations: 190.9 kB / 375.7 MB, free: 14.78 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.1213, allocations: 99.62 kB / 375.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001475/0.1215, allocations: 99.48 kB / 375.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.319e-05/0.1215, allocations: 24 kB / 375.9 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.999e-05/0.1216, allocations: 32 kB / 375.9 MB, free: 14.53 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.884e-05/0.1217, allocations: 63.81 kB / 376 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001094/0.1218, allocations: 99.47 kB / 376.1 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004197/0.1222, allocations: 255.2 kB / 376.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.1222, allocations: 0 / 376.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1222, allocations: 3.938 kB / 376.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.1223, 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.00089/0.1232, allocations: 489.9 kB / 376.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.1232, allocations: 12.03 kB / 376.8 MB, free: 13.58 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.917e-05/0.1233, allocations: 24.73 kB / 376.8 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003974/0.1237, allocations: 235.9 kB / 377.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.931e-05/0.1238, allocations: 24.92 kB / 377.1 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.473e-05/0.1238, allocations: 24.38 kB / 377.1 MB, free: 13.24 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004422/0.1242, allocations: 270.5 kB / 377.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.1243, allocations: 4.188 kB / 377.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.635e-05/0.1243, allocations: 15.94 kB / 377.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.1243, allocations: 8 kB / 377.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003025/0.1246, allocations: 165.6 kB / 377.6 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.1257, allocations: 0.9672 MB / 378.5 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002625/0.126, allocations: 158.7 kB / 378.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.1261, allocations: 68.84 kB / 378.8 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.1262, allocations: 4 kB / 378.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001895/0.1264, allocations: 127.1 kB / 378.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.653e-06/0.1264, allocations: 0 / 378.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004255/0.1268, allocations: 213.2 kB / 379.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.047e-05/0.1269, allocations: 55.41 kB / 379.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.127, allocations: 157.8 kB / 379.3 MB, free: 10.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.275e-05/0.1271, allocations: 37.7 kB / 379.3 MB, free: 10.87 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.1272, allocations: 148.5 kB / 379.5 MB, free: 10.71 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.918e-05/0.1272, allocations: 55.2 kB / 379.5 MB, free: 10.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.1273, allocations: 82.02 kB / 379.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1275, allocations: 334.8 kB / 380 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.1276, allocations: 64.56 kB / 380 MB, free: 10.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.1278, allocations: 133.8 kB / 380.1 MB, free: 10.01 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002422/0.128, allocations: 188.4 kB / 380.3 MB, free: 9.797 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1281, allocations: 4 kB / 380.3 MB, free: 9.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003872/0.1284, allocations: 253.2 kB / 380.6 MB, free: 9.539 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.1285, allocations: 8 kB / 380.6 MB, free: 9.531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1285, allocations: 288 / 380.6 MB, free: 9.531 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.1285, allocations: 8 kB / 380.6 MB, free: 9.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.1287, allocations: 35.92 kB / 380.6 MB, free: 9.488 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.1287, allocations: 4 kB / 380.6 MB, free: 9.484 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.1288, allocations: 23.75 kB / 380.7 MB, free: 9.461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.996e-05/0.1288, allocations: 19.98 kB / 380.7 MB, free: 9.441 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.0001511/0.129, allocations: 156.3 kB / 380.8 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.465e-05/0.129, allocations: 15.89 kB / 380.8 MB, free: 9.262 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003328/0.1293, allocations: 206.5 kB / 381 MB, free: 9.051 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.1294, allocations: 0 / 381 MB, free: 9.051 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.1294, allocations: 4 kB / 381.1 MB, free: 9.047 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1294, allocations: 0 / 381.1 MB, free: 9.047 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006718/0.1301, allocations: 0.5792 MB / 381.6 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1301, allocations: 0 / 381.6 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.448e-05/0.1302, allocations: 23.92 kB / 381.7 MB, free: 8.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.1302, allocations: 7.875 kB / 381.7 MB, free: 8.375 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.1302, allocations: 4 kB / 381.7 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1302, allocations: 0 / 381.7 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.1302, allocations: 4 kB / 381.7 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000281/0.1305, allocations: 271.7 kB / 381.9 MB, free: 8.086 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.607e-05/0.1305, allocations: 96.86 kB / 382 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.43e-05/0.1306, allocations: 7.938 kB / 382 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.05e-05/0.1307, allocations: 7.984 kB / 382 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.825e-05/0.1307, allocations: 19.98 kB / 382.1 MB, free: 7.938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.1308, allocations: 11.92 kB / 382.1 MB, free: 7.926 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.843e-05/0.1308, allocations: 103.3 kB / 382.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1308, allocations: 0 / 382.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002962/0.1311, allocations: 51.84 kB / 382.2 MB, free: 7.773 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.0001389/0.1313, allocations: 107.4 kB / 382.3 MB, free: 7.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003234/0.1316, allocations: 195.8 kB / 382.5 MB, free: 7.469 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1316, allocations: 0.5625 kB / 382.5 MB, free: 7.469 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001181/0.1317, allocations: 75.92 kB / 382.6 MB, free: 7.395 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000301/0.132, allocations: 31.92 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.0006099/0.1327, 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.0002907/0.133, allocations: 0.7324 MB / 383.7 MB, free: 6.25 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.696e-05/0.1331, allocations: 21.94 kB / 383.7 MB, free: 6.227 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.113e-05/0.1331, allocations: 27.44 kB / 383.7 MB, free: 6.199 MB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1331, allocations: 0 / 383.7 MB, free: 6.199 MB / 318.1 MB Notification: Performance of Templates: time 0.004957/0.1381, allocations: 1.952 MB / 385.7 MB, free: 4.246 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)