Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 101 kB / 16.94 MB, free: 5.98 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.0009409/0.0009409, allocations: 178.1 kB / 17.82 MB, free: 5.652 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.549/1.549, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.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.000808/0.000808, allocations: 12 kB / 280.8 MB, free: 3.66 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1167, allocations: 47.58 MB / 328.4 MB, free: 4.016 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.3044/0.4212, allocations: 67.56 MB / 396 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03755/0.4588, allocations: 20.66 MB / 416.6 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005841/0.4647, allocations: 108.3 kB / 416.7 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004909/0.4697, allocations: 0.9102 MB / 417.6 MB, free: 8.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01176/0.4815, allocations: 2.7 MB / 420.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01792/0.4994, allocations: 5.416 MB / 425.8 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008101/0.5075, allocations: 3.879 MB / 429.6 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003136/0.5107, allocations: 1.52 MB / 431.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4209/0.9316, allocations: 123.9 MB / 0.542 GB, free: 106.6 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06848/1, allocations: 53.33 MB / 0.5941 GB, free: 62.11 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009975/1.001, allocations: 124 kB / 0.5942 GB, free: 61.99 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01514/1.016, allocations: 7.998 MB / 0.602 GB, free: 54.99 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002288/1.019, allocations: 0.875 MB / 0.6029 GB, free: 54.41 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001652/1.02, allocations: 0.53 MB / 0.6034 GB, free: 54.1 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007314/1.028, allocations: 3.82 MB / 0.6071 GB, free: 50.8 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/1.028, allocations: 0 / 0.6071 GB, free: 50.8 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.417e-06/1.028, allocations: 0 / 0.6071 GB, free: 50.8 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.442e-05/1.028, allocations: 1.531 kB / 0.6071 GB, free: 50.8 MB / 430.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.007596/1.035, allocations: 3.005 MB / 0.6101 GB, free: 47.98 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/1.036, allocations: 8.031 kB / 0.6101 GB, free: 47.97 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008397/1.036, allocations: 352.2 kB / 0.6104 GB, free: 47.75 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008765/1.037, allocations: 308.6 kB / 0.6107 GB, free: 47.45 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002951/1.04, allocations: 1.522 MB / 0.6122 GB, free: 46.27 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001712/1.04, allocations: 218.9 kB / 0.6124 GB, free: 46.11 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002885/1.041, allocations: 199.4 kB / 0.6126 GB, free: 45.98 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004735/1.045, allocations: 3.275 MB / 0.6158 GB, free: 43.58 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.921e-05/1.045, allocations: 10.34 kB / 0.6158 GB, free: 43.57 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002448/1.046, allocations: 85.64 kB / 0.6159 GB, free: 43.55 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002864/1.046, allocations: 251.6 kB / 0.6161 GB, free: 43.34 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004965/1.051, allocations: 3.109 MB / 0.6191 GB, free: 41.27 MB / 430.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.01833/1.069, allocations: 13.96 MB / 0.6328 GB, free: 29.08 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003596/1.073, allocations: 2.218 MB / 0.6349 GB, free: 27.66 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008669/1.082, allocations: 5.923 MB / 0.6407 GB, free: 22.42 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/1.082, allocations: 58.3 kB / 0.6408 GB, free: 22.37 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008456/1.083, allocations: 183.5 kB / 0.641 GB, free: 22.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=173): time 4.419e-06/1.083, allocations: 0 / 0.641 GB, free: 22.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=199): time 0.02021/1.103, allocations: 9.306 MB / 0.65 GB, free: 15.22 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/1.103, allocations: 81.41 kB / 0.6501 GB, free: 15.13 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002413/1.105, allocations: 1.826 MB / 0.6519 GB, free: 13.61 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000179/1.106, allocations: 58.64 kB / 0.652 GB, free: 13.55 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006142/1.106, allocations: 1.063 MB / 0.653 GB, free: 12.48 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004846/1.107, allocations: 0.6785 MB / 0.6537 GB, free: 11.81 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/1.107, allocations: 48 kB / 0.6537 GB, free: 11.76 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/1.107, allocations: 406.7 kB / 0.6541 GB, free: 11.36 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/1.109, allocations: 1.203 MB / 0.6553 GB, free: 10.15 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001799/1.11, allocations: 1.774 MB / 0.657 GB, free: 8.145 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001838/1.112, allocations: 1.467 MB / 0.6584 GB, free: 6.695 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/1.112, allocations: 8 kB / 0.6584 GB, free: 6.688 MB / 430.1 MB Notification: Performance of matching and sorting (n=300) (initialization): time 0.005922/1.118, allocations: 4.253 MB / 0.6626 GB, free: 2.523 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002627/1.121, allocations: 6.971 MB / 0.6694 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.929e-05/1.121, allocations: 20 kB / 0.6694 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01364/1.135, allocations: 3.63 MB / 0.673 GB, free: 7.344 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00137/1.136, allocations: 331.2 kB / 0.6733 GB, free: 7.043 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006715/1.143, allocations: 4.021 MB / 0.6772 GB, free: 3.012 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002548/1.145, allocations: 187.6 kB / 0.6774 GB, free: 2.828 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002484/1.145, allocations: 116 kB / 0.6775 GB, free: 2.715 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/1.146, allocations: 4 kB / 0.6775 GB, free: 2.711 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00666/1.152, allocations: 3.834 MB / 0.6812 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.702e-05/1.152, allocations: 22.25 kB / 0.6813 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009871/1.162, allocations: 2.879 MB / 0.6841 GB, free: 12.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001605/1.164, allocations: 373.7 kB / 0.6844 GB, free: 11.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005635/1.169, allocations: 3.53 MB / 0.6879 GB, free: 8.227 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002684/1.172, allocations: 195.7 kB / 0.6881 GB, free: 8.035 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002541/1.172, allocations: 112 kB / 0.6882 GB, free: 7.926 MB / 462.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.001714/1.174, allocations: 0.6977 MB / 0.6889 GB, free: 7.242 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004565/1.175, allocations: 237.1 kB / 0.6891 GB, free: 7.008 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007853/1.182, allocations: 3.983 MB / 0.693 GB, free: 3.027 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.719e-05/1.182, allocations: 31.98 kB / 0.693 GB, free: 2.996 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.849e-05/1.183, allocations: 4 kB / 0.693 GB, free: 2.992 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006076/1.189, allocations: 3.402 MB / 0.6963 GB, free: 15.51 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01326/1.202, allocations: 6.374 MB / 0.7026 GB, free: 9.117 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/1.202, allocations: 4 kB / 0.7026 GB, free: 9.113 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001402/1.203, allocations: 315.2 kB / 0.7029 GB, free: 8.82 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004566/1.208, allocations: 1.265 MB / 0.7041 GB, free: 7.535 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002856/1.208, allocations: 75.89 kB / 0.7042 GB, free: 7.461 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2547/1.463, allocations: 10.59 MB / 0.7145 GB, free: 198.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/1.463, allocations: 1.125 kB / 0.7145 GB, free: 198.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01115/1.474, allocations: 5.245 MB / 0.7196 GB, free: 198.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002023/1.476, allocations: 0.622 MB / 0.7202 GB, free: 197.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004685/1.477, allocations: 56.83 kB / 0.7203 GB, free: 197.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001633/1.478, allocations: 151.6 kB / 0.7204 GB, free: 197.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005001/1.479, allocations: 168.2 kB / 0.7206 GB, free: 197.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002235/1.479, allocations: 85.39 kB / 0.7207 GB, free: 197.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002189/1.481, allocations: 1.213 MB / 0.7219 GB, free: 197.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.481, allocations: 0 / 0.7219 GB, free: 197.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006772/1.488, allocations: 1.739 MB / 0.7236 GB, free: 197.1 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.01136/1.5, allocations: 6.676 MB / 0.7301 GB, free: 194.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01011/1.51, allocations: 5.03 MB / 0.735 GB, free: 192.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.856e-06/1.51, allocations: 0.9688 kB / 0.735 GB, free: 192.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004106/1.514, allocations: 2.258 MB / 0.7372 GB, free: 191.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005063/1.519, allocations: 0.921 MB / 0.7381 GB, free: 191 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/1.535, allocations: 20.33 MB / 0.7579 GB, free: 170.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00124/1.536, allocations: 1.926 MB / 0.7598 GB, free: 168.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003205/1.539, allocations: 0.9559 MB / 0.7608 GB, free: 167.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00115/1.54, allocations: 1.011 MB / 0.7617 GB, free: 166.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.132e-06/1.54, allocations: 3.062 kB / 0.7617 GB, free: 166.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1252/1.666, allocations: 90.76 MB / 0.8504 GB, free: 75.86 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001566/1.666, allocations: 208.5 kB / 0.8506 GB, free: 75.61 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.598/6.264, allocations: 4 kB / 0.8506 GB, free: 75.6 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat