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.002196/0.002196, allocations: 108 kB / 15.6 MB, free: 132 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.002384/0.002384, allocations: 195.9 kB / 16.53 MB, free: 6.391 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.626/1.626, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.001458/0.001458, allocations: 56.22 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2748, allocations: 46.63 MB / 325.3 MB, free: 1.969 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004634/0.2795, allocations: 2.985 MB / 328.3 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002485/0.282, allocations: 1.184 MB / 329.5 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001856/0.2822, allocations: 4.688 kB / 329.5 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005609/0.2828, allocations: 163.6 kB / 329.6 MB, free: 14.55 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.0004991/0.2833, allocations: 184.2 kB / 329.8 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003881/0.2837, allocations: 137.4 kB / 330 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005708/0.2843, allocations: 431.7 kB / 330.4 MB, free: 14.06 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000257/0.2846, allocations: 114.2 kB / 330.5 MB, free: 14 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002446/0.2848, allocations: 168.2 kB / 330.7 MB, free: 13.91 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002913/0.2851, allocations: 197 kB / 330.8 MB, free: 13.78 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.112e-05/0.2852, allocations: 29.19 kB / 330.9 MB, free: 13.78 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001892/0.2854, allocations: 68.73 kB / 330.9 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.2855, allocations: 91.83 kB / 331 MB, free: 13.69 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002092/0.2858, allocations: 194.6 kB / 331.2 MB, free: 13.56 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005183/0.2863, allocations: 453.2 kB / 331.7 MB, free: 13.24 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.2863, allocations: 0 / 331.7 MB, free: 13.24 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2863, allocations: 1.031 kB / 331.7 MB, free: 13.24 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.2863, allocations: 0 / 331.7 MB, free: 13.24 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.001129/0.2875, allocations: 0.6901 MB / 332.4 MB, free: 12.62 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.2875, allocations: 8.562 kB / 332.4 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.2876, allocations: 51.64 kB / 332.4 MB, free: 12.6 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004634/0.2881, allocations: 311.6 kB / 332.7 MB, free: 12.3 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.563e-05/0.2882, allocations: 19.28 kB / 332.7 MB, free: 12.29 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.387e-05/0.2882, allocations: 32.45 kB / 332.8 MB, free: 12.28 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006147/0.2889, allocations: 293.8 kB / 333.1 MB, free: 12.07 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.678e-05/0.2889, allocations: 7.906 kB / 333.1 MB, free: 12.06 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.062e-05/0.2889, allocations: 16.39 kB / 333.1 MB, free: 12.05 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.289, allocations: 5.531 kB / 333.1 MB, free: 12.05 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004294/0.2894, allocations: 172.9 kB / 333.3 MB, free: 11.95 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001464/0.2909, allocations: 0.8444 MB / 334.1 MB, free: 11.05 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005963/0.2915, allocations: 259.4 kB / 334.3 MB, free: 10.79 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.2917, allocations: 101.4 kB / 334.4 MB, free: 10.69 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.694e-05/0.2917, allocations: 4.281 kB / 334.5 MB, free: 10.68 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004036/0.2921, allocations: 168.9 kB / 334.6 MB, free: 10.51 MB / 270.1 MB Notification: Performance of pre-optimization done (n=34): time 1.894e-06/0.2921, allocations: 4 kB / 334.6 MB, free: 10.5 MB / 270.1 MB Notification: Performance of matching and sorting (n=40): time 0.002487/0.2946, allocations: 1.324 MB / 335.9 MB, free: 9.07 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.2947, allocations: 187.9 kB / 336.1 MB, free: 8.844 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003762/0.2951, allocations: 352.5 kB / 336.5 MB, free: 8.484 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.2952, allocations: 33.7 kB / 336.5 MB, free: 8.445 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.2953, allocations: 188.6 kB / 336.7 MB, free: 8.258 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.2954, allocations: 138 kB / 336.8 MB, free: 8.121 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.2955, allocations: 78.03 kB / 336.9 MB, free: 8.039 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.2957, allocations: 346.8 kB / 337.2 MB, free: 7.691 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.2959, allocations: 92.83 kB / 337.3 MB, free: 7.598 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002548/0.2962, allocations: 185.2 kB / 337.5 MB, free: 7.383 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003829/0.2965, allocations: 246.2 kB / 337.8 MB, free: 7.129 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2966, allocations: 0 / 337.8 MB, free: 7.129 MB / 270.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.00056/0.2971, allocations: 366.1 kB / 338.1 MB, free: 6.762 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.2972, allocations: 8 kB / 338.1 MB, free: 6.754 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.2972, allocations: 0 / 338.1 MB, free: 6.754 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001075/0.2973, allocations: 28.97 kB / 338.1 MB, free: 6.723 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000342/0.2976, allocations: 87.89 kB / 338.2 MB, free: 6.637 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001326/0.299, allocations: 1.386 MB / 339.6 MB, free: 5.113 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.2992, allocations: 16.05 kB / 339.6 MB, free: 5.098 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.479e-05/0.2992, allocations: 20 kB / 339.7 MB, free: 5.078 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.0002185/0.2995, allocations: 177.8 kB / 339.8 MB, free: 4.895 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.848e-05/0.2995, allocations: 39.53 kB / 339.9 MB, free: 4.855 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.641e-05/0.2996, allocations: 43.95 kB / 339.9 MB, free: 4.809 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.2996, allocations: 4 kB / 339.9 MB, free: 4.805 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.2996, allocations: 3.938 kB / 339.9 MB, free: 4.801 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006927/0.3003, allocations: 0.6608 MB / 340.6 MB, free: 4.035 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.3015, allocations: 0.842 MB / 341.4 MB, free: 3.125 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3015, allocations: 0 / 341.4 MB, free: 3.125 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003059/0.3018, allocations: 75.91 kB / 341.5 MB, free: 3.051 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.3018, allocations: 4 kB / 341.5 MB, free: 3.047 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.136e-05/0.3018, allocations: 8 kB / 341.5 MB, free: 3.039 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.3018, allocations: 7.938 kB / 341.5 MB, free: 3.031 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3018, allocations: 0 / 341.5 MB, free: 3.031 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007212/0.3026, allocations: 0.5497 MB / 342.1 MB, free: 2.453 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001424/0.3027, allocations: 132.7 kB / 342.2 MB, free: 2.305 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.161e-05/0.3028, allocations: 12 kB / 342.2 MB, free: 2.293 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.303, allocations: 19.98 kB / 342.2 MB, free: 2.273 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.326e-05/0.3031, allocations: 27.91 kB / 342.2 MB, free: 2.246 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.459e-05/0.3031, allocations: 16 kB / 342.3 MB, free: 2.23 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002769/0.3034, allocations: 255 kB / 342.5 MB, free: 1.984 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3034, allocations: 0 / 342.5 MB, free: 1.984 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000445/0.3039, allocations: 100.5 kB / 342.6 MB, free: 1.887 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.001074/0.305, allocations: 434.7 kB / 343 MB, free: 1.461 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007354/0.3057, allocations: 382.3 kB / 343.4 MB, free: 1.074 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.3057, allocations: 4 kB / 343.4 MB, free: 1.07 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002291/0.3059, allocations: 135.8 kB / 343.5 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005814/0.3065, allocations: 97.77 kB / 343.6 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.3086, allocations: 1.039 MB / 344.7 MB, free: 15.76 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004508/0.309, allocations: 0.8041 MB / 345.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001986/0.3092, allocations: 51.23 kB / 345.5 MB, free: 14.88 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.572e-05/0.3093, allocations: 31.44 kB / 345.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3093, allocations: 0 / 345.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of Templates: time 0.01105/0.3204, allocations: 5.234 MB / 350.8 MB, free: 9.609 MB / 286.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)