Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicWaterWaterExchanger.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.TestDynamicWaterWaterExchanger,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicWaterWaterExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDynamicWaterWaterExchanger,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicWaterWaterExchanger",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.7634/0.7634, allocations: 150.9 MB / 166.4 MB, free: 14.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003267/0.0003267, allocations: 19.97 kB / 204.6 MB, free: 9.652 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.132, allocations: 31.33 MB / 236 MB, free: 5.391 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestDynamicWaterWaterExchanger): time 1.494/1.626, allocations: 296.4 MB / 0.5199 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0283/1.654, allocations: 23.07 MB / 0.5424 GB, free: 4.777 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004193/1.655, allocations: 10.28 kB / 0.5424 GB, free: 4.77 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/DynamicWaterWaterExchanger.mo:117:3-118:48:writable] Warning: Connector Ec is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/DynamicWaterWaterExchanger.mo:119:3-120:48:writable] Warning: Connector Ef is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/DynamicWaterWaterExchanger.mo:121:3-122:46:writable] Warning: Connector Sf is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/DynamicWaterWaterExchanger.mo:123:3-124:46:writable] Warning: Connector Sc is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0006098/1.655, allocations: 195.7 kB / 0.5426 GB, free: 4.578 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008926/1.656, allocations: 363.4 kB / 0.5429 GB, free: 4.223 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.01754/1.674, allocations: 7.282 MB / 0.5501 GB, free: 12.97 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002563/1.676, allocations: 2.541 MB / 0.5525 GB, free: 10.43 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001041/1.677, allocations: 0.6802 MB / 0.5532 GB, free: 9.746 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001291/1.679, allocations: 0.8688 MB / 0.5541 GB, free: 8.875 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001458/1.68, allocations: 0.8684 MB / 0.5549 GB, free: 8.004 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004249/1.681, allocations: 120 kB / 0.555 GB, free: 7.887 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02685/1.708, allocations: 15.22 MB / 0.5699 GB, free: 8.648 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007/1.708, allocations: 478.7 kB / 0.5703 GB, free: 8.18 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00139/1.71, allocations: 0.7583 MB / 0.5711 GB, free: 7.418 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01543/1.725, allocations: 7.901 MB / 0.5788 GB, free: 15.5 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/1.725, allocations: 0 / 0.5788 GB, free: 15.5 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.443e-06/1.725, allocations: 0 / 0.5788 GB, free: 15.5 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.652e-05/1.725, allocations: 4 kB / 0.5788 GB, free: 15.5 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: 418 * Number of variables: 418 Notification: Performance of Generate backend data structure: time 0.00746/1.733, allocations: 2.299 MB / 0.581 GB, free: 13.14 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/1.733, allocations: 12.03 kB / 0.5811 GB, free: 13.13 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003531/1.733, allocations: 216.8 kB / 0.5813 GB, free: 12.91 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003159/1.733, allocations: 131.2 kB / 0.5814 GB, free: 12.78 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00085/1.734, allocations: 0.573 MB / 0.5819 GB, free: 12.16 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.977e-05/1.734, allocations: 97.94 kB / 0.582 GB, free: 12.07 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002067/1.735, allocations: 108 kB / 0.5821 GB, free: 11.96 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003057/1.738, allocations: 1.962 MB / 0.5841 GB, free: 9.934 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/1.738, allocations: 6.766 kB / 0.5841 GB, free: 9.93 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/1.738, allocations: 43.94 kB / 0.5841 GB, free: 9.887 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.819e-05/1.738, allocations: 71.94 kB / 0.5842 GB, free: 9.816 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003294/1.741, allocations: 1.914 MB / 0.586 GB, free: 7.898 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.0791/1.82, allocations: 39.53 MB / 0.6247 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002837/1.823, allocations: 1.71 MB / 0.6263 GB, free: 10.76 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001967/1.825, allocations: 1.201 MB / 0.6275 GB, free: 9.555 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07223/1.897, allocations: 33.61 MB / 0.6603 GB, free: 4.656 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.176e-05/1.897, allocations: 43.88 kB / 0.6604 GB, free: 4.605 MB / 0.545 GB Notification: Performance of pre-optimization done (n=292): time 3.396e-06/1.898, allocations: 0 / 0.6604 GB, free: 4.605 MB / 0.545 GB Notification: Performance of matching and sorting (n=292): time 0.02837/1.926, allocations: 7.314 MB / 0.6675 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/1.926, allocations: 64.72 kB / 0.6676 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003899/1.926, allocations: 353.5 kB / 0.6679 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001291/1.926, allocations: 45.7 kB / 0.6679 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/1.927, allocations: 279.7 kB / 0.6682 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007721/1.927, allocations: 0.9504 MB / 0.6691 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005427/1.928, allocations: 343.8 kB / 0.6695 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001059/1.928, allocations: 330 kB / 0.6698 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001778/1.93, allocations: 1.023 MB / 0.6708 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00189/1.932, allocations: 1.212 MB / 0.672 GB, free: 8.496 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003878/1.936, allocations: 2.46 MB / 0.6744 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/1.936, allocations: 0 / 0.6744 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of matching and sorting (n=316) (initialization): time 0.006318/1.942, allocations: 3.742 MB / 0.678 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/1.942, allocations: 8 kB / 0.678 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/1.942, allocations: 3.938 kB / 0.678 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01586/1.958, allocations: 4.844 MB / 0.6828 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/1.958, allocations: 31.88 kB / 0.6828 GB, free: 13.31 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008541/1.967, allocations: 4.896 MB / 0.6876 GB, free: 8.387 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/1.968, allocations: 189.7 kB / 0.6878 GB, free: 8.199 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001507/1.968, allocations: 63.94 kB / 0.6878 GB, free: 8.137 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 8 (puitsP1.C.a,puitsP.C.a,sourceP1.C.b,sourceP.C.b,echangeurAPlaques1D.Sc.b,echangeurAPlaques1D.Sf.b,echangeurAPlaques1D.Ef.a,echangeurAPlaques1D.Ec.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 {(22,100)} Notification: Performance of prepare postOptimizeDAE: time 0.0006674/1.969, allocations: 367.7 kB / 0.6882 GB, free: 7.77 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002847/1.969, allocations: 98.59 kB / 0.6883 GB, free: 7.672 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1607/2.13, allocations: 10.92 MB / 0.6989 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006135/2.136, allocations: 4.02 MB / 0.7029 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.486e-05/2.136, allocations: 6.688 kB / 0.7029 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.968e-05/2.136, allocations: 14.12 kB / 0.7029 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01429/2.15, allocations: 8.254 MB / 0.7109 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/2.15, allocations: 1.594 kB / 0.7109 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001263/2.152, allocations: 354.6 kB / 0.7113 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004027/2.156, allocations: 1.921 MB / 0.7132 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001993/2.156, allocations: 73.11 kB / 0.7132 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005977/2.162, allocations: 6.91 MB / 0.72 GB, free: 220.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/2.162, allocations: 0 / 0.72 GB, free: 220.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01066/2.172, allocations: 6.201 MB / 0.726 GB, free: 218.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003267/2.173, allocations: 268.6 kB / 0.7263 GB, free: 218.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002247/2.173, allocations: 68.25 kB / 0.7264 GB, free: 218.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009821/2.174, allocations: 73.12 kB / 0.7264 GB, free: 218.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002763/2.174, allocations: 172.8 kB / 0.7266 GB, free: 218.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/2.174, allocations: 82.44 kB / 0.7267 GB, free: 218.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003596/2.175, allocations: 398.5 kB / 0.727 GB, free: 218.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.175, allocations: 0 / 0.727 GB, free: 218.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002748/2.178, allocations: 1.35 MB / 0.7284 GB, free: 218 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (echangeurAPlaques1D.Hmc[1],echangeurAPlaques1D.Hmc[2],echangeurAPlaques1D.Hmc[3],echangeurAPlaques1D.Hmc[4],echangeurAPlaques1D.Hmc[5],echangeurAPlaques1D.Hmf[1],echangeurAPlaques1D.Hmf[2],echangeurAPlaques1D.Hmf[3],echangeurAPlaques1D.Hmf[4],echangeurAPlaques1D.Hmf[5]) * 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 (188): * Single equations (assignments): 180 * 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): 2 systems {(1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,35), (5,35)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01494/2.193, allocations: 7.904 MB / 0.7361 GB, free: 213.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01254/2.205, allocations: 6.523 MB / 0.7425 GB, free: 207.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/2.205, allocations: 0.5 kB / 0.7425 GB, free: 207.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003983/2.209, allocations: 2.173 MB / 0.7446 GB, free: 205.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004237/2.213, allocations: 0.8873 MB / 0.7454 GB, free: 204.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02546/2.239, allocations: 17.68 MB / 0.7627 GB, free: 186.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009982/2.24, allocations: 1.537 MB / 0.7642 GB, free: 185.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000931/2.241, allocations: 312.1 kB / 0.7645 GB, free: 185 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000634/2.242, allocations: 0.6984 MB / 0.7652 GB, free: 184.3 MB / 0.5762 GB Notification: Performance of SimCode: time 7.62e-07/2.242, allocations: 0 / 0.7652 GB, free: 184.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1251/2.367, allocations: 102.2 MB / 0.865 GB, free: 83.66 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.17/16.53, allocations: 8.047 kB / 0.865 GB, free: 83.65 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicWaterWaterExchanger.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicWaterWaterExchanger.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicWaterWaterExchanger.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicWaterWaterExchanger.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicWaterWaterExchanger_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicWaterWaterExchanger.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicWaterWaterExchanger.pipe 2>&1)