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.5411/0.5411, 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.Examples.SimpleExamples.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0 / 216.7 MB, free: 8.559 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.783e-05/1.976e-05, allocations: 2.281 kB / 216.7 MB, free: 8.555 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.Examples.SimpleExamples.TestSingularPressureLoss): time 0.9571/0.9571, allocations: 254.2 MB / 471 MB, free: 8.918 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.222/1.179, allocations: 30.51 MB / 0.4897 GB, free: 0.8984 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/1.179, allocations: 2.625 kB / 0.4897 GB, free: 0.8984 MB / 442.7 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.0003101/1.18, allocations: 104 kB / 0.4898 GB, free: 0.8984 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001661/1.18, allocations: 116 kB / 0.4899 GB, free: 0.8945 MB / 442.7 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.01772/1.198, allocations: 9.764 MB / 0.4995 GB, free: 15.12 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004202/1.198, allocations: 343.1 kB / 0.4998 GB, free: 15 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/1.198, allocations: 93.55 kB / 0.4999 GB, free: 14.97 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003339/1.198, allocations: 214.5 kB / 0.5001 GB, free: 14.9 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001013/1.199, allocations: 76.12 kB / 0.5002 GB, free: 14.88 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.28e-05/1.199, allocations: 16.47 kB / 0.5002 GB, free: 14.88 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01965/1.218, allocations: 16.78 MB / 0.5166 GB, free: 3.281 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 7.742e-05/1.218, allocations: 48.12 kB / 0.5166 GB, free: 3.238 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001957/1.219, allocations: 77.44 kB / 0.5167 GB, free: 3.168 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01378/1.232, allocations: 10.79 MB / 0.5272 GB, free: 8.863 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/1.232, allocations: 4 kB / 0.5272 GB, free: 8.859 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.562e-06/1.232, allocations: 0 / 0.5272 GB, free: 8.859 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.773e-06/1.232, allocations: 0.875 kB / 0.5272 GB, free: 8.859 MB / 474.7 MB 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.002613/1.235, allocations: 1.389 MB / 0.5286 GB, free: 7.438 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/1.235, allocations: 16.91 kB / 0.5286 GB, free: 7.422 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.332e-05/1.235, allocations: 59.05 kB / 0.5287 GB, free: 7.355 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.003e-05/1.235, allocations: 35.73 kB / 0.5287 GB, free: 7.32 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/1.235, allocations: 167.5 kB / 0.5289 GB, free: 7.133 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/1.235, allocations: 12.5 kB / 0.5289 GB, free: 7.121 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.824e-05/1.235, allocations: 20.56 kB / 0.5289 GB, free: 7.102 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002896/1.236, allocations: 296.8 kB / 0.5292 GB, free: 6.793 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/1.236, allocations: 0 / 0.5292 GB, free: 6.793 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/1.236, allocations: 9.406 kB / 0.5292 GB, free: 6.785 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/1.236, allocations: 11.98 kB / 0.5292 GB, free: 6.773 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001627/1.236, allocations: 164.3 kB / 0.5293 GB, free: 6.609 MB / 474.7 MB 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.01665/1.252, allocations: 10.82 MB / 0.5399 GB, free: 11.89 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002147/1.253, allocations: 103 kB / 0.54 GB, free: 11.78 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.464e-05/1.253, allocations: 65.72 kB / 0.5401 GB, free: 11.71 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06976/1.322, allocations: 43.57 MB / 0.5826 GB, free: 120 kB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/1.322, allocations: 34.56 kB / 0.5827 GB, free: 76 kB / 0.5105 GB Notification: Performance of pre-optimization done (n=32): time 2.554e-06/1.322, allocations: 0 / 0.5827 GB, free: 76 kB / 0.5105 GB Notification: Performance of matching and sorting (n=32): time 0.0006101/1.323, allocations: 326.6 kB / 0.583 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.179e-05/1.323, allocations: 51.41 kB / 0.583 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001706/1.323, allocations: 223.8 kB / 0.5832 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/1.323, allocations: 25.7 kB / 0.5833 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.81e-05/1.323, allocations: 145 kB / 0.5834 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.869e-05/1.323, allocations: 107 kB / 0.5835 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.272e-05/1.323, allocations: 45.66 kB / 0.5835 GB, free: 15.13 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001542/1.324, allocations: 342.8 kB / 0.5839 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.669e-05/1.324, allocations: 64.31 kB / 0.5839 GB, free: 14.72 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.584e-05/1.324, allocations: 118.3 kB / 0.584 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/1.324, allocations: 209.3 kB / 0.5842 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/1.324, allocations: 0 / 0.5842 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002621/1.324, allocations: 274.1 kB / 0.5845 GB, free: 14.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/1.324, allocations: 4.125 kB / 0.5845 GB, free: 14.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/1.324, allocations: 12.73 kB / 0.5845 GB, free: 14.08 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000507/1.325, allocations: 144.5 kB / 0.5847 GB, free: 13.94 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.278e-05/1.325, allocations: 8 kB / 0.5847 GB, free: 13.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003435/1.325, allocations: 0.612 MB / 0.5853 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.61e-05/1.325, allocations: 35.75 kB / 0.5853 GB, free: 13.26 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.998e-06/1.325, allocations: 4 kB / 0.5853 GB, free: 13.26 MB / 0.5261 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 9.573e-05/1.325, allocations: 130.5 kB / 0.5854 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.608e-05/1.325, allocations: 19.86 kB / 0.5854 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004491/1.326, allocations: 0.5667 MB / 0.586 GB, free: 12.46 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001734/1.326, allocations: 195.6 kB / 0.5862 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/1.326, allocations: 0 / 0.5862 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/1.326, allocations: 0 / 0.5862 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004962/1.326, allocations: 0.6204 MB / 0.5868 GB, free: 11.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/1.326, allocations: 0 / 0.5868 GB, free: 11.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.978e-05/1.326, allocations: 16.55 kB / 0.5868 GB, free: 11.58 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002024/1.327, allocations: 100.8 kB / 0.5869 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/1.327, allocations: 15.86 kB / 0.5869 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002809/1.327, allocations: 0.6372 MB / 0.5875 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/1.327, allocations: 0 / 0.5875 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001949/1.327, allocations: 311.7 kB / 0.5878 GB, free: 10.48 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.678e-05/1.327, allocations: 27.83 kB / 0.5879 GB, free: 10.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/1.327, allocations: 11.89 kB / 0.5879 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.628e-05/1.327, allocations: 7.938 kB / 0.5879 GB, free: 10.44 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.058e-05/1.327, allocations: 12.48 kB / 0.5879 GB, free: 10.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/1.327, allocations: 0 / 0.5879 GB, free: 10.43 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.000151/1.327, allocations: 233.9 kB / 0.5881 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7e-08/1.327, allocations: 64 / 0.5881 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002313/1.33, allocations: 1.204 MB / 0.5893 GB, free: 8.992 MB / 0.5261 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.004008/1.334, allocations: 2.64 MB / 0.5919 GB, free: 6.559 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0003575/1.334, allocations: 205.5 kB / 0.5921 GB, free: 6.352 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/1.334, allocations: 0 / 0.5921 GB, free: 6.352 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001104/1.334, allocations: 83.94 kB / 0.5921 GB, free: 6.27 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004368/1.335, allocations: 125.1 kB / 0.5923 GB, free: 6.156 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00268/1.337, allocations: 2.952 MB / 0.5951 GB, free: 3.098 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.891e-05/1.337, allocations: 155.5 kB / 0.5953 GB, free: 2.922 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 6.69e-05/1.338, allocations: 18.89 kB / 0.5953 GB, free: 2.906 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.646e-05/1.338, allocations: 88.41 kB / 0.5954 GB, free: 2.82 MB / 0.5261 GB Notification: Performance of SimCode: time 6.41e-07/1.338, allocations: 0 / 0.5954 GB, free: 2.82 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05879/1.396, allocations: 48.54 MB / 0.6428 GB, free: 2.629 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.415/10.81, allocations: 17.09 kB / 0.6428 GB, free: 2.617 MB / 0.573 GB " [Timeout remaining time 649] (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: 12.320434192195535] Failed to read output from testmodel.py, exit status != 0: 11.138876152224839 11.244822639 9.832811488 Calling exit ...