Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1.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.Examples.SimpleExamples.TestNTUWaterHeating1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestNTUWaterHeating1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestNTUWaterHeating1",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.8098/0.8098, allocations: 150.8 MB / 166.1 MB, free: 15.45 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.145e-05/2.148e-05, allocations: 4 kB / 204.9 MB, free: 9.965 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1586, allocations: 31.98 MB / 236.8 MB, free: 5.258 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.Examples.SimpleExamples.TestNTUWaterHeating1): time 1.501/1.659, allocations: 298.5 MB / 0.5228 GB, free: 9.41 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04672/1.706, allocations: 39.91 MB / 0.5617 GB, free: 1.637 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008628/1.707, allocations: 8 kB / 0.5618 GB, free: 1.629 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007362/1.708, allocations: 234.5 kB / 0.562 GB, free: 1.398 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001374/1.709, allocations: 436.8 kB / 0.5624 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02416/1.733, allocations: 7.854 MB / 0.5701 GB, free: 9.109 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002326/1.736, allocations: 1.665 MB / 0.5717 GB, free: 7.438 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007672/1.736, allocations: 458 kB / 0.5721 GB, free: 6.988 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000861/1.737, allocations: 0.5597 MB / 0.5727 GB, free: 6.426 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004698/1.738, allocations: 0.4934 MB / 0.5732 GB, free: 5.93 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.727e-05/1.738, allocations: 40 kB / 0.5732 GB, free: 5.891 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02597/1.764, allocations: 15.93 MB / 0.5887 GB, free: 5.941 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000209/1.764, allocations: 167.1 kB / 0.5889 GB, free: 5.777 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007495/1.765, allocations: 0.6116 MB / 0.5895 GB, free: 5.156 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01534/1.78, allocations: 8.871 MB / 0.5982 GB, free: 12.26 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/1.78, allocations: 0 / 0.5982 GB, free: 12.26 MB / 494.1 MB Notification: Performance of FrontEnd: time 4.86e-06/1.78, allocations: 3.984 kB / 0.5982 GB, free: 12.26 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/1.78, allocations: 0 / 0.5982 GB, free: 12.26 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 407 * Number of variables: 407 Notification: Performance of Generate backend data structure: time 0.005089/1.785, allocations: 2.096 MB / 0.6002 GB, free: 10.11 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/1.785, allocations: 8.031 kB / 0.6002 GB, free: 10.1 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001835/1.786, allocations: 200.3 kB / 0.6004 GB, free: 9.895 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/1.786, allocations: 130.2 kB / 0.6005 GB, free: 9.766 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004926/1.786, allocations: 484.6 kB / 0.601 GB, free: 9.25 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001894/1.787, allocations: 180.8 kB / 0.6012 GB, free: 9.047 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.477e-05/1.787, allocations: 84 kB / 0.6013 GB, free: 8.965 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001739/1.788, allocations: 1.406 MB / 0.6026 GB, free: 7.477 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/1.788, allocations: 4 kB / 0.6026 GB, free: 7.473 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.492e-05/1.788, allocations: 39.94 kB / 0.6027 GB, free: 7.434 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.568e-05/1.789, allocations: 67.94 kB / 0.6027 GB, free: 7.367 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/1.79, allocations: 1 MB / 0.6037 GB, free: 6.363 MB / 494.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.005099/1.795, allocations: 6.418 MB / 0.61 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/1.796, allocations: 0.8539 MB / 0.6108 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000825/1.797, allocations: 0.7016 MB / 0.6115 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1598/1.957, allocations: 81.18 MB / 0.6908 GB, free: 3.762 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.484e-05/1.957, allocations: 39 kB / 0.6908 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=247): time 2.795e-06/1.957, allocations: 0 / 0.6908 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of matching and sorting (n=247): time 0.1661/2.123, allocations: 3.753 MB / 0.6945 GB, free: 226.9 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/2.123, allocations: 57.62 kB / 0.6945 GB, free: 226.8 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005926/2.124, allocations: 0.494 MB / 0.695 GB, free: 226.7 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001081/2.124, allocations: 34.95 kB / 0.695 GB, free: 226.7 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/2.124, allocations: 324 kB / 0.6954 GB, free: 226.6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000475/2.124, allocations: 0.7885 MB / 0.6961 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/2.125, allocations: 148.2 kB / 0.6963 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.919e-05/2.125, allocations: 335.6 kB / 0.6966 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007291/2.125, allocations: 0.5049 MB / 0.6971 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008037/2.126, allocations: 0.734 MB / 0.6978 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001741/2.128, allocations: 1.424 MB / 0.6992 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/2.128, allocations: 1.656 kB / 0.6992 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=268) (initialization): time 0.002884/2.131, allocations: 2.038 MB / 0.7012 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/2.131, allocations: 11.94 kB / 0.7012 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-05/2.131, allocations: 5.031 kB / 0.7012 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004359/2.135, allocations: 2.539 MB / 0.7037 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/2.135, allocations: 35.36 kB / 0.7037 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003057/2.138, allocations: 3.727 MB / 0.7073 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005628/2.139, allocations: 162.6 kB / 0.7075 GB, free: 222.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.525e-05/2.139, allocations: 33.09 kB / 0.7075 GB, free: 222.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 20 (Source_condenseur1.C.b,singularPressureLoss1.C2.b,singularPressureLoss1.C1.a,nTUWaterHeating.Ev.a,nTUWaterHeating.Sp.b,nTUWaterHeating.Ep.a,nTUWaterHeating.Se.b,nTUWaterHeating.Ee.a,singularPressureLoss5.C2.b,singularPressureLoss5.C1.a,singularPressureLoss4.C2.b,singularPressureLoss4.C1.a,Puit_condenseur1.C.a,singularPressureLoss3.C2.b,singularPressureLoss3.C1.a,singularPressureLoss2.C2.b,singularPressureLoss2.C1.a,sourceP.C.b,Puit_condenseur.C.a,Source_condenseur.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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), (1,3), (11,22)} Notification: Performance of prepare postOptimizeDAE: time 0.0003715/2.14, allocations: 248.1 kB / 0.7078 GB, free: 222.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001492/2.14, allocations: 102 kB / 0.7079 GB, free: 222.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00358/2.143, allocations: 3.14 MB / 0.7109 GB, free: 222.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002888/2.146, allocations: 2.416 MB / 0.7133 GB, free: 222.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.749e-06/2.146, allocations: 0.9375 kB / 0.7133 GB, free: 222.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/2.146, allocations: 11.77 kB / 0.7133 GB, free: 222.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007061/2.153, allocations: 5.809 MB / 0.719 GB, free: 220.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/2.153, allocations: 4.906 kB / 0.719 GB, free: 220.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004308/2.154, allocations: 173.7 kB / 0.7191 GB, free: 220.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003944/2.158, allocations: 2.683 MB / 0.7218 GB, free: 219.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.004e-05/2.158, allocations: 35.53 kB / 0.7218 GB, free: 219.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002876/2.161, allocations: 3.867 MB / 0.7256 GB, free: 216.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/2.161, allocations: 4.438 kB / 0.7256 GB, free: 216.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003079/2.164, allocations: 2.685 MB / 0.7282 GB, free: 215.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005312/2.164, allocations: 355 kB / 0.7285 GB, free: 215.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/2.164, allocations: 33.66 kB / 0.7286 GB, free: 215.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000608/2.165, allocations: 71.48 kB / 0.7286 GB, free: 215.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/2.165, allocations: 90.44 kB / 0.7287 GB, free: 215.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.733e-05/2.165, allocations: 45.34 kB / 0.7288 GB, free: 215.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003512/2.166, allocations: 386.2 kB / 0.7291 GB, free: 215 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/2.166, allocations: 0 / 0.7291 GB, free: 215 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002842/2.168, allocations: 1.365 MB / 0.7305 GB, free: 214.9 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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), (1,3), (11,26)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008105/2.177, allocations: 4.829 MB / 0.7352 GB, free: 212.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003187/2.18, allocations: 2.198 MB / 0.7373 GB, free: 211.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/2.18, allocations: 3.312 kB / 0.7373 GB, free: 211.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001892/2.182, allocations: 1.282 MB / 0.7386 GB, free: 210 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003542/2.185, allocations: 0.684 MB / 0.7393 GB, free: 209.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01375/2.199, allocations: 12.03 MB / 0.751 GB, free: 198.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006181/2.2, allocations: 1.274 MB / 0.7522 GB, free: 197.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000521/2.2, allocations: 121.2 kB / 0.7524 GB, free: 197.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004268/2.201, allocations: 0.5518 MB / 0.7529 GB, free: 196.6 MB / 0.5762 GB Notification: Performance of SimCode: time 7.71e-07/2.201, allocations: 0 / 0.7529 GB, free: 196.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09791/2.299, allocations: 77.94 MB / 0.829 GB, free: 120.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001839/2.299, allocations: 234.8 kB / 0.8292 GB, free: 120.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.833/7.132, allocations: 3.938 kB / 0.8292 GB, free: 120.6 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestNTUWaterHeating1_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestNTUWaterHeating1.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1.pipe 2>&1)