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.007026/0.007026, allocations: 103.7 kB / 15.74 MB, free: 6.445 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.001606/0.001606, allocations: 196.1 kB / 16.67 MB, free: 6.352 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.612/1.612, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001216/0.001216, allocations: 53.2 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.125, allocations: 46.62 MB / 373.1 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003293/0.1283, allocations: 1.664 MB / 374.8 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007302/0.1291, allocations: 255.3 kB / 375.1 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.1292, allocations: 7.938 kB / 375.1 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.1294, allocations: 27.67 kB / 375.1 MB, free: 15.38 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.694e-05/0.1294, allocations: 23.8 kB / 375.1 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004234/0.1299, allocations: 111.8 kB / 375.2 MB, free: 15.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003273/0.1302, allocations: 271.5 kB / 375.5 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003309/0.1305, allocations: 186.9 kB / 375.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.856e-05/0.1306, allocations: 87.7 kB / 375.8 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001508/0.1308, allocations: 99.53 kB / 375.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.125e-05/0.1309, allocations: 24 kB / 375.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.26e-05/0.1309, allocations: 39.92 kB / 375.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.809e-05/0.131, allocations: 55.83 kB / 376 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.1311, allocations: 107.5 kB / 376.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003395/0.1315, allocations: 247 kB / 376.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1315, allocations: 4 kB / 376.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1315, allocations: 0 / 376.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.1315, allocations: 0 / 376.3 MB, free: 14.14 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.0008569/0.1324, allocations: 0.4975 MB / 376.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.1324, allocations: 8.031 kB / 376.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.912e-05/0.1325, allocations: 24.8 kB / 376.8 MB, free: 13.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003841/0.1329, allocations: 240 kB / 377.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.023e-05/0.133, allocations: 24.94 kB / 377.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.745e-05/0.133, allocations: 28.38 kB / 377.1 MB, free: 13.24 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004953/0.1335, allocations: 266.6 kB / 377.4 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.1336, allocations: 8.109 kB / 377.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.349e-05/0.1336, allocations: 19.92 kB / 377.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.1336, allocations: 4 kB / 377.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003011/0.1339, allocations: 165.6 kB / 377.6 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.1351, allocations: 0.9596 MB / 378.5 MB, free: 11.74 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002956/0.1354, allocations: 162.8 kB / 378.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.1355, allocations: 76.77 kB / 378.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.1356, allocations: 0 / 378.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002165/0.1358, allocations: 123 kB / 378.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.667e-06/0.1358, allocations: 4 kB / 378.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005261/0.1363, allocations: 209.4 kB / 379.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.589e-05/0.1364, allocations: 55.41 kB / 379.2 MB, free: 11.08 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.1366, allocations: 161.9 kB / 379.3 MB, free: 10.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.788e-05/0.1366, allocations: 41.64 kB / 379.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.1368, allocations: 140.7 kB / 379.5 MB, free: 10.72 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.714e-05/0.1368, allocations: 67.52 kB / 379.6 MB, free: 10.65 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.1369, allocations: 78 kB / 379.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1371, allocations: 330.8 kB / 380 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.1372, allocations: 64.62 kB / 380 MB, free: 10.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.1374, allocations: 137.8 kB / 380.2 MB, free: 10.01 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002553/0.1376, allocations: 184.4 kB / 380.3 MB, free: 9.797 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1376, allocations: 4 kB / 380.3 MB, free: 9.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003811/0.138, allocations: 257.2 kB / 380.6 MB, free: 9.535 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.1381, allocations: 4 kB / 380.6 MB, free: 9.531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.1381, allocations: 4 kB / 380.6 MB, free: 9.527 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.467e-05/0.1381, allocations: 4 kB / 380.6 MB, free: 9.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.1383, allocations: 31.92 kB / 380.6 MB, free: 9.492 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.1383, allocations: 4.281 kB / 380.6 MB, free: 9.488 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.928e-05/0.1384, allocations: 31.83 kB / 380.7 MB, free: 9.457 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.017e-05/0.1384, allocations: 16 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.0001844/0.1386, allocations: 164.2 kB / 380.9 MB, free: 9.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.602e-05/0.1387, allocations: 19.91 kB / 380.9 MB, free: 9.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003468/0.139, allocations: 194.6 kB / 381.1 MB, free: 9.051 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.139, allocations: 4 kB / 381.1 MB, free: 9.047 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.139, allocations: 0 / 381.1 MB, free: 9.047 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.139, allocations: 4 kB / 381.1 MB, free: 9.043 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007046/0.1398, allocations: 0.5909 MB / 381.7 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.1398, allocations: 3.938 kB / 381.7 MB, free: 8.387 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.22e-05/0.1398, allocations: 19.92 kB / 381.7 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.1399, allocations: 3.938 kB / 381.7 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.1399, allocations: 4 kB / 381.7 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.1399, allocations: 4 kB / 381.7 MB, free: 8.355 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1399, allocations: 0 / 381.7 MB, free: 8.355 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003177/0.1402, allocations: 275.8 kB / 382 MB, free: 8.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.655e-05/0.1403, allocations: 89.02 kB / 382.1 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.018e-05/0.1403, allocations: 7.938 kB / 382.1 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.056e-05/0.1404, allocations: 11.98 kB / 382.1 MB, free: 7.945 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.364e-05/0.1405, allocations: 19.97 kB / 382.1 MB, free: 7.926 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.1405, allocations: 8 kB / 382.1 MB, free: 7.918 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.029e-05/0.1406, allocations: 95.27 kB / 382.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1406, allocations: 0 / 382.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003034/0.1409, allocations: 55.83 kB / 382.2 MB, free: 7.77 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.0001447/0.1411, allocations: 119.4 kB / 382.4 MB, free: 7.645 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003333/0.1414, allocations: 183.9 kB / 382.5 MB, free: 7.465 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1414, allocations: 0 / 382.5 MB, free: 7.465 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.1415, 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.0002769/0.1418, allocations: 28.55 kB / 382.7 MB, free: 7.355 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005905/0.1424, allocations: 343.3 kB / 383 MB, free: 6.996 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/0.1428, allocations: 0.7285 MB / 383.7 MB, free: 6.242 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.005e-05/0.1429, allocations: 29.94 kB / 383.7 MB, free: 6.211 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.581e-05/0.143, allocations: 19.44 kB / 383.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.143, allocations: 0 / 383.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of Templates: time 0.00513/0.1481, allocations: 1.889 MB / 385.7 MB, free: 4.301 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)