Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.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.Thermal.FluidHeatFlow.Examples.TestCylinder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007213/0.007213, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.001474/0.001474, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.549/1.549, 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.001327/0.001327, allocations: 54.34 kB / 326.5 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.114, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004885/0.119, allocations: 2.976 MB / 376.1 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002287/0.1213, allocations: 1.189 MB / 377.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001842/0.1215, allocations: 7.938 kB / 377.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006027/0.1222, allocations: 163.2 kB / 377.5 MB, free: 12.95 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0005062/0.1227, allocations: 190.9 kB / 377.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003916/0.1231, allocations: 147.6 kB / 377.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004816/0.1236, allocations: 445.8 kB / 378.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001974/0.1238, allocations: 107.4 kB / 378.4 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001989/0.124, allocations: 179.3 kB / 378.5 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002393/0.1242, allocations: 195.1 kB / 378.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.86e-05/0.1243, allocations: 32 kB / 378.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000161/0.1245, allocations: 75.97 kB / 378.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.1246, allocations: 79.7 kB / 378.9 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000201/0.1248, allocations: 190.9 kB / 379.1 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005024/0.1253, allocations: 446.5 kB / 379.5 MB, free: 10.9 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.1253, allocations: 4 kB / 379.5 MB, free: 10.9 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1253, allocations: 0 / 379.5 MB, free: 10.9 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.1253, allocations: 0 / 379.5 MB, free: 10.9 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001105/0.1264, allocations: 0.6907 MB / 380.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.1265, allocations: 12.03 kB / 380.2 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.356e-05/0.1266, allocations: 44.38 kB / 380.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004905/0.1271, allocations: 328.4 kB / 380.6 MB, free: 9.742 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.327e-05/0.1271, allocations: 16.94 kB / 380.6 MB, free: 9.727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.459e-05/0.1272, allocations: 28.12 kB / 380.6 MB, free: 9.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005221/0.1277, allocations: 299.1 kB / 380.9 MB, free: 9.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.1277, allocations: 0 / 380.9 MB, free: 9.379 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.439e-05/0.1278, allocations: 12 kB / 381 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.1278, allocations: 4 kB / 381 MB, free: 9.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00034/0.1281, allocations: 182.1 kB / 381.1 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001457/0.1296, allocations: 0.8444 MB / 382 MB, free: 8.277 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006833/0.1303, allocations: 255.4 kB / 382.2 MB, free: 8.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001793/0.1305, allocations: 101.4 kB / 382.3 MB, free: 7.918 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.401e-05/0.1305, allocations: 4.281 kB / 382.3 MB, free: 7.914 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003117/0.1308, allocations: 172.7 kB / 382.5 MB, free: 7.734 MB / 318.1 MB Notification: Performance of pre-optimization done (n=34): time 1.673e-06/0.1309, allocations: 0 / 382.5 MB, free: 7.734 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002511/0.1334, allocations: 1.32 MB / 383.8 MB, free: 6.301 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.1335, allocations: 183.9 kB / 384 MB, free: 6.078 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004592/0.134, allocations: 348.5 kB / 384.3 MB, free: 5.727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.134, allocations: 33.7 kB / 384.4 MB, free: 5.688 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001585/0.1342, allocations: 192.6 kB / 384.6 MB, free: 5.492 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001178/0.1343, allocations: 141.9 kB / 384.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.1345, allocations: 74.12 kB / 384.8 MB, free: 5.273 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1346, allocations: 346.8 kB / 385.1 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.1348, allocations: 88.84 kB / 385.2 MB, free: 4.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002876/0.1351, allocations: 185.2 kB / 385.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004132/0.1356, allocations: 246.2 kB / 385.6 MB, free: 4.371 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1356, allocations: 0 / 385.6 MB, free: 4.371 MB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006072/0.1362, allocations: 362.2 kB / 386 MB, free: 4.008 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.1362, allocations: 8 kB / 386 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.1362, allocations: 0 / 386 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001148/0.1364, allocations: 20.86 kB / 386 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003326/0.1367, allocations: 83.89 kB / 386.1 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/0.1381, allocations: 1.398 MB / 387.5 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002069/0.1383, allocations: 16.06 kB / 387.5 MB, free: 2.344 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.911e-05/0.1383, allocations: 19.94 kB / 387.5 MB, free: 2.324 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000206/0.1386, allocations: 169.8 kB / 387.7 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.552e-05/0.1386, allocations: 35.62 kB / 387.7 MB, free: 2.113 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.597e-05/0.1387, allocations: 47.95 kB / 387.8 MB, free: 2.066 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.1388, allocations: 7.984 kB / 387.8 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.1388, allocations: 3.938 kB / 387.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006821/0.1395, allocations: 0.6569 MB / 388.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001226/0.1407, allocations: 0.8493 MB / 389.3 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.1407, allocations: 4 kB / 389.3 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003128/0.141, allocations: 79.89 kB / 389.4 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-06/0.1411, allocations: 4 kB / 389.4 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.781e-05/0.1411, allocations: 8 kB / 389.4 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.341e-06/0.1411, allocations: 8.062 kB / 389.4 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1411, allocations: 4 kB / 389.4 MB, free: 276 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008933/0.142, allocations: 0.539 MB / 389.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001517/0.1422, allocations: 144.7 kB / 390.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.319e-05/0.1422, allocations: 8 kB / 390.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/0.1425, allocations: 15.98 kB / 390.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.065e-05/0.1425, allocations: 27.91 kB / 390.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.475e-05/0.1426, allocations: 16 kB / 390.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002881/0.1429, allocations: 259 kB / 390.4 MB, free: 15.22 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1429, allocations: 0 / 390.4 MB, free: 15.22 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004341/0.1433, allocations: 96.56 kB / 390.5 MB, free: 15.13 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (cylinder1.m,cylinder1.H,cylinder2.H,springDamper.s_rel,springDamper.v_rel) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001022/0.1444, allocations: 428.4 kB / 390.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008193/0.1452, allocations: 374.3 kB / 391.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.1452, allocations: 0 / 391.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002919/0.1455, allocations: 139.8 kB / 391.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008454/0.1464, allocations: 101.6 kB / 391.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002336/0.1487, allocations: 1.027 MB / 392.5 MB, free: 13.01 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007311/0.1495, allocations: 0.8079 MB / 393.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002882/0.1498, allocations: 47.25 kB / 393.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.1499, allocations: 39.42 kB / 393.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of SimCode: time 1.634e-06/0.1499, allocations: 0 / 393.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of Templates: time 0.01383/0.1637, allocations: 5.316 MB / 398.7 MB, free: 6.77 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & ./Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1)