Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.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.8715/0.8715, allocations: 153.8 MB / 170.2 MB, free: 13.78 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.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005386/0.0005386, allocations: 21.59 kB / 246.3 MB, free: 14.89 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05805/0.05859, allocations: 33.34 MB / 279.6 MB, free: 15.12 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.SimpleExamples.TestInvSingularPressureLoss): time 1.727/1.786, allocations: 307.1 MB / 0.573 GB, free: 10.66 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.0439/1.83, allocations: 34.6 MB / 0.6068 GB, free: 7.918 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/1.83, allocations: 4 kB / 0.6068 GB, free: 7.914 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourcePQ.mo:29:3-30:52: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/InvSingularPressureLoss.mo:26:3-28:16: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/InvSingularPressureLoss.mo:29:3-30:83: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.0004536/1.83, allocations: 127.4 kB / 0.6069 GB, free: 7.789 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002511/1.831, allocations: 87.39 kB / 0.607 GB, free: 7.703 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.02481/1.856, allocations: 9.744 MB / 0.6165 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004699/1.856, allocations: 286.6 kB / 0.6168 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/1.856, allocations: 80.33 kB / 0.6169 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002349/1.856, allocations: 119.5 kB / 0.617 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001347/1.857, allocations: 99.5 kB / 0.6171 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.53e-05/1.857, allocations: 16 kB / 0.6171 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02996/1.887, allocations: 17.91 MB / 0.6346 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 6.962e-05/1.887, allocations: 39.86 kB / 0.6346 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001614/1.887, allocations: 119.4 kB / 0.6347 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.02107/1.908, allocations: 8.392 MB / 0.6429 GB, free: 2.855 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/1.908, allocations: 0 / 0.6429 GB, free: 2.855 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.904e-06/1.908, allocations: 0 / 0.6429 GB, free: 2.855 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.286e-05/1.908, allocations: 0 / 0.6429 GB, free: 2.855 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.004688/1.913, allocations: 1.455 MB / 0.6444 GB, free: 1.34 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/1.913, allocations: 8.031 kB / 0.6444 GB, free: 1.332 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.028e-05/1.913, allocations: 58.55 kB / 0.6444 GB, free: 1.266 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.829e-05/1.913, allocations: 27.8 kB / 0.6445 GB, free: 1.238 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002509/1.913, allocations: 226.6 kB / 0.6447 GB, free: 0.9766 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.211e-05/1.913, allocations: 16.38 kB / 0.6447 GB, free: 0.9609 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.39e-05/1.913, allocations: 20 kB / 0.6447 GB, free: 0.9414 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004472/1.913, allocations: 260.1 kB / 0.645 GB, free: 0.6641 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/1.913, allocations: 3.938 kB / 0.645 GB, free: 0.6602 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/1.913, allocations: 4 kB / 0.645 GB, free: 0.6562 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.955e-05/1.914, allocations: 19.94 kB / 0.645 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002887/1.914, allocations: 148.4 kB / 0.6451 GB, free: 0.4922 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.02018/1.934, allocations: 9.555 MB / 0.6545 GB, free: 5.961 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00021/1.934, allocations: 70.55 kB / 0.6545 GB, free: 5.883 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/1.934, allocations: 44.89 kB / 0.6546 GB, free: 5.836 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3601/2.294, allocations: 82.85 MB / 0.7355 GB, free: 202.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/2.294, allocations: 33.28 kB / 0.7355 GB, free: 202.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=22): time 2.184e-06/2.294, allocations: 4 kB / 0.7355 GB, free: 202.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22): time 0.0005286/2.295, allocations: 206.9 kB / 0.7357 GB, free: 202 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.539e-05/2.295, allocations: 51.41 kB / 0.7358 GB, free: 202 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/2.295, allocations: 233.8 kB / 0.736 GB, free: 201.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.04e-05/2.295, allocations: 26.7 kB / 0.736 GB, free: 201.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.071e-05/2.295, allocations: 141.5 kB / 0.7361 GB, free: 201.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 3.609e-05/2.295, allocations: 77.28 kB / 0.7362 GB, free: 201.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.822e-05/2.295, allocations: 37.05 kB / 0.7362 GB, free: 201.7 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.894e-05/2.295, allocations: 341.7 kB / 0.7366 GB, free: 201.4 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/2.295, allocations: 44.67 kB / 0.7366 GB, free: 201.4 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001125/2.296, allocations: 89.84 kB / 0.7367 GB, free: 201.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002051/2.296, allocations: 154.8 kB / 0.7368 GB, free: 201.3 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/2.296, allocations: 3.188 kB / 0.7368 GB, free: 201.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002947/2.296, allocations: 203.3 kB / 0.737 GB, free: 201.2 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/2.296, allocations: 2.688 kB / 0.737 GB, free: 201.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/2.296, allocations: 2.25 kB / 0.737 GB, free: 201.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/2.296, allocations: 8.328 kB / 0.7371 GB, free: 201.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006458/2.297, allocations: 98.56 kB / 0.7371 GB, free: 201.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/2.297, allocations: 5.156 kB / 0.7372 GB, free: 201.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001213/2.297, allocations: 30.77 kB / 0.7372 GB, free: 201.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/2.297, allocations: 6.969 kB / 0.7372 GB, free: 201.2 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 (invSingularPressureLoss.C2.b,invSingularPressureLoss.C1.a,sinkQ.C.a,sourcePQ.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): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.843e-05/2.297, allocations: 137.2 kB / 0.7373 GB, free: 201.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.065e-05/2.297, allocations: 19.7 kB / 0.7373 GB, free: 201.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003763/2.297, allocations: 325.9 kB / 0.7376 GB, free: 201 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001988/2.298, allocations: 146 kB / 0.7378 GB, free: 200.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/2.298, allocations: 0 / 0.7378 GB, free: 200.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/2.298, allocations: 1.469 kB / 0.7378 GB, free: 200.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006844/2.298, allocations: 0.6143 MB / 0.7384 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/2.298, allocations: 2.75 kB / 0.7384 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005019/2.299, allocations: 94.73 kB / 0.7385 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/2.299, allocations: 3.609 kB / 0.7385 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/2.299, allocations: 10.66 kB / 0.7385 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/2.299, allocations: 3.984 kB / 0.7385 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/2.299, allocations: 0 / 0.7385 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003285/2.299, allocations: 284.2 kB / 0.7388 GB, free: 200.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.051e-05/2.299, allocations: 113.7 kB / 0.7389 GB, free: 200.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.315e-05/2.299, allocations: 5.656 kB / 0.7389 GB, free: 200.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/2.299, allocations: 4.125 kB / 0.7389 GB, free: 200.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.705e-05/2.299, allocations: 13.05 kB / 0.7389 GB, free: 200.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.575e-06/2.299, allocations: 2.844 kB / 0.7389 GB, free: 200.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000157/2.3, allocations: 210.9 kB / 0.7391 GB, free: 200.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/2.3, allocations: 0 / 0.7391 GB, free: 200.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002897/2.303, allocations: 1.191 MB / 0.7403 GB, free: 200.1 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005711/2.308, allocations: 2.465 MB / 0.7427 GB, free: 199.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005388/2.309, allocations: 177.2 kB / 0.7428 GB, free: 199.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/2.309, allocations: 0 / 0.7428 GB, free: 199.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000131/2.309, allocations: 62.31 kB / 0.7429 GB, free: 199.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006737/2.31, allocations: 99.31 kB / 0.743 GB, free: 199 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004036/2.314, allocations: 2.841 MB / 0.7458 GB, free: 197.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001616/2.314, allocations: 0.7488 MB / 0.7465 GB, free: 196.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001089/2.314, allocations: 23.36 kB / 0.7465 GB, free: 196.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/2.314, allocations: 93.89 kB / 0.7466 GB, free: 196.5 MB / 0.5919 GB Notification: Performance of SimCode: time 9.52e-07/2.314, allocations: 0 / 0.7466 GB, free: 196.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07088/2.385, allocations: 46.24 MB / 0.7918 GB, free: 153.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/13.04, allocations: 16.02 kB / 0.7918 GB, free: 153.8 MB / 0.5919 GB " [Timeout remaining time 647] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss_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_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.9075180029904] Failed to read output from testmodel.py, exit status != 0: 13.306154758000048 13.314508368 11.40465364 Calling exit ...