Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.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.802/0.802, allocations: 153.8 MB / 173.4 MB, free: 4.871 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.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004857/0.0004857, allocations: 11.98 kB / 250.6 MB, free: 4.352 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.1717, allocations: 33.36 MB / 283.9 MB, free: 1.715 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.TestSingularPressureLoss): time 1.84/2.012, allocations: 307.1 MB / 0.5772 GB, free: 17.22 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0292/2.041, allocations: 30.5 MB / 0.607 GB, free: 2.781 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002755/2.041, allocations: 2.25 kB / 0.607 GB, free: 2.781 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45: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/SingularPressureLoss.mo:25:3-27: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/SingularPressureLoss.mo:28:3-29:52: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.000369/2.042, allocations: 109.6 kB / 0.6071 GB, free: 2.734 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001916/2.042, allocations: 113.3 kB / 0.6072 GB, free: 2.656 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.02527/2.067, allocations: 9.673 MB / 0.6167 GB, free: 13.11 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006698/2.068, allocations: 334.5 kB / 0.617 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002186/2.068, allocations: 96.2 kB / 0.6171 GB, free: 12.7 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002951/2.068, allocations: 147.4 kB / 0.6172 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000155/2.069, allocations: 107.4 kB / 0.6173 GB, free: 12.45 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.929e-05/2.069, allocations: 16 kB / 0.6173 GB, free: 12.43 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03313/2.102, allocations: 17.65 MB / 0.6346 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.457e-05/2.102, allocations: 39.8 kB / 0.6346 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001635/2.102, allocations: 99.55 kB / 0.6347 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01959/2.122, allocations: 8.431 MB / 0.6429 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.237e-06/2.122, allocations: 4 kB / 0.6429 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.523e-06/2.122, allocations: 0 / 0.6429 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.454e-06/2.122, allocations: 3.938 kB / 0.6429 GB, free: 2.168 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.004009/2.126, allocations: 1.396 MB / 0.6443 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/2.126, allocations: 12.03 kB / 0.6443 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.509e-05/2.126, allocations: 4.438 kB / 0.6443 GB, free: 0.7188 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.97e-05/2.126, allocations: 64.34 kB / 0.6444 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.943e-05/2.126, allocations: 27.81 kB / 0.6444 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002212/2.126, allocations: 172.7 kB / 0.6446 GB, free: 436 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.097e-05/2.126, allocations: 16.44 kB / 0.6446 GB, free: 420 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.66e-05/2.126, allocations: 17.64 kB / 0.6446 GB, free: 404 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004319/2.127, allocations: 290.8 kB / 0.6449 GB, free: 88 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/2.127, allocations: 0 / 0.6449 GB, free: 88 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.845e-05/2.127, allocations: 12 kB / 0.6449 GB, free: 76 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/2.127, allocations: 16.73 kB / 0.6449 GB, free: 60 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002603/2.127, allocations: 166 kB / 0.6451 GB, free: 15.89 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.03356/2.16, allocations: 10.83 MB / 0.6556 GB, free: 4.996 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003258/2.161, allocations: 98.61 kB / 0.6557 GB, free: 4.891 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.959e-05/2.161, allocations: 61.56 kB / 0.6558 GB, free: 4.828 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1372/2.298, allocations: 43.58 MB / 0.6983 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.511e-05/2.298, allocations: 38.5 kB / 0.6984 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=32): time 2.545e-06/2.298, allocations: 0 / 0.6984 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of matching and sorting (n=32): time 0.0008871/2.299, allocations: 322.2 kB / 0.6987 GB, free: 8.84 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/2.299, allocations: 51.41 kB / 0.6987 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000241/2.299, allocations: 215.7 kB / 0.6989 GB, free: 8.559 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/2.299, allocations: 26.83 kB / 0.699 GB, free: 8.527 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/2.299, allocations: 152.7 kB / 0.6991 GB, free: 8.375 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.601e-05/2.299, allocations: 107 kB / 0.6992 GB, free: 8.27 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.327e-05/2.3, allocations: 45.66 kB / 0.6993 GB, free: 8.219 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001472/2.3, allocations: 338.8 kB / 0.6996 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/2.3, allocations: 69.05 kB / 0.6996 GB, free: 7.812 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/2.3, allocations: 116.9 kB / 0.6998 GB, free: 7.684 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002563/2.3, allocations: 209.5 kB / 0.7 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/2.3, allocations: 3.938 kB / 0.7 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004091/2.301, allocations: 278.6 kB / 0.7002 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/2.301, allocations: 9.516 kB / 0.7002 GB, free: 7.172 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.497e-06/2.301, allocations: 8.656 kB / 0.7002 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008823/2.301, allocations: 138.8 kB / 0.7004 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.787e-05/2.302, allocations: 4 kB / 0.7004 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005533/2.302, allocations: 0.6154 MB / 0.701 GB, free: 6.383 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/2.302, allocations: 27.8 kB / 0.701 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.66e-05/2.302, allocations: 5.094 kB / 0.701 GB, free: 6.352 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 (singularPressureLoss.C2.b,singularPressureLoss.C1.a,PuitsP1.C.a,SourceP1.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): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001386/2.302, allocations: 138.4 kB / 0.7011 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.576e-05/2.302, allocations: 21.3 kB / 0.7012 GB, free: 6.188 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007278/2.303, allocations: 0.5485 MB / 0.7017 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003354/2.303, allocations: 211 kB / 0.7019 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/2.303, allocations: 0 / 0.7019 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/2.303, allocations: 4.828 kB / 0.7019 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008133/2.304, allocations: 0.6228 MB / 0.7025 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/2.304, allocations: 0 / 0.7025 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.137e-05/2.304, allocations: 21.05 kB / 0.7025 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003633/2.305, allocations: 104.8 kB / 0.7026 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/2.305, allocations: 0 / 0.7026 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005031/2.305, allocations: 0.6382 MB / 0.7033 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/2.305, allocations: 0 / 0.7033 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003382/2.306, allocations: 304.4 kB / 0.7036 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.203e-05/2.306, allocations: 36.66 kB / 0.7036 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.638e-05/2.306, allocations: 15.89 kB / 0.7036 GB, free: 3.523 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.609e-05/2.306, allocations: 1.188 kB / 0.7036 GB, free: 3.523 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.547e-05/2.306, allocations: 11.98 kB / 0.7036 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-06/2.306, allocations: 0 / 0.7036 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002435/2.306, allocations: 233.2 kB / 0.7038 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8.1e-08/2.306, allocations: 4.062 kB / 0.7038 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003335/2.309, allocations: 1.2 MB / 0.705 GB, free: 2.074 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005736/2.315, allocations: 2.468 MB / 0.7074 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005851/2.316, allocations: 215.4 kB / 0.7076 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/2.316, allocations: 0 / 0.7076 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002139/2.316, allocations: 78.16 kB / 0.7077 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007326/2.317, allocations: 128.1 kB / 0.7078 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004212/2.321, allocations: 2.959 MB / 0.7107 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001466/2.321, allocations: 155.5 kB / 0.7109 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.876e-05/2.321, allocations: 21.5 kB / 0.7109 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/2.321, allocations: 87.41 kB / 0.711 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of SimCode: time 2.7e-07/2.321, allocations: 0 / 0.711 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08364/2.405, allocations: 47.94 MB / 0.7578 GB, free: 12.64 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.88/17.28, allocations: 20.86 kB / 0.7578 GB, free: 12.63 MB / 0.6231 GB " [Timeout remaining time 642] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.439442366943695] Failed to read output from testmodel.py, exit status != 0: 17.84280104888603 17.853628568 15.729493476 Calling exit ...