Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009634/0.0009635, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.0008835/0.0008836, allocations: 180.4 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 223.2 MB / 241.1 MB, free: 5.312 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002564/0.0002565, allocations: 9.969 kB / 300.7 MB, free: 5.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08943/0.0897, allocations: 50.42 MB / 351.1 MB, free: 11.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.06325/0.153, allocations: 67.55 MB / 418.7 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2166/0.3696, allocations: 20.65 MB / 439.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002925/0.3726, allocations: 105.1 kB / 439.4 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002777/0.3754, allocations: 0.9198 MB / 440.4 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008009/0.3834, allocations: 2.705 MB / 443.1 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01549/0.3989, allocations: 5.436 MB / 448.5 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006763/0.4057, allocations: 3.871 MB / 452.4 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002552/0.4083, allocations: 1.535 MB / 453.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1949/0.6032, allocations: 123.9 MB / 0.5643 GB, free: 12 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2941/0.8973, allocations: 53.33 MB / 0.6164 GB, free: 126.9 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001213/0.8986, allocations: 124.8 kB / 0.6165 GB, free: 126.8 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01545/0.9141, allocations: 8.014 MB / 0.6243 GB, free: 120.9 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002144/0.9162, allocations: 0.8797 MB / 0.6252 GB, free: 120.6 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001757/0.918, allocations: 0.5261 MB / 0.6257 GB, free: 120.2 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007137/0.9252, allocations: 3.824 MB / 0.6294 GB, free: 116.9 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.9252, allocations: 0 / 0.6294 GB, free: 116.9 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.9252, allocations: 3.188 kB / 0.6294 GB, free: 116.9 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0001851/0.9254, allocations: 0 / 0.6294 GB, free: 116.9 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.008411/0.9338, allocations: 3.006 MB / 0.6323 GB, free: 114.1 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.9339, allocations: 8.031 kB / 0.6324 GB, free: 114.1 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001515/0.9354, allocations: 314.8 kB / 0.6327 GB, free: 113.8 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004489/0.9399, allocations: 1.52 MB / 0.6341 GB, free: 112.6 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002503/0.9402, allocations: 225 kB / 0.6343 GB, free: 112.5 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008782/0.9411, allocations: 198.5 kB / 0.6345 GB, free: 112.3 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005179/0.9463, allocations: 3.267 MB / 0.6377 GB, free: 109.9 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.334e-05/0.9464, allocations: 6.062 kB / 0.6377 GB, free: 109.9 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002227/0.9466, allocations: 86.08 kB / 0.6378 GB, free: 109.9 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002596/0.9469, allocations: 252 kB / 0.6381 GB, free: 109.7 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004512/0.9514, allocations: 3.101 MB / 0.6411 GB, free: 107.6 MB / 478.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01852/0.9699, allocations: 13.95 MB / 0.6547 GB, free: 95.48 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003461/0.9734, allocations: 2.207 MB / 0.6569 GB, free: 94.07 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007703/0.9811, allocations: 5.928 MB / 0.6627 GB, free: 88.83 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/0.9812, allocations: 54.44 kB / 0.6627 GB, free: 88.78 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008202/0.982, allocations: 186 kB / 0.6629 GB, free: 88.62 MB / 478.1 MB Notification: Performance of pre-optimization done (n=173): time 5.099e-06/0.982, allocations: 0 / 0.6629 GB, free: 88.62 MB / 478.1 MB Notification: Performance of matching and sorting (n=199): time 0.02094/1.003, allocations: 9.314 MB / 0.672 GB, free: 81.63 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/1.003, allocations: 72.88 kB / 0.672 GB, free: 81.55 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002251/1.005, allocations: 1.828 MB / 0.6738 GB, free: 80.14 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003247/1.006, allocations: 63.58 kB / 0.6739 GB, free: 80.1 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006215/1.006, allocations: 1.053 MB / 0.6749 GB, free: 79.44 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005021/1.007, allocations: 0.6823 MB / 0.6756 GB, free: 78.86 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/1.007, allocations: 49.69 kB / 0.6756 GB, free: 78.85 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/1.007, allocations: 394.9 kB / 0.676 GB, free: 78.49 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001673/1.009, allocations: 1.21 MB / 0.6772 GB, free: 77.69 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001807/1.011, allocations: 1.771 MB / 0.6789 GB, free: 76.14 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001864/1.012, allocations: 1.465 MB / 0.6804 GB, free: 75.23 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.338e-06/1.012, allocations: 6.188 kB / 0.6804 GB, free: 75.23 MB / 478.1 MB Notification: Performance of matching and sorting (n=300) (initialization): time 0.005986/1.018, allocations: 4.264 MB / 0.6845 GB, free: 72.36 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00106/1.02, allocations: 6.967 MB / 0.6913 GB, free: 64.97 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/1.02, allocations: 16 kB / 0.6913 GB, free: 64.95 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01258/1.032, allocations: 3.635 MB / 0.6949 GB, free: 61.73 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/1.033, allocations: 332.2 kB / 0.6952 GB, free: 61.44 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005572/1.039, allocations: 4.019 MB / 0.6991 GB, free: 58.55 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002279/1.041, allocations: 193 kB / 0.6993 GB, free: 58.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003028/1.042, allocations: 113.8 kB / 0.6994 GB, free: 58.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/1.042, allocations: 4 kB / 0.6994 GB, free: 58.3 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005728/1.047, allocations: 3.833 MB / 0.7032 GB, free: 55.84 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.071e-05/1.047, allocations: 20 kB / 0.7032 GB, free: 55.82 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009071/1.056, allocations: 2.89 MB / 0.706 GB, free: 53.31 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001482/1.058, allocations: 375.2 kB / 0.7064 GB, free: 52.98 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004513/1.063, allocations: 3.524 MB / 0.7098 GB, free: 49.93 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002136/1.065, allocations: 194.2 kB / 0.71 GB, free: 49.74 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002994/1.065, allocations: 112 kB / 0.7101 GB, free: 49.63 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 108} Notification: Performance of prepare postOptimizeDAE: time 0.001266/1.066, allocations: 0.7008 MB / 0.7108 GB, free: 48.95 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004948/1.067, allocations: 225.3 kB / 0.711 GB, free: 48.72 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006815/1.074, allocations: 3.996 MB / 0.7149 GB, free: 44.73 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.33e-05/1.074, allocations: 25.53 kB / 0.7149 GB, free: 44.71 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.931e-05/1.074, allocations: 7.953 kB / 0.7149 GB, free: 44.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004794/1.078, allocations: 3.399 MB / 0.7183 GB, free: 41.22 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009907/1.088, allocations: 6.373 MB / 0.7245 GB, free: 34.83 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.418e-06/1.088, allocations: 0 / 0.7245 GB, free: 34.83 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001354/1.09, allocations: 319.1 kB / 0.7248 GB, free: 34.53 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004242/1.094, allocations: 1.263 MB / 0.726 GB, free: 33.25 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002301/1.094, allocations: 79.94 kB / 0.7261 GB, free: 33.18 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007607/1.102, allocations: 10.58 MB / 0.7364 GB, free: 21.92 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/1.102, allocations: 64 / 0.7364 GB, free: 21.92 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008069/1.11, allocations: 5.241 MB / 0.7415 GB, free: 16.66 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001704/1.112, allocations: 0.6227 MB / 0.7421 GB, free: 16.01 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006247/1.112, allocations: 57.73 kB / 0.7422 GB, free: 15.96 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001858/1.114, allocations: 147.7 kB / 0.7423 GB, free: 15.81 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003942/1.115, allocations: 174.4 kB / 0.7425 GB, free: 15.64 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002191/1.115, allocations: 75.95 kB / 0.7426 GB, free: 15.57 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001692/1.117, allocations: 1.226 MB / 0.7438 GB, free: 14.32 MB / 478.1 MB Notification: Performance of sort global known variables: time 2e-07/1.117, allocations: 0 / 0.7438 GB, free: 14.32 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004696/1.121, allocations: 1.73 MB / 0.7455 GB, free: 12.59 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.level,tank.medium.T,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.002395/1.124, allocations: 0.9799 MB / 0.7464 GB, free: 11.69 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009183/1.133, allocations: 5.034 MB / 0.7513 GB, free: 6.75 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/1.133, allocations: 2 kB / 0.7513 GB, free: 6.75 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003555/1.136, allocations: 2.249 MB / 0.7535 GB, free: 4.477 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004117/1.141, allocations: 0.9341 MB / 0.7545 GB, free: 3.555 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009696/1.15, allocations: 6.646 MB / 0.7609 GB, free: 12.92 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001915/1.152, allocations: 1.933 MB / 0.7628 GB, free: 10.95 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003438/1.156, allocations: 0.9537 MB / 0.7638 GB, free: 9.992 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006872/1.156, allocations: 187.4 kB / 0.7639 GB, free: 9.809 MB / 494.1 MB Notification: Performance of SimCode: time 1.463e-06/1.156, allocations: 0 / 0.7639 GB, free: 9.809 MB / 494.1 MB Notification: Performance of Templates: time 0.2409/1.397, allocations: 69.29 MB / 0.8316 GB, free: 154.9 MB / 494.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)