Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.8009/0.8009, allocations: 153.8 MB / 173.5 MB, free: 4.945 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.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004724/0.0004724, allocations: 19.97 kB / 250.6 MB, free: 4.477 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1552/0.1557, allocations: 33.35 MB / 284 MB, free: 1.832 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.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.724/1.88, allocations: 307.4 MB / 0.5775 GB, free: 15.95 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2141/2.094, allocations: 191 MB / 0.764 GB, free: 6.133 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004085/2.094, allocations: 7.938 kB / 0.764 GB, free: 6.125 MB / 0.6231 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourcePQ.mo:75:3-76:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SinkP.mo:47:3-48:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/InvSingularPressureLoss.mo:30:3-31:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/InvSingularPressureLoss.mo:32:3-33:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002246/2.094, allocations: 48.22 kB / 0.764 GB, free: 6.078 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0005162/2.095, allocations: 119 kB / 0.7642 GB, free: 5.961 MB / 0.6231 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.03182/2.127, allocations: 11.64 MB / 0.7755 GB, free: 10.32 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0006855/2.127, allocations: 396.5 kB / 0.7759 GB, free: 9.934 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002979/2.128, allocations: 157.1 kB / 0.776 GB, free: 9.777 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003964/2.128, allocations: 183.3 kB / 0.7762 GB, free: 9.598 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000268/2.128, allocations: 163.3 kB / 0.7764 GB, free: 9.438 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 5.913e-05/2.128, allocations: 36 kB / 0.7764 GB, free: 9.402 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04002/2.168, allocations: 19.97 MB / 0.7959 GB, free: 5.402 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001563/2.168, allocations: 87.7 kB / 0.796 GB, free: 5.316 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002576/2.169, allocations: 197.4 kB / 0.7962 GB, free: 5.125 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.02451/2.193, allocations: 9.794 MB / 0.8058 GB, free: 11.3 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/2.193, allocations: 0 / 0.8058 GB, free: 11.3 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.673e-06/2.193, allocations: 0 / 0.8058 GB, free: 11.3 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.693e-05/2.193, allocations: 0 / 0.8058 GB, free: 11.3 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.004748/2.198, allocations: 1.783 MB / 0.8075 GB, free: 9.48 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/2.198, allocations: 8.031 kB / 0.8075 GB, free: 9.473 MB / 0.67 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.191e-05/2.198, allocations: 9 kB / 0.8075 GB, free: 9.465 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.778e-05/2.198, allocations: 74.53 kB / 0.8076 GB, free: 9.383 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/2.198, allocations: 47.77 kB / 0.8076 GB, free: 9.336 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004265/2.199, allocations: 247.5 kB / 0.8079 GB, free: 9.07 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.797e-05/2.199, allocations: 25 kB / 0.8079 GB, free: 9.047 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.829e-05/2.199, allocations: 36 kB / 0.8079 GB, free: 9.012 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006378/2.199, allocations: 368.8 kB / 0.8083 GB, free: 8.625 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/2.199, allocations: 0 / 0.8083 GB, free: 8.625 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.093e-05/2.199, allocations: 14.25 kB / 0.8083 GB, free: 8.613 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.859e-06/2.199, allocations: 8 kB / 0.8083 GB, free: 8.605 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004958/2.2, allocations: 230.4 kB / 0.8085 GB, free: 8.383 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07338/2.273, allocations: 22.31 MB / 0.8303 GB, free: 1.902 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002774/2.274, allocations: 67.23 kB / 0.8304 GB, free: 1.828 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.398e-05/2.274, allocations: 28.92 kB / 0.8304 GB, free: 1.797 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4998/2.774, allocations: 66.86 MB / 0.8957 GB, free: 36.02 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/2.774, allocations: 34.5 kB / 0.8957 GB, free: 35.98 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=5): time 1.914e-06/2.774, allocations: 0 / 0.8957 GB, free: 35.98 MB / 0.6856 GB Notification: Performance of matching and sorting (n=5): time 0.0004522/2.774, allocations: 113.8 kB / 0.8958 GB, free: 35.89 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.595e-05/2.774, allocations: 52.86 kB / 0.8959 GB, free: 35.83 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003564/2.774, allocations: 368.9 kB / 0.8962 GB, free: 35.54 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.166e-05/2.774, allocations: 34.72 kB / 0.8963 GB, free: 35.51 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/2.774, allocations: 227.4 kB / 0.8965 GB, free: 35.36 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 1.58e-05/2.775, allocations: 21.88 kB / 0.8965 GB, free: 35.34 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.907e-05/2.775, allocations: 64.3 kB / 0.8966 GB, free: 35.29 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 6.206e-05/2.775, allocations: 334.2 kB / 0.8969 GB, free: 34.97 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/2.775, allocations: 45.38 kB / 0.8969 GB, free: 34.94 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/2.775, allocations: 146.2 kB / 0.8971 GB, free: 34.77 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002319/2.775, allocations: 191.6 kB / 0.8973 GB, free: 34.57 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/2.775, allocations: 0.5625 kB / 0.8973 GB, free: 34.57 MB / 0.6856 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003927/2.776, allocations: 232.2 kB / 0.8975 GB, free: 34.41 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/2.776, allocations: 8.781 kB / 0.8975 GB, free: 34.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/2.776, allocations: 4 kB / 0.8975 GB, free: 34.39 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.444e-05/2.776, allocations: 11.97 kB / 0.8975 GB, free: 34.39 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006282/2.776, allocations: 115.4 kB / 0.8976 GB, free: 34.28 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/2.776, allocations: 4 kB / 0.8976 GB, free: 34.27 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/2.776, allocations: 41.25 kB / 0.8977 GB, free: 34.25 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.733e-05/2.776, allocations: 15.81 kB / 0.8977 GB, free: 34.23 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (sourcePQ.C.ftype,sinkQ.fluid,invSingularPressureLoss.fluid,sourcePQ.fluid1,sourcePQ.C.diff_on_2,invSingularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 0.0001259/2.777, allocations: 162.5 kB / 0.8978 GB, free: 34.09 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.339e-05/2.777, allocations: 32.19 kB / 0.8979 GB, free: 34.07 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002638/2.777, allocations: 114.1 kB / 0.898 GB, free: 33.97 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/2.777, allocations: 1.094 kB / 0.898 GB, free: 33.97 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/2.777, allocations: 5.031 kB / 0.898 GB, free: 33.96 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/2.777, allocations: 4 kB / 0.898 GB, free: 33.96 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2012/2.978, allocations: 65.53 MB / 0.962 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/2.978, allocations: 0 / 0.962 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.658e-05/2.978, allocations: 15.98 kB / 0.962 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/2.978, allocations: 0 / 0.962 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/2.978, allocations: 4 kB / 0.962 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/2.978, allocations: 4.125 kB / 0.962 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/2.978, allocations: 4.312 kB / 0.962 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003346/2.979, allocations: 157.1 kB / 0.9621 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/2.979, allocations: 56.64 kB / 0.9622 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.577e-05/2.979, allocations: 8.828 kB / 0.9622 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/2.979, allocations: 4.75 kB / 0.9622 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.898e-05/2.979, allocations: 4.922 kB / 0.9622 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/2.979, allocations: 4.812 kB / 0.9622 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002894/2.979, allocations: 264.2 kB / 0.9625 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/2.979, allocations: 0 / 0.9625 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003643/2.983, allocations: 1.462 MB / 0.9639 GB, free: 1.383 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.007669/2.99, allocations: 2.801 MB / 0.9666 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005109/2.991, allocations: 111.9 kB / 0.9667 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/2.991, allocations: 5.922 kB / 0.9667 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001157/2.991, allocations: 26.39 kB / 0.9668 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005281/2.992, allocations: 66.27 kB / 0.9668 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006171/2.998, allocations: 3.162 MB / 0.9699 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004101/2.998, allocations: 0.7752 MB / 0.9707 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001784/2.998, allocations: 47.95 kB / 0.9707 GB, free: 10.91 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/2.998, allocations: 98.59 kB / 0.9708 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of SimCode: time 8.01e-07/2.998, allocations: 1.094 kB / 0.9708 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09144/3.09, allocations: 51.01 MB / 1.021 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.36/16.45, allocations: 19.41 kB / 1.021 GB, free: 8.461 MB / 0.7794 GB " [Timeout remaining time 643] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.40045812202152] Failed to read output from testmodel.py, exit status != 0: 16.795451481011696 16.808803322 14.612454766 Calling exit ...