Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestNTUWaterHeater0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestNTUWaterHeater0",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7567/0.7567, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.418e-05/1.419e-05, allocations: 4 kB / 204.9 MB, free: 9.961 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1288, allocations: 31.99 MB / 236.8 MB, free: 5.398 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0): time 1.43/1.559, allocations: 299.2 MB / 0.5235 GB, free: 8.734 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4366/1.995, allocations: 191.3 MB / 0.7103 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006669/1.996, allocations: 21.22 kB / 0.7104 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004776/1.997, allocations: 240.2 kB / 0.7106 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0009752/1.998, allocations: 0.5223 MB / 0.7111 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02256/2.02, allocations: 9.872 MB / 0.7207 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001836/2.022, allocations: 2.031 MB / 0.7227 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006702/2.023, allocations: 0.7296 MB / 0.7234 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007069/2.023, allocations: 0.6953 MB / 0.7241 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000533/2.024, allocations: 0.692 MB / 0.7248 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.751e-05/2.024, allocations: 71.41 kB / 0.7249 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02558/2.05, allocations: 18.23 MB / 0.7427 GB, free: 2.625 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003241/2.05, allocations: 257.8 kB / 0.7429 GB, free: 2.582 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009979/2.051, allocations: 0.8092 MB / 0.7437 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01772/2.069, allocations: 10.68 MB / 0.7541 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/2.069, allocations: 3.984 kB / 0.7541 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.774e-06/2.069, allocations: 0 / 0.7541 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.639e-05/2.069, allocations: 0 / 0.7541 GB, free: 14.36 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 499 * Number of variables: 499 Notification: Performance of Generate backend data structure: time 0.005484/2.074, allocations: 2.631 MB / 0.7567 GB, free: 12.69 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/2.074, allocations: 11.56 kB / 0.7567 GB, free: 12.69 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000205/2.075, allocations: 255.5 kB / 0.7569 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002058/2.075, allocations: 194.6 kB / 0.7571 GB, free: 12.49 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007351/2.075, allocations: 0.6732 MB / 0.7578 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/2.076, allocations: 227 kB / 0.758 GB, free: 11.94 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/2.076, allocations: 134.1 kB / 0.7581 GB, free: 11.94 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002145/2.078, allocations: 1.828 MB / 0.7599 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.232e-05/2.078, allocations: 3.984 kB / 0.7599 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.812e-05/2.078, allocations: 66.67 kB / 0.76 GB, free: 11.37 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.415e-05/2.078, allocations: 70.83 kB / 0.7601 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001745/2.08, allocations: 1.297 MB / 0.7613 GB, free: 11.2 MB / 0.5919 GB 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.1424/2.222, allocations: 70.28 MB / 0.83 GB, free: 7.238 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/2.223, allocations: 0.8824 MB / 0.8308 GB, free: 6.691 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006955/2.224, allocations: 0.6529 MB / 0.8315 GB, free: 6.336 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8455/3.07, allocations: 412.7 MB / 1.235 GB, free: 201.4 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.113e-05/3.07, allocations: 42.91 kB / 1.235 GB, free: 201.3 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=200): time 2.806e-06/3.07, allocations: 0 / 1.235 GB, free: 201.3 MB / 0.8106 GB Notification: Performance of matching and sorting (n=200): time 0.006471/3.076, allocations: 3.533 MB / 1.238 GB, free: 198.7 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/3.076, allocations: 162.8 kB / 1.238 GB, free: 198.5 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000743/3.077, allocations: 0.6969 MB / 1.239 GB, free: 198 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/3.077, allocations: 33.58 kB / 1.239 GB, free: 198 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002588/3.077, allocations: 0.6262 MB / 1.239 GB, free: 197.5 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002814/3.078, allocations: 0.6406 MB / 1.24 GB, free: 196.9 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/3.078, allocations: 166 kB / 1.24 GB, free: 196.8 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 5.52e-05/3.078, allocations: 353.6 kB / 1.241 GB, free: 196.5 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000722/3.079, allocations: 0.5451 MB / 1.241 GB, free: 196.1 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008193/3.079, allocations: 0.9863 MB / 1.242 GB, free: 195.2 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001593/3.081, allocations: 1.707 MB / 1.244 GB, free: 193.3 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.225e-06/3.081, allocations: 8 kB / 1.244 GB, free: 193.3 MB / 0.8106 GB Notification: Performance of matching and sorting (n=268) (initialization): time 0.002974/3.084, allocations: 2.378 MB / 1.246 GB, free: 190.9 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/3.084, allocations: 12 kB / 1.246 GB, free: 190.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.064e-05/3.084, allocations: 12.75 kB / 1.246 GB, free: 190.9 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004481/3.089, allocations: 2.181 MB / 1.248 GB, free: 188.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003616/3.089, allocations: 151.6 kB / 1.248 GB, free: 188.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002637/3.092, allocations: 3.754 MB / 1.252 GB, free: 184.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007143/3.092, allocations: 198 kB / 1.252 GB, free: 184.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.37e-05/3.092, allocations: 59.98 kB / 1.252 GB, free: 184.4 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 26 (nTUWaterHeating.Sp.ftype,Source_condenseur.C.ftype,nTUWaterHeating.Ep.ftype,sourceP.C.ftype,nTUWaterHeating.fluids[1],Puit_condenseur.fluid,singularPressureLoss2.fluid,singularPressureLoss3.fluid,Puit_condenseur1.fluid,singularPressureLoss4.fluid,singularPressureLoss5.fluid,nTUWaterHeating.fluid_e,sourceP.fluid1,Source_condenseur.fluid1,nTUWaterHeating.Sp.diff_on_1,singularPressureLoss5.C2.diff_on_1,nTUWaterHeating.Ev.diff_on_2,sourceP.C.diff_on_2,nTUWaterHeating.Ep.diff_on_2,nTUWaterHeating.Ee.diff_on_2,Source_condenseur.C.diff_on_2,nTUWaterHeating.Se.diff_on_1,singularPressureLoss4.C2.diff_on_1,nTUWaterHeating.Ep.diff_on_1,singularPressureLoss5.C1.diff_on_2,singularPressureLoss3.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,3), (1,3), (8,21), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003736/3.093, allocations: 309.4 kB / 1.253 GB, free: 184.1 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001745/3.093, allocations: 114.4 kB / 1.253 GB, free: 184 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00289/3.096, allocations: 2.438 MB / 1.255 GB, free: 181.6 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00217/3.098, allocations: 1.983 MB / 1.257 GB, free: 179.6 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/3.098, allocations: 4 kB / 1.257 GB, free: 179.6 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/3.098, allocations: 3.984 kB / 1.257 GB, free: 179.6 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004897/3.103, allocations: 4.507 MB / 1.261 GB, free: 175 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.226e-06/3.103, allocations: 4 kB / 1.261 GB, free: 175 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/3.103, allocations: 72.09 kB / 1.262 GB, free: 174.9 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004362/3.108, allocations: 2.286 MB / 1.264 GB, free: 172.6 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.238e-05/3.108, allocations: 27.98 kB / 1.264 GB, free: 172.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002498/3.11, allocations: 3.774 MB / 1.267 GB, free: 168.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/3.11, allocations: 8.531 kB / 1.267 GB, free: 168.7 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0027/3.113, allocations: 2.335 MB / 1.27 GB, free: 166.4 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003087/3.113, allocations: 308.9 kB / 1.27 GB, free: 166 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.397e-05/3.113, allocations: 23.98 kB / 1.27 GB, free: 166 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004319/3.114, allocations: 39.92 kB / 1.27 GB, free: 166 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/3.114, allocations: 60.56 kB / 1.27 GB, free: 165.9 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.648e-05/3.114, allocations: 28.66 kB / 1.27 GB, free: 165.9 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004007/3.114, allocations: 455 kB / 1.271 GB, free: 165.4 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/3.114, allocations: 0 / 1.271 GB, free: 165.4 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003307/3.118, allocations: 1.651 MB / 1.272 GB, free: 163.9 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 2 (Source_condenseur.C.diff_on_2,singularPressureLoss4.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,3), (1,3), (8,25), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008101/3.126, allocations: 4.884 MB / 1.277 GB, free: 159.3 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002692/3.128, allocations: 1.817 MB / 1.279 GB, free: 157.5 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/3.128, allocations: 0 / 1.279 GB, free: 157.5 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001557/3.13, allocations: 0.9888 MB / 1.28 GB, free: 156.5 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002656/3.133, allocations: 0.5749 MB / 1.28 GB, free: 155.9 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01363/3.146, allocations: 12.68 MB / 1.293 GB, free: 142.7 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005011/3.147, allocations: 1.235 MB / 1.294 GB, free: 141.4 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005948/3.147, allocations: 156.4 kB / 1.294 GB, free: 141.3 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004091/3.148, allocations: 0.5461 MB / 1.295 GB, free: 140.7 MB / 0.8106 GB Notification: Performance of SimCode: time 4.91e-07/3.148, allocations: 3 kB / 1.295 GB, free: 140.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1678/3.316, allocations: 77.54 MB / 1.37 GB, free: 64.54 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002602/3.316, allocations: 285.7 kB / 1.371 GB, free: 64.16 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.999/8.315, allocations: 0 / 1.371 GB, free: 64.16 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestNTUWaterHeater0_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestNTUWaterHeater0.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0.pipe 2>&1)