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.8546/0.8546, allocations: 153.8 MB / 170.2 MB, free: 13.81 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.0004867/0.0004867, allocations: 13.42 kB / 246.2 MB, free: 14.99 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0584/0.05889, allocations: 33.34 MB / 279.6 MB, free: 15.23 MB / 238.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.686/1.745, allocations: 307.2 MB / 0.573 GB, free: 10.61 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04455/1.79, allocations: 34.9 MB / 0.6071 GB, free: 7.578 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002461/1.79, allocations: 8 kB / 0.6071 GB, free: 7.57 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.0004837/1.79, allocations: 140.2 kB / 0.6072 GB, free: 7.434 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003182/1.791, allocations: 111.2 kB / 0.6074 GB, free: 7.324 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.02616/1.817, allocations: 9.823 MB / 0.6169 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0005869/1.817, allocations: 350.8 kB / 0.6173 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/1.818, allocations: 96.64 kB / 0.6174 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002875/1.818, allocations: 155.3 kB / 0.6175 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/1.818, allocations: 115.4 kB / 0.6176 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.894e-05/1.818, allocations: 20 kB / 0.6176 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03158/1.85, allocations: 17.98 MB / 0.6352 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 8.63e-05/1.85, allocations: 51.72 kB / 0.6353 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001974/1.85, allocations: 131.4 kB / 0.6354 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01912/1.869, allocations: 8.505 MB / 0.6437 GB, free: 2.059 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/1.869, allocations: 0 / 0.6437 GB, free: 2.059 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.473e-06/1.869, allocations: 0 / 0.6437 GB, free: 2.059 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.085e-06/1.869, allocations: 4 kB / 0.6437 GB, free: 2.055 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.004282/1.873, allocations: 1.51 MB / 0.6452 GB, free: 500 kB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/1.873, allocations: 12.03 kB / 0.6452 GB, free: 488 kB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.928e-05/1.873, allocations: 66.52 kB / 0.6452 GB, free: 412 kB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.695e-05/1.873, allocations: 31.77 kB / 0.6453 GB, free: 380 kB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002429/1.874, allocations: 230.6 kB / 0.6455 GB, free: 108 kB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.862e-05/1.874, allocations: 16.44 kB / 0.6455 GB, free: 92 kB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.698e-05/1.874, allocations: 16 kB / 0.6455 GB, free: 76 kB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004975/1.874, allocations: 325 kB / 0.6458 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/1.874, allocations: 3.938 kB / 0.6458 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.091e-05/1.874, allocations: 4 kB / 0.6458 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.753e-05/1.874, allocations: 15.98 kB / 0.6459 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002792/1.875, allocations: 170.4 kB / 0.646 GB, free: 15.54 MB / 0.5294 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.03997/1.915, allocations: 18.17 MB / 0.6638 GB, free: 11.48 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004558/1.915, allocations: 126.6 kB / 0.6639 GB, free: 11.35 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/1.915, allocations: 64.84 kB / 0.6639 GB, free: 11.29 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3416/2.257, allocations: 83.05 MB / 0.745 GB, free: 195.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/2.257, allocations: 41.72 kB / 0.7451 GB, free: 195.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.084e-06/2.257, allocations: 0 / 0.7451 GB, free: 195.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0008317/2.258, allocations: 422.1 kB / 0.7455 GB, free: 195.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.008e-05/2.258, allocations: 77.11 kB / 0.7456 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001835/2.258, allocations: 223.9 kB / 0.7458 GB, free: 195.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.328e-05/2.258, allocations: 29.52 kB / 0.7458 GB, free: 195.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.579e-05/2.258, allocations: 158.1 kB / 0.746 GB, free: 195.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.8e-05/2.258, allocations: 116.2 kB / 0.7461 GB, free: 195.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.666e-05/2.258, allocations: 55.89 kB / 0.7461 GB, free: 195.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.329e-05/2.258, allocations: 330.4 kB / 0.7464 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.24e-05/2.258, allocations: 73.84 kB / 0.7465 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/2.258, allocations: 138.8 kB / 0.7466 GB, free: 194.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002189/2.259, allocations: 232.8 kB / 0.7469 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/2.259, allocations: 0 / 0.7469 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003829/2.259, allocations: 299.4 kB / 0.7471 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/2.259, allocations: 7.938 kB / 0.7472 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/2.259, allocations: 0 / 0.7472 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009199/2.26, allocations: 139 kB / 0.7473 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.423e-05/2.26, allocations: 15.53 kB / 0.7473 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003993/2.26, allocations: 0.6185 MB / 0.7479 GB, free: 194 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/2.26, allocations: 28.64 kB / 0.7479 GB, free: 194 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/2.26, allocations: 12 kB / 0.7479 GB, free: 194 MB / 0.5919 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.0001053/2.261, allocations: 141 kB / 0.7481 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.439e-05/2.261, allocations: 23.67 kB / 0.7481 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007442/2.261, allocations: 0.5851 MB / 0.7487 GB, free: 193.6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004582/2.262, allocations: 226.5 kB / 0.7489 GB, free: 193.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/2.262, allocations: 0.75 kB / 0.7489 GB, free: 193.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/2.262, allocations: 0 / 0.7489 GB, free: 193.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009109/2.263, allocations: 0.7357 MB / 0.7496 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/2.263, allocations: 3.984 kB / 0.7496 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.666e-05/2.263, allocations: 26.41 kB / 0.7496 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003398/2.263, allocations: 102.1 kB / 0.7497 GB, free: 193 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/2.263, allocations: 5.562 kB / 0.7497 GB, free: 193 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003766/2.264, allocations: 0.6378 MB / 0.7504 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/2.264, allocations: 4.906 kB / 0.7504 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005255/2.264, allocations: 335.7 kB / 0.7507 GB, free: 192.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.407e-05/2.264, allocations: 112.5 kB / 0.7508 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.807e-05/2.264, allocations: 9.219 kB / 0.7508 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/2.264, allocations: 5.438 kB / 0.7508 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.58e-05/2.264, allocations: 11.89 kB / 0.7508 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.335e-06/2.264, allocations: 7.75 kB / 0.7508 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001888/2.265, allocations: 244 kB / 0.7511 GB, free: 192.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/2.265, allocations: 0 / 0.7511 GB, free: 192.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002806/2.267, allocations: 1.233 MB / 0.7523 GB, free: 192 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 (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.005814/2.273, allocations: 2.563 MB / 0.7548 GB, free: 190.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006334/2.274, allocations: 227 kB / 0.755 GB, free: 190.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/2.274, allocations: 0 / 0.755 GB, free: 190.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002363/2.274, allocations: 89.19 kB / 0.7551 GB, free: 190 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007329/2.275, allocations: 132.1 kB / 0.7552 GB, free: 189.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004167/2.279, allocations: 3.076 MB / 0.7582 GB, free: 187.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001729/2.279, allocations: 0.7675 MB / 0.7589 GB, free: 186.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001528/2.279, allocations: 25.89 kB / 0.759 GB, free: 186.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/2.279, allocations: 97.08 kB / 0.7591 GB, free: 186.3 MB / 0.5919 GB Notification: Performance of SimCode: time 1.232e-06/2.279, allocations: 0 / 0.7591 GB, free: 186.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07731/2.357, allocations: 48.42 MB / 0.8063 GB, free: 138.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.33/16.68, allocations: 4.062 kB / 0.8063 GB, free: 138.7 MB / 0.5919 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.605282050993992] Failed to read output from testmodel.py, exit status != 0: 16.962348115004716 16.978818627 15.106449054 Calling exit ...