Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.8375/0.8375, allocations: 153.9 MB / 172.7 MB, free: 4.957 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005068/0.0005068, allocations: 15.97 kB / 249.8 MB, free: 4.508 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.1812, allocations: 33.36 MB / 283.2 MB, free: 1.824 MB / 222.1 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm): time 1.805/1.986, allocations: 307.4 MB / 0.5767 GB, free: 16 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03272/2.019, allocations: 34.95 MB / 0.6108 GB, free: 14.26 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002958/2.019, allocations: 2.594 kB / 0.6108 GB, free: 14.26 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/PressureLosses/Diaphragm.mo:30:3-32:42:writable] Warning: Connector C1 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 master/WaterSteam/PressureLosses/Diaphragm.mo:33:3-35:37:writable] Warning: Connector C2 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.0004349/2.019, allocations: 134.8 kB / 0.611 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002456/2.02, allocations: 117.5 kB / 0.6111 GB, free: 14.11 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp 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 master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp 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 master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der 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 master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der 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.02679/2.046, allocations: 9.883 MB / 0.6207 GB, free: 8.562 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006884/2.047, allocations: 359.7 kB / 0.6211 GB, free: 8.211 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002107/2.047, allocations: 100.8 kB / 0.6212 GB, free: 8.113 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003129/2.048, allocations: 158.3 kB / 0.6213 GB, free: 7.961 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001879/2.048, allocations: 111.4 kB / 0.6214 GB, free: 7.852 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.195e-05/2.048, allocations: 20 kB / 0.6214 GB, free: 7.832 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03578/2.084, allocations: 18 MB / 0.639 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.405e-05/2.084, allocations: 51.72 kB / 0.6391 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001961/2.084, allocations: 135.3 kB / 0.6392 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02124/2.105, allocations: 8.49 MB / 0.6475 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 9.568e-06/2.105, allocations: 4 kB / 0.6475 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.723e-06/2.105, allocations: 0 / 0.6475 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.586e-06/2.105, allocations: 0 / 0.6475 GB, free: 13.11 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.004221/2.109, allocations: 1.446 MB / 0.6489 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/2.109, allocations: 8.031 kB / 0.6489 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.204e-05/2.109, allocations: 62.53 kB / 0.649 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.743e-05/2.109, allocations: 34.53 kB / 0.649 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002357/2.11, allocations: 177.6 kB / 0.6492 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.881e-05/2.11, allocations: 12.44 kB / 0.6492 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.14e-05/2.11, allocations: 24 kB / 0.6492 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004642/2.11, allocations: 317.1 kB / 0.6495 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/2.11, allocations: 3.938 kB / 0.6495 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.136e-05/2.11, allocations: 12 kB / 0.6495 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/2.11, allocations: 11.98 kB / 0.6495 GB, free: 10.92 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002677/2.111, allocations: 173.2 kB / 0.6497 GB, free: 10.75 MB / 0.5137 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.03491/2.145, allocations: 11.29 MB / 0.6607 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004394/2.146, allocations: 131.5 kB / 0.6608 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.802e-05/2.146, allocations: 64.84 kB / 0.6609 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1437/2.29, allocations: 43.46 MB / 0.7033 GB, free: 3.594 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.376e-05/2.29, allocations: 42.56 kB / 0.7034 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.184e-06/2.29, allocations: 0 / 0.7034 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.0009075/2.291, allocations: 336.4 kB / 0.7037 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.745e-05/2.291, allocations: 77.11 kB / 0.7038 GB, free: 3.113 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002491/2.291, allocations: 228.9 kB / 0.704 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.275e-05/2.291, allocations: 33.7 kB / 0.704 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/2.291, allocations: 152.7 kB / 0.7042 GB, free: 2.691 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.043e-05/2.291, allocations: 115.8 kB / 0.7043 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.699e-05/2.291, allocations: 53.64 kB / 0.7043 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001553/2.291, allocations: 338.8 kB / 0.7047 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/2.292, allocations: 77.03 kB / 0.7047 GB, free: 2.105 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001702/2.292, allocations: 142.5 kB / 0.7049 GB, free: 1.945 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002876/2.292, allocations: 229.6 kB / 0.7051 GB, free: 1.703 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/2.292, allocations: 4.031 kB / 0.7051 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004612/2.293, allocations: 298.1 kB / 0.7054 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/2.293, allocations: 8 kB / 0.7054 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/2.293, allocations: 0.5625 kB / 0.7054 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009163/2.293, allocations: 134.5 kB / 0.7055 GB, free: 1.258 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.238e-05/2.294, allocations: 24.91 kB / 0.7055 GB, free: 1.234 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005553/2.294, allocations: 0.607 MB / 0.7061 GB, free: 0.6016 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001485/2.294, allocations: 36.48 kB / 0.7062 GB, free: 0.5664 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.95e-05/2.294, allocations: 11.98 kB / 0.7062 GB, free: 0.5547 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 4 (Diaphragm.C2.b,Diaphragm.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001361/2.294, allocations: 134.5 kB / 0.7063 GB, free: 424 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.111e-05/2.294, allocations: 31.75 kB / 0.7063 GB, free: 392 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009493/2.295, allocations: 0.5936 MB / 0.7069 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005343/2.296, allocations: 226.3 kB / 0.7071 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/2.296, allocations: 3.984 kB / 0.7071 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/2.296, allocations: 0 / 0.7071 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/2.297, allocations: 0.7026 MB / 0.7078 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/2.297, allocations: 5.25 kB / 0.7078 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.672e-05/2.297, allocations: 16.94 kB / 0.7078 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003485/2.298, allocations: 108.7 kB / 0.7079 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/2.298, allocations: 8 kB / 0.708 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005381/2.298, allocations: 0.6436 MB / 0.7086 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/2.298, allocations: 0 / 0.7086 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006473/2.299, allocations: 350.5 kB / 0.7089 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.836e-05/2.299, allocations: 31.78 kB / 0.7089 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.546e-05/2.299, allocations: 15.89 kB / 0.709 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/2.299, allocations: 9 kB / 0.709 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.765e-05/2.299, allocations: 7.984 kB / 0.709 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.525e-05/2.299, allocations: 14.17 kB / 0.709 GB, free: 13.49 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002596/2.299, allocations: 235.1 kB / 0.7092 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8.1e-08/2.299, allocations: 0 / 0.7092 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003428/2.303, allocations: 1.228 MB / 0.7104 GB, free: 12.03 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (13): * Single equations (assignments): 12 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006963/2.31, allocations: 2.564 MB / 0.7129 GB, free: 9.473 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000746/2.31, allocations: 221.6 kB / 0.7131 GB, free: 9.25 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/2.31, allocations: 1.5 kB / 0.7131 GB, free: 9.25 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002609/2.311, allocations: 93.97 kB / 0.7132 GB, free: 9.16 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008192/2.311, allocations: 133.4 kB / 0.7133 GB, free: 9.051 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005552/2.317, allocations: 3.098 MB / 0.7164 GB, free: 5.832 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004402/2.317, allocations: 0.7675 MB / 0.7171 GB, free: 5.039 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001524/2.318, allocations: 29.14 kB / 0.7171 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/2.318, allocations: 91.41 kB / 0.7172 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of SimCode: time 1.443e-06/2.318, allocations: 0 / 0.7172 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09293/2.411, allocations: 48.7 MB / 0.7648 GB, free: 4.879 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.02/16.43, allocations: 2.078 kB / 0.7648 GB, free: 4.879 MB / 0.6231 GB " [Timeout remaining time 643] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm_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_Book_SimpleExamples_PressureLoss_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.64577959600001] Failed to read output from testmodel.py, exit status != 0: 16.96307122799999 16.973970564 14.866503999 Calling exit ...