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.00518/0.00518, allocations: 104.1 kB / 15.73 MB, free: 6.051 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.001094/0.001094, allocations: 196.2 kB / 16.68 MB, free: 5.961 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.642/1.642, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.001338/0.001338, allocations: 50.27 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1089, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004612/0.1136, allocations: 2.98 MB / 376.1 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002174/0.1158, allocations: 1.181 MB / 377.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.116, allocations: 11.94 kB / 377.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005281/0.1165, allocations: 163.1 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.0004917/0.117, allocations: 182.9 kB / 377.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000387/0.1174, allocations: 151.6 kB / 377.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005517/0.118, allocations: 445.8 kB / 378.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000207/0.1182, allocations: 111.4 kB / 378.4 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000201/0.1184, allocations: 171.3 kB / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002432/0.1187, allocations: 203.1 kB / 378.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.879e-05/0.1187, allocations: 28 kB / 378.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001381/0.1189, allocations: 71.92 kB / 378.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.119, allocations: 79.69 kB / 378.9 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.1192, allocations: 187 kB / 379.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000482/0.1197, allocations: 458.4 kB / 379.5 MB, free: 10.9 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1197, allocations: 0 / 379.5 MB, free: 10.9 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1197, allocations: 0 / 379.5 MB, free: 10.9 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.1197, 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.00104/0.1207, allocations: 0.6869 MB / 380.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.1208, allocations: 8.031 kB / 380.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.752e-05/0.1209, allocations: 52.36 kB / 380.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004588/0.1214, allocations: 332.4 kB / 380.6 MB, free: 9.738 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/0.1214, allocations: 20.88 kB / 380.6 MB, free: 9.719 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.862e-05/0.1215, allocations: 32.12 kB / 380.7 MB, free: 9.688 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005055/0.122, allocations: 291.1 kB / 380.9 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.122, allocations: 0 / 380.9 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.396e-05/0.122, allocations: 12 kB / 381 MB, free: 9.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.517e-06/0.122, allocations: 12 kB / 381 MB, free: 9.352 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003196/0.1224, allocations: 174.1 kB / 381.1 MB, free: 9.184 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001284/0.1237, allocations: 0.8288 MB / 382 MB, free: 8.289 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005508/0.1242, allocations: 259.4 kB / 382.2 MB, free: 8.027 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001733/0.1244, allocations: 109.4 kB / 382.3 MB, free: 7.918 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.302e-05/0.1245, allocations: 4.281 kB / 382.3 MB, free: 7.914 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003004/0.1248, allocations: 160.9 kB / 382.5 MB, free: 7.746 MB / 318.1 MB Notification: Performance of pre-optimization done (n=34): time 1.883e-06/0.1248, allocations: 4 kB / 382.5 MB, free: 7.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002404/0.1272, allocations: 1.312 MB / 383.8 MB, free: 6.316 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.1273, allocations: 195.9 kB / 384 MB, free: 6.082 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00039/0.1277, allocations: 356.5 kB / 384.3 MB, free: 5.723 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.1278, allocations: 37.7 kB / 384.4 MB, free: 5.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.1279, allocations: 184.6 kB / 384.6 MB, free: 5.492 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.1281, allocations: 141.9 kB / 384.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.1282, allocations: 74.14 kB / 384.8 MB, free: 5.273 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1284, allocations: 346.8 kB / 385.1 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001751/0.1285, allocations: 88.83 kB / 385.2 MB, free: 4.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002629/0.1288, allocations: 181.3 kB / 385.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004037/0.1292, allocations: 250.2 kB / 385.6 MB, free: 4.371 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1292, allocations: 0 / 385.6 MB, free: 4.371 MB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005725/0.1298, allocations: 358.2 kB / 386 MB, free: 4.012 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.1298, allocations: 5.094 kB / 386 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.1299, allocations: 4 kB / 386 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001151/0.13, allocations: 16.86 kB / 386 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003374/0.1303, allocations: 99.95 kB / 386.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001246/0.1316, allocations: 1.39 MB / 387.5 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001835/0.1318, allocations: 23.88 kB / 387.5 MB, free: 2.336 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.347e-05/0.1318, allocations: 12 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.0002162/0.132, allocations: 169.8 kB / 387.7 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.73e-05/0.1321, allocations: 39.56 kB / 387.7 MB, free: 2.109 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.632e-05/0.1322, allocations: 47.94 kB / 387.8 MB, free: 2.062 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.1322, allocations: 8.062 kB / 387.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.1322, allocations: 3.938 kB / 387.8 MB, free: 2.051 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007292/0.133, allocations: 0.6609 MB / 388.4 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.1342, allocations: 0.8413 MB / 389.3 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1342, allocations: 64 / 389.3 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003075/0.1345, allocations: 84.03 kB / 389.4 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.893e-06/0.1345, allocations: 4 kB / 389.4 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.8e-05/0.1346, allocations: 11.98 kB / 389.4 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.371e-06/0.1346, allocations: 4 kB / 389.4 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.1346, allocations: 0 / 389.4 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007925/0.1354, allocations: 0.5546 MB / 389.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001483/0.1356, allocations: 132.7 kB / 390.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.325e-05/0.1356, allocations: 16 kB / 390.1 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.1358, allocations: 8 kB / 390.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.785e-05/0.1359, allocations: 27.95 kB / 390.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.132e-05/0.1359, allocations: 16 kB / 390.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000275/0.1362, allocations: 255 kB / 390.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1362, allocations: 0 / 390.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004105/0.1367, allocations: 104.6 kB / 390.5 MB, free: 15.12 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.001082/0.1377, allocations: 420.3 kB / 390.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008291/0.1386, allocations: 374.3 kB / 391.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.1386, allocations: 256 / 391.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002345/0.1388, allocations: 135.8 kB / 391.4 MB, free: 14.19 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005919/0.1394, allocations: 97.02 kB / 391.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001929/0.1414, allocations: 1.039 MB / 392.5 MB, free: 13.01 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005816/0.142, allocations: 0.8079 MB / 393.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002034/0.1422, allocations: 51.23 kB / 393.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.387e-05/0.1423, allocations: 31.44 kB / 393.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1423, allocations: 0 / 393.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of Templates: time 0.01214/0.1544, allocations: 5.327 MB / 398.7 MB, free: 6.762 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)