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.001182/0.001182, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 197 kB / 16.53 MB, free: 6.664 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.491/1.491, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.001416/0.001416, allocations: 59.86 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2457, allocations: 46.63 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004214/0.25, allocations: 2.99 MB / 328.3 MB, free: 15.49 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002079/0.2521, allocations: 1.177 MB / 329.5 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001719/0.2523, allocations: 9.188 kB / 329.5 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005612/0.2529, allocations: 167.2 kB / 329.6 MB, free: 14.43 MB / 270.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.0004576/0.2533, allocations: 180.5 kB / 329.8 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003753/0.2537, allocations: 145.2 kB / 330 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004959/0.2542, allocations: 431.9 kB / 330.4 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002135/0.2545, allocations: 102.7 kB / 330.5 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002068/0.2547, allocations: 183.1 kB / 330.7 MB, free: 13.78 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.2549, allocations: 193.8 kB / 330.9 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.95e-05/0.255, allocations: 28.91 kB / 330.9 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001688/0.2552, allocations: 67.83 kB / 330.9 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.2553, allocations: 79.91 kB / 331 MB, free: 13.58 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001921/0.2555, allocations: 190.1 kB / 331.2 MB, free: 13.45 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005558/0.2561, allocations: 454.7 kB / 331.7 MB, free: 13.13 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.2561, allocations: 0 / 331.7 MB, free: 13.13 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2561, allocations: 0 / 331.7 MB, free: 13.13 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.2561, allocations: 0 / 331.7 MB, free: 13.13 MB / 270.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.001114/0.2572, allocations: 0.694 MB / 332.3 MB, free: 12.51 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.2573, allocations: 9.438 kB / 332.4 MB, free: 12.51 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.2574, allocations: 47.53 kB / 332.4 MB, free: 12.49 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003944/0.2578, allocations: 316.2 kB / 332.7 MB, free: 12.19 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.694e-05/0.2578, allocations: 18.34 kB / 332.7 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.789e-05/0.2579, allocations: 29.22 kB / 332.8 MB, free: 12.17 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004966/0.2584, allocations: 296.5 kB / 333 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.2584, allocations: 4.938 kB / 333.1 MB, free: 11.95 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.206e-05/0.2585, allocations: 11.34 kB / 333.1 MB, free: 11.95 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.2585, allocations: 6.625 kB / 333.1 MB, free: 11.95 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000328/0.2588, allocations: 179.3 kB / 333.2 MB, free: 11.86 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.2601, allocations: 0.8482 MB / 334.1 MB, free: 10.95 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005578/0.2607, allocations: 259.4 kB / 334.3 MB, free: 10.69 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/0.2609, allocations: 105.4 kB / 334.5 MB, free: 10.58 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.606e-05/0.2609, allocations: 12.27 kB / 334.5 MB, free: 10.57 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004033/0.2613, allocations: 160.9 kB / 334.6 MB, free: 10.4 MB / 270.1 MB Notification: Performance of pre-optimization done (n=34): time 1.874e-06/0.2613, allocations: 0 / 334.6 MB, free: 10.4 MB / 270.1 MB Notification: Performance of matching and sorting (n=40): time 0.002406/0.2637, allocations: 1.32 MB / 335.9 MB, free: 8.973 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.2639, allocations: 187.9 kB / 336.1 MB, free: 8.746 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003671/0.2643, allocations: 352.5 kB / 336.5 MB, free: 8.387 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.2643, allocations: 33.7 kB / 336.5 MB, free: 8.348 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001477/0.2644, allocations: 192.6 kB / 336.7 MB, free: 8.156 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.2646, allocations: 141.9 kB / 336.8 MB, free: 8.016 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.2647, allocations: 78.05 kB / 336.9 MB, free: 7.934 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.2648, allocations: 350.8 kB / 337.2 MB, free: 7.582 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.265, allocations: 88.83 kB / 337.3 MB, free: 7.492 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002488/0.2653, allocations: 185.2 kB / 337.5 MB, free: 7.277 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003931/0.2657, allocations: 250.2 kB / 337.8 MB, free: 7.02 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.2657, allocations: 4.062 kB / 337.8 MB, free: 7.016 MB / 270.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005365/0.2662, allocations: 354.3 kB / 338.1 MB, free: 6.66 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.2663, allocations: 7.938 kB / 338.1 MB, free: 6.652 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.2663, allocations: 0 / 338.1 MB, free: 6.652 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001021/0.2664, allocations: 24.84 kB / 338.1 MB, free: 6.625 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003287/0.2667, allocations: 87.89 kB / 338.2 MB, free: 6.539 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001209/0.2679, allocations: 1.39 MB / 339.6 MB, free: 5.012 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/0.2681, allocations: 20.19 kB / 339.6 MB, free: 4.992 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.2682, allocations: 12 kB / 339.6 MB, free: 4.98 MB / 270.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.0002122/0.2684, allocations: 173.7 kB / 339.8 MB, free: 4.801 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.107e-05/0.2684, allocations: 39.53 kB / 339.9 MB, free: 4.762 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.895e-05/0.2685, allocations: 47.94 kB / 339.9 MB, free: 4.711 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.2685, allocations: 4 kB / 339.9 MB, free: 4.707 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.2686, allocations: 3.938 kB / 339.9 MB, free: 4.703 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006517/0.2692, allocations: 0.6647 MB / 340.6 MB, free: 3.934 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.2703, allocations: 0.842 MB / 341.4 MB, free: 3.023 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/0.2703, allocations: 4 kB / 341.4 MB, free: 3.02 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003143/0.2706, allocations: 71.91 kB / 341.5 MB, free: 2.949 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.2707, allocations: 8.125 kB / 341.5 MB, free: 2.941 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.364e-05/0.2707, allocations: 11.98 kB / 341.5 MB, free: 2.93 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.094e-06/0.2707, allocations: 7.938 kB / 341.5 MB, free: 2.922 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2707, allocations: 3.984 kB / 341.5 MB, free: 2.918 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007335/0.2715, allocations: 0.5496 MB / 342.1 MB, free: 2.34 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001363/0.2716, allocations: 128.8 kB / 342.2 MB, free: 2.195 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.14e-05/0.2717, allocations: 23.98 kB / 342.2 MB, free: 2.172 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.2719, allocations: 8 kB / 342.2 MB, free: 2.164 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.675e-05/0.272, allocations: 31.91 kB / 342.3 MB, free: 2.133 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.008e-05/0.272, allocations: 15.98 kB / 342.3 MB, free: 2.117 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002396/0.2722, allocations: 251 kB / 342.5 MB, free: 1.875 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2722, allocations: 4 kB / 342.5 MB, free: 1.871 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003822/0.2726, allocations: 104.6 kB / 342.6 MB, free: 1.77 MB / 270.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.0009375/0.2736, allocations: 410 kB / 343 MB, free: 1.367 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007011/0.2743, allocations: 386.3 kB / 343.4 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2743, allocations: 0 / 343.4 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002184/0.2745, allocations: 140 kB / 343.5 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005701/0.2751, allocations: 97.25 kB / 343.6 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.2768, allocations: 1.042 MB / 344.7 MB, free: 15.66 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.2772, allocations: 0.808 MB / 345.5 MB, free: 14.83 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001685/0.2773, allocations: 47.25 kB / 345.5 MB, free: 14.79 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.118e-05/0.2774, allocations: 39.42 kB / 345.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2774, allocations: 0 / 345.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of Templates: time 0.01145/0.2889, allocations: 5.23 MB / 350.8 MB, free: 9.508 MB / 286.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)