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 1.01/1.01, allocations: 153.9 MB / 172.7 MB, free: 4.949 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005611/0.0005611, allocations: 15.97 kB / 249.8 MB, free: 4.469 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.271, allocations: 33.36 MB / 283.2 MB, free: 1.836 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 2.079/2.35, allocations: 307.5 MB / 0.5769 GB, free: 16.04 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2456/2.595, allocations: 191 MB / 0.7634 GB, free: 6.125 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005104/2.596, allocations: 10.38 kB / 0.7634 GB, free: 6.117 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.0002074/2.596, allocations: 56.36 kB / 0.7635 GB, free: 6.062 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0004223/2.596, allocations: 115 kB / 0.7636 GB, free: 5.949 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.03689/2.633, allocations: 11.64 MB / 0.7749 GB, free: 10.31 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0006831/2.634, allocations: 394.7 kB / 0.7753 GB, free: 9.922 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002656/2.634, allocations: 153.1 kB / 0.7755 GB, free: 9.77 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002903/2.635, allocations: 183.3 kB / 0.7756 GB, free: 9.59 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002076/2.635, allocations: 163.3 kB / 0.7758 GB, free: 9.43 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 4.668e-05/2.635, allocations: 36 kB / 0.7758 GB, free: 9.395 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04079/2.676, allocations: 19.98 MB / 0.7953 GB, free: 5.391 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001682/2.676, allocations: 87.7 kB / 0.7954 GB, free: 5.305 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.000282/2.676, allocations: 191 kB / 0.7956 GB, free: 5.117 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.02719/2.703, allocations: 9.79 MB / 0.8052 GB, free: 11.3 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 9.198e-06/2.703, allocations: 9.703 kB / 0.8052 GB, free: 11.29 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.152e-06/2.703, allocations: 0 / 0.8052 GB, free: 11.29 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.771e-05/2.703, allocations: 0 / 0.8052 GB, free: 11.29 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.005497/2.709, allocations: 1.776 MB / 0.8069 GB, free: 9.477 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/2.709, allocations: 8.031 kB / 0.8069 GB, free: 9.469 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.527e-05/2.709, allocations: 78.53 kB / 0.807 GB, free: 9.383 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/2.709, allocations: 43.77 kB / 0.807 GB, free: 9.34 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00044/2.709, allocations: 251.5 kB / 0.8073 GB, free: 9.07 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.663e-05/2.709, allocations: 27.7 kB / 0.8073 GB, free: 9.047 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.239e-05/2.709, allocations: 36 kB / 0.8073 GB, free: 9.012 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006646/2.71, allocations: 364.8 kB / 0.8077 GB, free: 8.629 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/2.71, allocations: 0 / 0.8077 GB, free: 8.629 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.033e-05/2.71, allocations: 12 kB / 0.8077 GB, free: 8.617 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/2.71, allocations: 8 kB / 0.8077 GB, free: 8.609 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005138/2.711, allocations: 230.4 kB / 0.8079 GB, free: 8.387 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07375/2.784, allocations: 22.32 MB / 0.8297 GB, free: 1.902 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002696/2.785, allocations: 66.48 kB / 0.8298 GB, free: 1.828 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.645e-05/2.785, allocations: 28.92 kB / 0.8298 GB, free: 1.797 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4768/3.262, allocations: 66.86 MB / 0.8951 GB, free: 261.1 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.206e-05/3.262, allocations: 34.5 kB / 0.8951 GB, free: 261.1 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=5): time 1.853e-06/3.262, allocations: 0 / 0.8951 GB, free: 261.1 MB / 0.6856 GB Notification: Performance of matching and sorting (n=5): time 0.0004324/3.262, allocations: 127.1 kB / 0.8952 GB, free: 261 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.739e-05/3.262, allocations: 51.41 kB / 0.8953 GB, free: 260.9 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003705/3.263, allocations: 364 kB / 0.8956 GB, free: 260.6 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 9.989e-06/3.263, allocations: 25.7 kB / 0.8957 GB, free: 260.6 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/3.263, allocations: 234.9 kB / 0.8959 GB, free: 260.4 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/3.263, allocations: 26.61 kB / 0.8959 GB, free: 260.4 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.213e-05/3.263, allocations: 57.27 kB / 0.896 GB, free: 260.4 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 6.397e-05/3.263, allocations: 338.6 kB / 0.8963 GB, free: 260.1 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/3.263, allocations: 35.86 kB / 0.8963 GB, free: 260 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/3.263, allocations: 153.2 kB / 0.8965 GB, free: 259.8 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002287/3.263, allocations: 193.6 kB / 0.8967 GB, free: 259.6 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/3.263, allocations: 6.812 kB / 0.8967 GB, free: 259.6 MB / 0.6856 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003856/3.264, allocations: 230.6 kB / 0.8969 GB, free: 259.4 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/3.264, allocations: 4 kB / 0.8969 GB, free: 259.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/3.264, allocations: 4 kB / 0.8969 GB, free: 259.4 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/3.264, allocations: 8.406 kB / 0.8969 GB, free: 259.4 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006081/3.264, allocations: 127.2 kB / 0.897 GB, free: 259.3 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/3.264, allocations: 10.55 kB / 0.897 GB, free: 259.3 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/3.265, allocations: 34.78 kB / 0.8971 GB, free: 259.2 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/3.265, allocations: 12 kB / 0.8971 GB, free: 259.2 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.0001256/3.265, allocations: 159.3 kB / 0.8972 GB, free: 259.1 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.294e-05/3.265, allocations: 27.81 kB / 0.8973 GB, free: 259 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002497/3.265, allocations: 127.9 kB / 0.8974 GB, free: 258.9 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/3.265, allocations: 4 kB / 0.8974 GB, free: 258.9 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/3.265, allocations: 0 / 0.8974 GB, free: 258.9 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/3.265, allocations: 3.984 kB / 0.8974 GB, free: 258.9 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1833/3.448, allocations: 65.52 MB / 0.9614 GB, free: 193.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/3.448, allocations: 0 / 0.9614 GB, free: 193.4 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.286e-05/3.448, allocations: 11.98 kB / 0.9614 GB, free: 193.4 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.453e-06/3.448, allocations: 7.938 kB / 0.9614 GB, free: 193.4 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/3.448, allocations: 4.125 kB / 0.9614 GB, free: 193.4 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/3.448, allocations: 7.984 kB / 0.9614 GB, free: 193.4 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/3.448, allocations: 1.781 kB / 0.9614 GB, free: 193.4 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002637/3.449, allocations: 150.3 kB / 0.9615 GB, free: 193.2 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/3.449, allocations: 51.72 kB / 0.9616 GB, free: 193.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.962e-05/3.449, allocations: 0 / 0.9616 GB, free: 193.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/3.449, allocations: 8 kB / 0.9616 GB, free: 193.1 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.228e-05/3.449, allocations: 7.984 kB / 0.9616 GB, free: 193.1 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/3.449, allocations: 7.875 kB / 0.9616 GB, free: 193.1 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002203/3.449, allocations: 263.2 kB / 0.9619 GB, free: 192.9 MB / 0.6856 GB Notification: Performance of sort global known variables: time 6e-08/3.449, allocations: 0 / 0.9619 GB, free: 192.9 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003169/3.452, allocations: 1.457 MB / 0.9633 GB, free: 191.6 MB / 0.6856 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.00643/3.459, allocations: 2.814 MB / 0.966 GB, free: 189.1 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0004053/3.459, allocations: 118.1 kB / 0.9661 GB, free: 189 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/3.459, allocations: 0 / 0.9661 GB, free: 189 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 8.904e-05/3.459, allocations: 31.06 kB / 0.9662 GB, free: 188.9 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004778/3.46, allocations: 61.89 kB / 0.9662 GB, free: 188.9 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004417/3.464, allocations: 3.158 MB / 0.9693 GB, free: 185.6 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000187/3.464, allocations: 0.7753 MB / 0.9701 GB, free: 184.8 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001446/3.465, allocations: 46.03 kB / 0.9701 GB, free: 184.7 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/3.465, allocations: 99.41 kB / 0.9702 GB, free: 184.6 MB / 0.6856 GB Notification: Performance of SimCode: time 4.71e-07/3.465, allocations: 0 / 0.9702 GB, free: 184.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08341/3.548, allocations: 50.96 MB / 1.02 GB, free: 134.5 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/16.76, allocations: 2.031 kB / 1.02 GB, free: 134.5 MB / 0.6856 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.80858362093568] Failed to read output from testmodel.py, exit status != 0: 17.040641610044986 17.04998282 14.344441159 Calling exit ...