Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.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.00811/0.00811, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.00164/0.001639, allocations: 197 kB / 16.68 MB, free: 5.93 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.683/1.683, allocations: 205.1 MB / 222.5 MB, free: 4.266 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.001446/0.001446, allocations: 49.17 kB / 326.5 MB, free: 14.58 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.115, allocations: 46.63 MB / 373.2 MB, free: 1.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.006104/0.1212, allocations: 2.98 MB / 376.1 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002658/0.1239, allocations: 1.189 MB / 377.3 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004105/0.1243, allocations: 4 kB / 377.3 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008399/0.1252, allocations: 167.1 kB / 377.5 MB, free: 13.04 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.0008786/0.1261, allocations: 190.8 kB / 377.7 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005939/0.1267, allocations: 143.7 kB / 377.8 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008351/0.1276, allocations: 449.8 kB / 378.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003139/0.1279, allocations: 111.4 kB / 378.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004243/0.1283, allocations: 179.3 kB / 378.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003823/0.1287, allocations: 191.2 kB / 378.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.981e-05/0.1288, allocations: 28 kB / 378.8 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002761/0.1291, allocations: 67.98 kB / 378.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.1293, allocations: 91.61 kB / 378.9 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002847/0.1296, allocations: 187 kB / 379.1 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008728/0.1304, allocations: 458.4 kB / 379.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.1305, allocations: 0 / 379.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.1305, allocations: 0 / 379.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.585e-05/0.1305, allocations: 0 / 379.5 MB, free: 10.98 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.001701/0.1322, allocations: 0.683 MB / 380.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.1323, allocations: 8.031 kB / 380.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002238/0.1325, allocations: 56.3 kB / 380.3 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000688/0.1332, allocations: 328.4 kB / 380.6 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.256e-05/0.1332, allocations: 20.94 kB / 380.6 MB, free: 9.809 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.511e-05/0.1333, allocations: 28.12 kB / 380.7 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006307/0.134, allocations: 291.1 kB / 380.9 MB, free: 9.469 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.662e-05/0.134, allocations: 4 kB / 381 MB, free: 9.465 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/0.134, allocations: 8 kB / 381 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.1341, allocations: 16 kB / 381 MB, free: 9.441 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000376/0.1344, allocations: 178.1 kB / 381.1 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00152/0.136, allocations: 0.8366 MB / 382 MB, free: 8.367 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00064/0.1366, allocations: 259.4 kB / 382.2 MB, free: 8.105 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001804/0.1368, allocations: 97.38 kB / 382.3 MB, free: 8.008 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.102e-05/0.1369, allocations: 4.281 kB / 382.3 MB, free: 8.004 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003173/0.1372, allocations: 164.9 kB / 382.5 MB, free: 7.832 MB / 318.1 MB Notification: Performance of pre-optimization done (n=34): time 1.964e-06/0.1372, allocations: 4 kB / 382.5 MB, free: 7.828 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002732/0.14, allocations: 1.309 MB / 383.8 MB, free: 6.406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/0.1401, allocations: 191.9 kB / 384 MB, free: 6.176 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004668/0.1406, allocations: 352.5 kB / 384.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.464e-05/0.1406, allocations: 37.7 kB / 384.4 MB, free: 5.777 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001611/0.1408, allocations: 184.6 kB / 384.6 MB, free: 5.59 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.1409, allocations: 141.9 kB / 384.7 MB, free: 5.449 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.1411, allocations: 74.14 kB / 384.8 MB, free: 5.371 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1412, allocations: 346.8 kB / 385.1 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.1414, allocations: 96.77 kB / 385.2 MB, free: 4.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002647/0.1417, allocations: 177.3 kB / 385.4 MB, free: 4.723 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004115/0.1421, allocations: 254.2 kB / 385.6 MB, free: 4.461 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1421, allocations: 0 / 385.6 MB, free: 4.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006207/0.1427, allocations: 358.2 kB / 386 MB, free: 4.102 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/0.1428, allocations: 5.094 kB / 386 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.1428, allocations: 4 kB / 386 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001089/0.1429, allocations: 16.98 kB / 386 MB, free: 4.074 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003496/0.1433, allocations: 91.89 kB / 386.1 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.1445, allocations: 1.402 MB / 387.5 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.1448, allocations: 11.91 kB / 387.5 MB, free: 2.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-05/0.1448, allocations: 12 kB / 387.5 MB, free: 2.422 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.0002324/0.1451, allocations: 177.7 kB / 387.7 MB, free: 2.238 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.595e-05/0.1451, allocations: 35.62 kB / 387.7 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.195e-05/0.1452, allocations: 47.94 kB / 387.8 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.1452, allocations: 12.06 kB / 387.8 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.1452, allocations: 3.938 kB / 387.8 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006491/0.1459, allocations: 0.657 MB / 388.4 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/0.1472, allocations: 0.8491 MB / 389.3 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.1472, allocations: 4 kB / 389.3 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003313/0.1475, allocations: 80.03 kB / 389.4 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.1476, allocations: 0 / 389.4 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.035e-05/0.1476, allocations: 11.98 kB / 389.4 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.1476, allocations: 4 kB / 389.4 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.1476, allocations: 0 / 389.4 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008807/0.1485, allocations: 0.5507 MB / 389.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000212/0.1487, allocations: 140.7 kB / 390.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.09e-05/0.1488, allocations: 8 kB / 390.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/0.149, allocations: 16 kB / 390.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.671e-05/0.1491, allocations: 23.95 kB / 390.1 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.076e-05/0.1492, allocations: 12 kB / 390.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003225/0.1495, allocations: 259 kB / 390.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1495, allocations: 0 / 390.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004524/0.15, allocations: 100.6 kB / 390.5 MB, free: 15.21 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.001096/0.1511, allocations: 416.3 kB / 390.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000754/0.1518, allocations: 374.3 kB / 391.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.1519, allocations: 4.25 kB / 391.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002464/0.1521, allocations: 135.8 kB / 391.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005739/0.1527, allocations: 101 kB / 391.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.1546, allocations: 1.035 MB / 392.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004991/0.1551, allocations: 0.804 MB / 393.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002202/0.1553, allocations: 47.25 kB / 393.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.571e-05/0.1554, allocations: 31.44 kB / 393.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1554, allocations: 0 / 393.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of Templates: time 0.01301/0.1684, allocations: 5.331 MB / 398.7 MB, free: 6.859 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.makefile (rm -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & ./Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1)