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.8266/0.8266, allocations: 153.8 MB / 173.4 MB, free: 4.879 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.000475/0.000475, allocations: 19.97 kB / 250.6 MB, free: 4.371 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1705/0.171, allocations: 33.35 MB / 283.9 MB, free: 1.73 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.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.863/2.034, allocations: 307 MB / 0.5771 GB, free: 17.36 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0312/2.066, allocations: 30.46 MB / 0.6068 GB, free: 2.961 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002529/2.066, allocations: 2.875 kB / 0.6069 GB, free: 2.961 MB / 478.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.0004106/2.066, allocations: 101.9 kB / 0.6069 GB, free: 2.918 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001804/2.066, allocations: 83.39 kB / 0.607 GB, free: 2.863 MB / 478.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.02716/2.094, allocations: 9.681 MB / 0.6165 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005704/2.094, allocations: 278.7 kB / 0.6167 GB, free: 13.05 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002131/2.094, allocations: 89.75 kB / 0.6168 GB, free: 12.96 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002909/2.095, allocations: 130.7 kB / 0.617 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/2.095, allocations: 95.52 kB / 0.617 GB, free: 12.75 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.843e-05/2.095, allocations: 16 kB / 0.6171 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03545/2.13, allocations: 17.65 MB / 0.6343 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.341e-05/2.13, allocations: 35.8 kB / 0.6343 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001522/2.131, allocations: 99.53 kB / 0.6344 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02058/2.151, allocations: 8.396 MB / 0.6426 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/2.151, allocations: 4 kB / 0.6426 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.663e-06/2.151, allocations: 0 / 0.6426 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.056e-05/2.151, allocations: 3.984 kB / 0.6426 GB, free: 2.516 MB / 0.4981 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.004029/2.155, allocations: 1.373 MB / 0.644 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.605e-05/2.155, allocations: 12.03 kB / 0.644 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.78e-05/2.155, allocations: 4.375 kB / 0.644 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.824e-05/2.155, allocations: 63.16 kB / 0.644 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.305e-05/2.155, allocations: 23.86 kB / 0.6441 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002248/2.156, allocations: 165.6 kB / 0.6442 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.916e-05/2.156, allocations: 12.38 kB / 0.6442 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.461e-05/2.156, allocations: 20 kB / 0.6443 GB, free: 0.7734 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004547/2.156, allocations: 269.7 kB / 0.6445 GB, free: 500 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/2.156, allocations: 0.8438 kB / 0.6445 GB, free: 500 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.205e-05/2.156, allocations: 8.875 kB / 0.6445 GB, free: 492 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/2.156, allocations: 8 kB / 0.6445 GB, free: 484 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003058/2.156, allocations: 153.9 kB / 0.6447 GB, free: 332 kB / 0.4981 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.01831/2.175, allocations: 5.833 MB / 0.6504 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/2.175, allocations: 74.48 kB / 0.6504 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/2.175, allocations: 44.89 kB / 0.6505 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1454/2.32, allocations: 43.58 MB / 0.6931 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.445e-05/2.321, allocations: 34.56 kB / 0.6931 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 2.305e-06/2.321, allocations: 0.9375 kB / 0.6931 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.0006192/2.321, allocations: 207.3 kB / 0.6933 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/2.321, allocations: 59.34 kB / 0.6933 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/2.321, allocations: 232 kB / 0.6936 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/2.321, allocations: 25.7 kB / 0.6936 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/2.322, allocations: 148.5 kB / 0.6937 GB, free: 13.94 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 6.003e-05/2.322, allocations: 67.33 kB / 0.6938 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.447e-05/2.322, allocations: 41.7 kB / 0.6938 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001688/2.322, allocations: 330.8 kB / 0.6941 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001209/2.322, allocations: 56.72 kB / 0.6942 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/2.322, allocations: 89.02 kB / 0.6943 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002758/2.322, allocations: 156.1 kB / 0.6944 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/2.322, allocations: 0 / 0.6944 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003984/2.323, allocations: 205.3 kB / 0.6946 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/2.323, allocations: 8 kB / 0.6946 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/2.323, allocations: 0 / 0.6946 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/2.323, allocations: 9.25 kB / 0.6946 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006835/2.324, allocations: 91.88 kB / 0.6947 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/2.324, allocations: 0.75 kB / 0.6947 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/2.324, allocations: 35.72 kB / 0.6948 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.387e-05/2.324, allocations: 12 kB / 0.6948 GB, free: 12.81 MB / 0.5606 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 0.0001346/2.324, allocations: 130.7 kB / 0.6949 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.225e-05/2.324, allocations: 23.8 kB / 0.6949 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005309/2.324, allocations: 329.9 kB / 0.6952 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002757/2.325, allocations: 164.9 kB / 0.6954 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/2.325, allocations: 0.5 kB / 0.6954 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/2.325, allocations: 0.75 kB / 0.6954 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009172/2.326, allocations: 0.5512 MB / 0.6959 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/2.326, allocations: 0 / 0.6959 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005542/2.326, allocations: 95.88 kB / 0.696 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/2.326, allocations: 0 / 0.696 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/2.326, allocations: 8.031 kB / 0.696 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/2.326, allocations: 7.875 kB / 0.696 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/2.326, allocations: 0 / 0.696 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004346/2.327, allocations: 288.9 kB / 0.6963 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.812e-05/2.327, allocations: 35.78 kB / 0.6964 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.817e-05/2.327, allocations: 4.578 kB / 0.6964 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000131/2.327, allocations: 11.98 kB / 0.6964 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.824e-05/2.327, allocations: 7.984 kB / 0.6964 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.168e-06/2.327, allocations: 4 kB / 0.6964 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002157/2.327, allocations: 209.2 kB / 0.6966 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/2.327, allocations: 0 / 0.6966 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003237/2.33, allocations: 1.192 MB / 0.6977 GB, free: 9.656 MB / 0.5606 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.006748/2.337, allocations: 2.463 MB / 0.7002 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004992/2.338, allocations: 173.5 kB / 0.7003 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/2.338, allocations: 0 / 0.7003 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001564/2.338, allocations: 64.67 kB / 0.7004 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006582/2.339, allocations: 106.8 kB / 0.7005 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005304/2.344, allocations: 2.859 MB / 0.7033 GB, free: 3.91 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001604/2.344, allocations: 138.9 kB / 0.7034 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001219/2.344, allocations: 24.72 kB / 0.7034 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001371/2.344, allocations: 87.39 kB / 0.7035 GB, free: 3.645 MB / 0.5606 GB Notification: Performance of SimCode: time 8.82e-07/2.344, allocations: 0 / 0.7035 GB, free: 3.645 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08882/2.433, allocations: 46.88 MB / 0.7493 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/15.73, allocations: 9.156 kB / 0.7493 GB, free: 5.441 MB / 0.6075 GB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.90079710795544] Failed to read output from testmodel.py, exit status != 0: 16.315005087992176 16.325731725 14.17215575 Calling exit ...