Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8291/0.8291, allocations: 150.9 MB / 167.2 MB, free: 14.49 MB / 142.1 MB " [Timeout remaining time 179] 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.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.000507/0.0005069, allocations: 19.12 kB / 239.3 MB, free: 2.234 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0596/0.06013, allocations: 31.35 MB / 270.6 MB, free: 6.707 MB / 222.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.TestPipePressureLoss): time 1.682/1.742, allocations: 295.7 MB / 0.5531 GB, free: 12.69 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04117/1.783, allocations: 34.43 MB / 0.5867 GB, free: 10.12 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002131/1.783, allocations: 7.938 kB / 0.5867 GB, free: 10.12 MB / 478.1 MB [/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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/PipePressureLoss.mo:35:3-37: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 4.0.0-master/WaterSteam/PressureLosses/PipePressureLoss.mo:38:3-40: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.0003903/1.784, allocations: 113.5 kB / 0.5868 GB, free: 10.01 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002142/1.784, allocations: 91.17 kB / 0.5869 GB, free: 9.918 MB / 478.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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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.02417/1.808, allocations: 9.566 MB / 0.5962 GB, free: 352 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005735/1.809, allocations: 342.4 kB / 0.5966 GB, free: 8 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002398/1.809, allocations: 132.4 kB / 0.5967 GB, free: 15.87 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002321/1.809, allocations: 139.2 kB / 0.5968 GB, free: 15.74 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/1.809, allocations: 115.4 kB / 0.5969 GB, free: 15.62 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/1.809, allocations: 16 kB / 0.597 GB, free: 15.61 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03069/1.84, allocations: 17.89 MB / 0.6144 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.609e-05/1.84, allocations: 43.8 kB / 0.6145 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001908/1.84, allocations: 127.4 kB / 0.6146 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01846/1.859, allocations: 8.427 MB / 0.6228 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/1.859, allocations: 3.938 kB / 0.6228 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.613e-06/1.859, allocations: 4 kB / 0.6228 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.267e-06/1.859, allocations: 0 / 0.6228 GB, free: 5.07 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.004168/1.863, allocations: 1.49 MB / 0.6243 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/1.863, allocations: 8.031 kB / 0.6243 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.059e-05/1.863, allocations: 66.47 kB / 0.6244 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.993e-05/1.863, allocations: 27.81 kB / 0.6244 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/1.863, allocations: 239.2 kB / 0.6246 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.748e-05/1.863, allocations: 12.44 kB / 0.6246 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.894e-05/1.864, allocations: 24 kB / 0.6246 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004673/1.864, allocations: 295.3 kB / 0.6249 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/1.864, allocations: 3.938 kB / 0.6249 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.147e-05/1.864, allocations: 12 kB / 0.6249 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.955e-05/1.864, allocations: 15.98 kB / 0.625 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000262/1.864, allocations: 165.1 kB / 0.6251 GB, free: 2.598 MB / 0.4981 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.03898/1.903, allocations: 18.12 MB / 0.6428 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003182/1.904, allocations: 138.5 kB / 0.6429 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/1.904, allocations: 88.84 kB / 0.643 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3325/2.236, allocations: 77.73 MB / 0.7189 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/2.236, allocations: 34.5 kB / 0.719 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.224e-06/2.236, allocations: 4 kB / 0.719 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0008897/2.237, allocations: 447.2 kB / 0.7194 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.111e-05/2.237, allocations: 58.25 kB / 0.7195 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/2.238, allocations: 214.2 kB / 0.7197 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/2.238, allocations: 31.61 kB / 0.7197 GB, free: 212 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.483e-05/2.238, allocations: 156.6 kB / 0.7198 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.489e-05/2.238, allocations: 112.5 kB / 0.7199 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.833e-05/2.238, allocations: 47.45 kB / 0.72 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.067e-05/2.238, allocations: 337.2 kB / 0.7203 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.747e-05/2.238, allocations: 71.23 kB / 0.7204 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.744e-05/2.238, allocations: 121.3 kB / 0.7205 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001902/2.238, allocations: 201.6 kB / 0.7207 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/2.238, allocations: 2.031 kB / 0.7207 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000333/2.239, allocations: 305.8 kB / 0.721 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/2.239, allocations: 5.281 kB / 0.721 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/2.239, allocations: 0.5156 kB / 0.721 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008086/2.239, allocations: 160 kB / 0.7211 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.092e-05/2.239, allocations: 11.31 kB / 0.7212 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003476/2.24, allocations: 0.6337 MB / 0.7218 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.282e-05/2.24, allocations: 24.91 kB / 0.7218 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/2.24, allocations: 10.25 kB / 0.7218 GB, free: 210.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (pipePressureLoss.C2.b,pipePressureLoss.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 (11): * Single equations (assignments): 8 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 8.515e-05/2.24, allocations: 138.8 kB / 0.7219 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.709e-05/2.24, allocations: 30.52 kB / 0.722 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005469/2.241, allocations: 0.5936 MB / 0.7225 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002951/2.241, allocations: 228.6 kB / 0.7228 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/2.241, allocations: 2.562 kB / 0.7228 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/2.241, allocations: 0.6562 kB / 0.7228 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000708/2.242, allocations: 0.7323 MB / 0.7235 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/2.242, allocations: 0 / 0.7235 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.001e-05/2.242, allocations: 14.72 kB / 0.7235 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003225/2.242, allocations: 119.4 kB / 0.7236 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/2.242, allocations: 0 / 0.7236 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003101/2.242, allocations: 0.6531 MB / 0.7242 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/2.242, allocations: 0.5625 kB / 0.7242 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003362/2.243, allocations: 347 kB / 0.7246 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.638e-05/2.243, allocations: 110.6 kB / 0.7247 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.702e-05/2.243, allocations: 17.2 kB / 0.7247 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.372e-05/2.243, allocations: 3.562 kB / 0.7247 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.713e-05/2.243, allocations: 10.44 kB / 0.7247 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/2.243, allocations: 6.906 kB / 0.7247 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001787/2.243, allocations: 234.3 kB / 0.7249 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.4e-07/2.243, allocations: 4 kB / 0.7249 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00264/2.246, allocations: 1.203 MB / 0.7261 GB, free: 209.2 MB / 0.5919 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 (11): * Single equations (assignments): 10 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005127/2.251, allocations: 2.525 MB / 0.7286 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005086/2.251, allocations: 237.7 kB / 0.7288 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/2.251, allocations: 0 / 0.7288 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000179/2.252, allocations: 95.95 kB / 0.7289 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007234/2.252, allocations: 121.1 kB / 0.729 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003498/2.256, allocations: 3.055 MB / 0.732 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001676/2.256, allocations: 0.7646 MB / 0.7328 GB, free: 206 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001007/2.256, allocations: 26.83 kB / 0.7328 GB, free: 206 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.638e-05/2.256, allocations: 89.67 kB / 0.7329 GB, free: 206 MB / 0.5919 GB Notification: Performance of SimCode: time 3.1e-07/2.256, allocations: 0 / 0.7329 GB, free: 206 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07261/2.329, allocations: 47.7 MB / 0.7794 GB, free: 170.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.24/16.57, allocations: 11.34 kB / 0.7795 GB, free: 170.9 MB / 0.5919 GB " [Timeout remaining time 643] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss_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_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.44664646394085] Failed to read output from testmodel.py, exit status != 0: 16.810175666003488 16.819256933 14.958708375 Calling exit ...