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.5338/0.5338, allocations: 120.4 MB / 139.5 MB, free: 13 MB / 138.7 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 2.024e-06/2.024e-06, allocations: 0 / 216.7 MB, free: 8.637 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.439e-05/1.641e-05, allocations: 2.281 kB / 216.7 MB, free: 8.633 MB / 202.7 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 0.9246/0.9246, allocations: 254.3 MB / 471 MB, free: 9.617 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.3018/1.226, allocations: 164.8 MB / 0.6209 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001693/1.227, allocations: 7.938 kB / 0.6209 GB, free: 14.37 MB / 0.5417 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.0001047/1.227, allocations: 43.59 kB / 0.621 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.0002522/1.227, allocations: 126.8 kB / 0.6211 GB, free: 14.2 MB / 0.5417 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.01724/1.244, allocations: 11.57 MB / 0.6324 GB, free: 2.617 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.0003482/1.244, allocations: 402.4 kB / 0.6328 GB, free: 2.223 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/1.245, allocations: 165 kB / 0.6329 GB, free: 2.066 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002343/1.245, allocations: 251.4 kB / 0.6332 GB, free: 1.82 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/1.245, allocations: 123.6 kB / 0.6333 GB, free: 1.699 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 2.818e-05/1.245, allocations: 32 kB / 0.6333 GB, free: 1.668 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0194/1.264, allocations: 18.65 MB / 0.6515 GB, free: 14.99 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 8.581e-05/1.265, allocations: 91.67 kB / 0.6516 GB, free: 14.9 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0001044/1.265, allocations: 119.8 kB / 0.6518 GB, free: 14.78 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.01291/1.278, allocations: 12.34 MB / 0.6638 GB, free: 2.414 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/1.278, allocations: 0 / 0.6638 GB, free: 2.414 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.014e-06/1.278, allocations: 4 kB / 0.6638 GB, free: 2.41 MB / 0.573 GB Notification: Performance of Transformations before backend: time 6.132e-06/1.278, allocations: 0 / 0.6638 GB, free: 2.41 MB / 0.573 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.002503/1.28, allocations: 1.772 MB / 0.6655 GB, free: 0.5977 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/1.28, allocations: 12.03 kB / 0.6655 GB, free: 0.5859 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.036e-05/1.28, allocations: 75.22 kB / 0.6656 GB, free: 0.5039 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.27e-05/1.28, allocations: 47.72 kB / 0.6657 GB, free: 468 kB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002753/1.28, allocations: 252 kB / 0.6659 GB, free: 188 kB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.964e-05/1.28, allocations: 29 kB / 0.6659 GB, free: 156 kB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.498e-05/1.281, allocations: 28 kB / 0.666 GB, free: 128 kB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000388/1.281, allocations: 362.2 kB / 0.6663 GB, free: 15.75 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.437e-06/1.281, allocations: 4 kB / 0.6663 GB, free: 15.75 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.998e-05/1.281, allocations: 16 kB / 0.6663 GB, free: 15.73 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/1.281, allocations: 12.59 kB / 0.6663 GB, free: 15.72 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002929/1.281, allocations: 226.5 kB / 0.6665 GB, free: 15.5 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03416/1.315, allocations: 21.99 MB / 0.688 GB, free: 9.434 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001498/1.316, allocations: 66.55 kB / 0.6881 GB, free: 9.359 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.991e-05/1.316, allocations: 20.92 kB / 0.6881 GB, free: 9.336 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1051/1.421, allocations: 67.13 MB / 0.7537 GB, free: 6.137 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/1.421, allocations: 34.56 kB / 0.7537 GB, free: 6.094 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=5): time 2.034e-06/1.421, allocations: 0.5625 kB / 0.7537 GB, free: 6.094 MB / 0.6667 GB Notification: Performance of matching and sorting (n=5): time 0.0003186/1.421, allocations: 121.4 kB / 0.7538 GB, free: 5.969 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.82e-05/1.421, allocations: 55.39 kB / 0.7539 GB, free: 5.902 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002889/1.421, allocations: 369.5 kB / 0.7542 GB, free: 5.531 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 9.508e-06/1.421, allocations: 25.7 kB / 0.7542 GB, free: 5.5 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/1.421, allocations: 236.1 kB / 0.7545 GB, free: 5.262 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 1.207e-05/1.421, allocations: 20.45 kB / 0.7545 GB, free: 5.242 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.024e-05/1.422, allocations: 57.61 kB / 0.7545 GB, free: 5.18 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 8.219e-05/1.422, allocations: 342.8 kB / 0.7549 GB, free: 4.836 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.673e-05/1.422, allocations: 43.97 kB / 0.7549 GB, free: 4.793 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/1.422, allocations: 135.3 kB / 0.755 GB, free: 4.613 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001788/1.422, allocations: 199.5 kB / 0.7552 GB, free: 4.371 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/1.422, allocations: 0.9375 kB / 0.7552 GB, free: 4.371 MB / 0.6667 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002603/1.422, allocations: 229.1 kB / 0.7554 GB, free: 4.141 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/1.422, allocations: 8 kB / 0.7555 GB, free: 4.133 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/1.422, allocations: 7.984 kB / 0.7555 GB, free: 4.125 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/1.422, allocations: 7.938 kB / 0.7555 GB, free: 4.117 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003732/1.423, allocations: 116.3 kB / 0.7556 GB, free: 4.004 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/1.423, allocations: 8.562 kB / 0.7556 GB, free: 3.996 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/1.423, allocations: 43.66 kB / 0.7556 GB, free: 3.953 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/1.423, allocations: 9.25 kB / 0.7556 GB, free: 3.945 MB / 0.6667 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.0001089/1.423, allocations: 154.9 kB / 0.7558 GB, free: 3.785 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.032e-05/1.423, allocations: 31.81 kB / 0.7558 GB, free: 3.754 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001868/1.423, allocations: 125 kB / 0.7559 GB, free: 3.621 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/1.423, allocations: 4.031 kB / 0.7559 GB, free: 3.617 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/1.423, allocations: 3.938 kB / 0.7559 GB, free: 3.613 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/1.423, allocations: 0 / 0.7559 GB, free: 3.613 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2348/1.658, allocations: 65.74 MB / 0.8201 GB, free: 282.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/1.658, allocations: 0 / 0.8201 GB, free: 282.6 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.221e-05/1.658, allocations: 11.98 kB / 0.8202 GB, free: 282.6 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/1.658, allocations: 8.297 kB / 0.8202 GB, free: 282.5 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/1.658, allocations: 0 / 0.8202 GB, free: 282.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/1.658, allocations: 6.062 kB / 0.8202 GB, free: 282.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/1.658, allocations: 0 / 0.8202 GB, free: 282.5 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001532/1.658, allocations: 157.5 kB / 0.8203 GB, free: 282.4 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.074e-05/1.658, allocations: 49.19 kB / 0.8204 GB, free: 282.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.386e-05/1.658, allocations: 6.578 kB / 0.8204 GB, free: 282.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.273e-05/1.658, allocations: 4 kB / 0.8204 GB, free: 282.3 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.826e-05/1.658, allocations: 9.766 kB / 0.8204 GB, free: 282.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/1.658, allocations: 1.531 kB / 0.8204 GB, free: 282.3 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001511/1.659, allocations: 263.2 kB / 0.8206 GB, free: 282.1 MB / 0.6823 GB Notification: Performance of sort global known variables: time 8e-08/1.659, allocations: 0 / 0.8206 GB, free: 282.1 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.00188/1.66, allocations: 1.46 MB / 0.8221 GB, free: 280.9 MB / 0.6823 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.003426/1.664, allocations: 2.99 MB / 0.825 GB, free: 278.3 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002179/1.664, allocations: 116.7 kB / 0.8251 GB, free: 278.2 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/1.664, allocations: 0 / 0.8251 GB, free: 278.2 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 4.569e-05/1.664, allocations: 23.98 kB / 0.8251 GB, free: 278.1 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/1.664, allocations: 81.34 kB / 0.8252 GB, free: 278.1 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002183/1.667, allocations: 3.151 MB / 0.8283 GB, free: 274.8 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.476e-05/1.667, allocations: 172.8 kB / 0.8284 GB, free: 274.6 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 8.941e-05/1.667, allocations: 42.91 kB / 0.8285 GB, free: 274.5 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.219e-05/1.667, allocations: 100.5 kB / 0.8286 GB, free: 274.4 MB / 0.6823 GB Notification: Performance of SimCode: time 4.51e-07/1.667, allocations: 0 / 0.8286 GB, free: 274.4 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04594/1.713, allocations: 51.98 MB / 0.8793 GB, free: 222.8 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.708/10.42, allocations: 2.656 kB / 0.8793 GB, free: 222.8 MB / 0.6823 GB " [Timeout remaining time 649] (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: 11.726622989401221] Failed to read output from testmodel.py, exit status != 0: 10.716402732767165 10.640354316 9.361474488 Calling exit ...