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.001594/0.001594, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001186/0.001186, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.334/1.334, allocations: 222.9 MB / 242.2 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001639/0.00164, allocations: 49.77 kB / 301.3 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1129, allocations: 49.45 MB / 350.7 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2644/0.3773, allocations: 90.08 MB / 440.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03262/0.41, allocations: 21.31 MB / 462.1 MB, free: 4.832 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003009/0.4131, allocations: 91.44 kB / 462.2 MB, free: 4.742 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003129/0.4162, allocations: 0.9356 MB / 463.1 MB, free: 3.801 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01023/0.4265, allocations: 3.733 MB / 466.9 MB, free: 52 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01386/0.4404, allocations: 5.659 MB / 472.5 MB, free: 10.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01041/0.4508, allocations: 7.057 MB / 479.6 MB, free: 3.324 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003835/0.4547, allocations: 1.837 MB / 481.4 MB, free: 1.473 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3765/0.8312, allocations: 74.86 MB / 0.5433 GB, free: 61.18 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06422/0.8955, allocations: 31.93 MB / 0.5744 GB, free: 51.47 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001009/0.8965, allocations: 246.4 kB / 0.5747 GB, free: 51.47 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01457/0.9111, allocations: 6.093 MB / 0.5806 GB, free: 49.86 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001665/0.9128, allocations: 1.082 MB / 0.5817 GB, free: 49.29 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002278/0.9151, allocations: 1.497 MB / 0.5831 GB, free: 48.5 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008708/0.9238, allocations: 5.463 MB / 0.5885 GB, free: 44.42 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.9239, allocations: 6.109 kB / 0.5885 GB, free: 44.42 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.9239, allocations: 0 / 0.5885 GB, free: 44.42 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.01e-05/0.924, allocations: 0 / 0.5885 GB, free: 44.42 MB / 446.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.007924/0.9319, allocations: 3.495 MB / 0.5919 GB, free: 41.38 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.932, allocations: 8.031 kB / 0.5919 GB, free: 41.38 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009066/0.9329, allocations: 316.3 kB / 0.5922 GB, free: 41.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002253/0.9351, allocations: 1.572 MB / 0.5937 GB, free: 39.83 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001357/0.9353, allocations: 215.9 kB / 0.5939 GB, free: 39.67 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000292/0.9356, allocations: 201.2 kB / 0.5941 GB, free: 39.54 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0043/0.9399, allocations: 3.296 MB / 0.5974 GB, free: 37.11 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.747e-05/0.94, allocations: 7.188 kB / 0.5974 GB, free: 37.11 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002178/0.9402, allocations: 86.8 kB / 0.5974 GB, free: 37.09 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000244/0.9404, allocations: 249.8 kB / 0.5977 GB, free: 36.88 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004466/0.9449, allocations: 3.109 MB / 0.6007 GB, free: 34.81 MB / 446.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.01616/0.9611, allocations: 13.83 MB / 0.6142 GB, free: 22.56 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003624/0.9648, allocations: 2.216 MB / 0.6164 GB, free: 20.36 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001831/0.9666, allocations: 1.352 MB / 0.6177 GB, free: 19 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007509/0.9741, allocations: 5.859 MB / 0.6234 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.9742, allocations: 52.56 kB / 0.6235 GB, free: 12.62 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007604/0.975, allocations: 181.9 kB / 0.6237 GB, free: 12.44 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 4.118e-06/0.975, allocations: 0 / 0.6237 GB, free: 12.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.02125/0.9963, allocations: 9.146 MB / 0.6326 GB, free: 3.227 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.544e-05/0.9963, allocations: 73.41 kB / 0.6327 GB, free: 3.141 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002117/0.9985, allocations: 1.841 MB / 0.6345 GB, free: 1.258 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003004/0.9988, allocations: 64.42 kB / 0.6345 GB, free: 1.191 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000528/0.9993, allocations: 1.059 MB / 0.6355 GB, free: 132 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006675/1, allocations: 0.6792 MB / 0.6362 GB, free: 15.45 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007745/1.001, allocations: 460.3 kB / 0.6367 GB, free: 14.99 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/1.001, allocations: 305.1 kB / 0.6369 GB, free: 14.69 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002147/1.003, allocations: 1.233 MB / 0.6381 GB, free: 13.45 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002552/1.006, allocations: 1.811 MB / 0.6399 GB, free: 11.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004847/1.01, allocations: 3.151 MB / 0.643 GB, free: 8.082 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.265e-05/1.011, allocations: 9.438 kB / 0.643 GB, free: 8.074 MB / 462.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007711/1.018, allocations: 4.291 MB / 0.6472 GB, free: 3.875 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.581e-05/1.018, allocations: 12 kB / 0.6472 GB, free: 3.863 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.723e-05/1.018, allocations: 20 kB / 0.6472 GB, free: 3.844 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01467/1.033, allocations: 3.654 MB / 0.6508 GB, free: 204 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001446/1.035, allocations: 332.3 kB / 0.6511 GB, free: 15.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007057/1.042, allocations: 3.946 MB / 0.655 GB, free: 11.96 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002274/1.044, allocations: 99.88 kB / 0.6551 GB, free: 11.86 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002867/1.044, allocations: 116 kB / 0.6552 GB, free: 11.75 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00289/1.047, allocations: 1.668 MB / 0.6568 GB, free: 10.07 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002444/1.05, allocations: 1.759 MB / 0.6585 GB, free: 8.066 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004516/1.054, allocations: 3.044 MB / 0.6615 GB, free: 4.848 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.524e-05/1.054, allocations: 8 kB / 0.6615 GB, free: 4.84 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007122/1.061, allocations: 4.028 MB / 0.6654 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.708e-05/1.061, allocations: 12 kB / 0.6654 GB, free: 0.8945 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.598e-05/1.061, allocations: 19.84 kB / 0.6655 GB, free: 0.8789 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0101/1.071, allocations: 2.767 MB / 0.6682 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001755/1.073, allocations: 372.3 kB / 0.6685 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005741/1.079, allocations: 3.469 MB / 0.6719 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002222/1.081, allocations: 87.95 kB / 0.672 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002593/1.082, allocations: 112 kB / 0.6721 GB, free: 10.12 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 4 (tank.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 174 * 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 {(18,107)} Notification: Performance of prepare postOptimizeDAE: time 0.0006585/1.082, allocations: 321.4 kB / 0.6724 GB, free: 9.824 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005102/1.083, allocations: 225.3 kB / 0.6726 GB, free: 9.602 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008249/1.091, allocations: 3.96 MB / 0.6765 GB, free: 5.645 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.07e-05/1.091, allocations: 24 kB / 0.6765 GB, free: 5.621 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.37e-05/1.091, allocations: 0 / 0.6765 GB, free: 5.621 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006217/1.097, allocations: 3.369 MB / 0.6798 GB, free: 2.172 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/1.109, allocations: 6.297 MB / 0.6859 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/1.109, allocations: 0 / 0.6859 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001446/1.11, allocations: 325.1 kB / 0.6863 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004226/1.115, allocations: 1.158 MB / 0.6874 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003119/1.115, allocations: 75.89 kB / 0.6875 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01057/1.126, allocations: 11.07 MB / 0.6983 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/1.126, allocations: 0 / 0.6983 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01012/1.136, allocations: 5.197 MB / 0.7033 GB, free: 9.297 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001738/1.138, allocations: 0.5915 MB / 0.7039 GB, free: 8.684 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005811/1.138, allocations: 59.97 kB / 0.704 GB, free: 8.625 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/1.14, allocations: 67.95 kB / 0.704 GB, free: 8.559 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004408/1.14, allocations: 165.8 kB / 0.7042 GB, free: 8.395 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001971/1.14, allocations: 91.89 kB / 0.7043 GB, free: 8.305 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002194/1.142, allocations: 1.257 MB / 0.7055 GB, free: 7.027 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.21e-07/1.143, allocations: 0 / 0.7055 GB, free: 7.027 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006663/1.149, allocations: 1.73 MB / 0.7072 GB, free: 5.297 MB / 0.5137 GB 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 (182): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (2,8), (5,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002724/1.152, allocations: 1.001 MB / 0.7082 GB, free: 4.367 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01642/1.168, allocations: 6.859 MB / 0.7149 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.287e-06/1.168, allocations: 0 / 0.7149 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004499/1.173, allocations: 2.228 MB / 0.7171 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00606/1.179, allocations: 1.064 MB / 0.7181 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01268/1.192, allocations: 5.783 MB / 0.7237 GB, free: 4.566 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001704/1.193, allocations: 1.856 MB / 0.7256 GB, free: 2.672 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008905/1.194, allocations: 206.6 kB / 0.7258 GB, free: 2.473 MB / 0.5294 GB Notification: Performance of SimCode: time 7.51e-07/1.194, allocations: 0 / 0.7258 GB, free: 2.473 MB / 0.5294 GB Notification: Performance of Templates: time 0.2629/1.457, allocations: 88.77 MB / 0.8124 GB, free: 178.6 MB / 0.5294 GB 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)