Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.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.5652/0.5652, allocations: 120.4 MB / 139.5 MB, free: 12.99 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.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.831e-06/5.831e-06, allocations: 0 / 216.6 MB, free: 8.684 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.887e-05/4.47e-05, allocations: 2.281 kB / 216.6 MB, free: 8.68 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.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.034/1.034, allocations: 254.2 MB / 470.9 MB, free: 8.855 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.2748/1.309, allocations: 30.8 MB / 0.4899 GB, free: 0.8945 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002514/1.309, allocations: 3.969 kB / 0.4899 GB, free: 0.8945 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/ControlValve.mo:45:3-47:43: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/ControlValve.mo:48:3-50:38: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.0005367/1.31, allocations: 160.2 kB / 0.4901 GB, free: 0.8945 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003208/1.31, allocations: 182 kB / 0.4903 GB, free: 0.8789 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.02432/1.334, allocations: 9.938 MB / 0.5 GB, free: 14.95 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006923/1.335, allocations: 406.2 kB / 0.5004 GB, free: 14.77 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00022/1.335, allocations: 124.2 kB / 0.5005 GB, free: 14.7 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003446/1.335, allocations: 241.4 kB / 0.5007 GB, free: 14.56 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001778/1.336, allocations: 145.9 kB / 0.5008 GB, free: 14.5 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 3.107e-05/1.336, allocations: 19.56 kB / 0.5009 GB, free: 14.5 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02808/1.364, allocations: 16.86 MB / 0.5173 GB, free: 2.52 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001517/1.364, allocations: 78.31 kB / 0.5174 GB, free: 2.449 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002147/1.364, allocations: 103.4 kB / 0.5175 GB, free: 2.352 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02252/1.387, allocations: 10.92 MB / 0.5282 GB, free: 7.93 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.367e-06/1.387, allocations: 0.75 kB / 0.5282 GB, free: 7.93 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.567e-06/1.387, allocations: 0 / 0.5282 GB, free: 7.93 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.308e-05/1.387, allocations: 1.219 kB / 0.5282 GB, free: 7.93 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.004238/1.391, allocations: 1.501 MB / 0.5296 GB, free: 6.395 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/1.391, allocations: 8.625 kB / 0.5296 GB, free: 6.387 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.427e-05/1.391, allocations: 62.53 kB / 0.5297 GB, free: 6.316 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.048e-05/1.391, allocations: 44.34 kB / 0.5297 GB, free: 6.273 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002854/1.391, allocations: 237.3 kB / 0.53 GB, free: 6.023 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/1.391, allocations: 16.5 kB / 0.53 GB, free: 6.004 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/1.391, allocations: 20 kB / 0.53 GB, free: 5.984 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003717/1.392, allocations: 330.2 kB / 0.5303 GB, free: 5.645 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/1.392, allocations: 0 / 0.5303 GB, free: 5.645 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.624e-05/1.392, allocations: 5.094 kB / 0.5303 GB, free: 5.641 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/1.392, allocations: 19.92 kB / 0.5303 GB, free: 5.621 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002226/1.392, allocations: 209.7 kB / 0.5305 GB, free: 5.414 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.01814/1.41, allocations: 10.93 MB / 0.5412 GB, free: 10.58 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001799/1.41, allocations: 122.5 kB / 0.5413 GB, free: 10.45 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.452e-05/1.41, allocations: 88.83 kB / 0.5414 GB, free: 10.36 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07474/1.485, allocations: 43.58 MB / 0.584 GB, free: 14.74 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/1.485, allocations: 30.56 kB / 0.584 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=34): time 2.775e-06/1.485, allocations: 0 / 0.584 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=34): time 0.000814/1.486, allocations: 433.5 kB / 0.5844 GB, free: 14.27 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/1.486, allocations: 59.34 kB / 0.5845 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003164/1.486, allocations: 356.4 kB / 0.5848 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/1.486, allocations: 25.7 kB / 0.5848 GB, free: 13.82 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/1.487, allocations: 194.9 kB / 0.585 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.134e-05/1.487, allocations: 114.2 kB / 0.5851 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.118e-05/1.487, allocations: 45.7 kB / 0.5852 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.663e-05/1.487, allocations: 342.8 kB / 0.5855 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.418e-05/1.487, allocations: 99.97 kB / 0.5856 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/1.487, allocations: 144.1 kB / 0.5857 GB, free: 12.87 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002116/1.487, allocations: 253.1 kB / 0.586 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/1.487, allocations: 4 kB / 0.586 GB, free: 12.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004262/1.488, allocations: 333.9 kB / 0.5863 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/1.488, allocations: 8.125 kB / 0.5863 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/1.488, allocations: 4 kB / 0.5863 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005009/1.488, allocations: 133.5 kB / 0.5864 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.208e-05/1.488, allocations: 26.28 kB / 0.5865 GB, free: 12.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003931/1.489, allocations: 0.6115 MB / 0.5871 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.536e-05/1.489, allocations: 31.77 kB / 0.5871 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/1.489, allocations: 7.984 kB / 0.5871 GB, free: 11.42 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 (ControlValve.C2.b,ControlValve.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 (13): * Single equations (assignments): 10 * 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.0001414/1.489, allocations: 153.8 kB / 0.5872 GB, free: 11.26 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.478e-05/1.489, allocations: 36.55 kB / 0.5873 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005782/1.489, allocations: 0.6491 MB / 0.5879 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002401/1.49, allocations: 247 kB / 0.5881 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/1.49, allocations: 4 kB / 0.5881 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/1.49, allocations: 4.547 kB / 0.5881 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007363/1.49, allocations: 0.7595 MB / 0.5889 GB, free: 9.441 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/1.49, allocations: 4 kB / 0.5889 GB, free: 9.438 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.083e-05/1.49, allocations: 20.56 kB / 0.5889 GB, free: 9.418 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002345/1.491, allocations: 106.6 kB / 0.589 GB, free: 9.312 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/1.491, allocations: 8.641 kB / 0.589 GB, free: 9.305 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003167/1.491, allocations: 0.6344 MB / 0.5896 GB, free: 8.645 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/1.491, allocations: 0.5625 kB / 0.5896 GB, free: 8.645 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003163/1.491, allocations: 389.2 kB / 0.59 GB, free: 8.246 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.635e-05/1.491, allocations: 47.69 kB / 0.5901 GB, free: 8.199 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.84e-05/1.491, allocations: 11.89 kB / 0.5901 GB, free: 8.188 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.777e-05/1.491, allocations: 4 kB / 0.5901 GB, free: 8.184 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.509e-05/1.492, allocations: 12.58 kB / 0.5901 GB, free: 8.172 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/1.492, allocations: 8.5 kB / 0.5901 GB, free: 8.164 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002398/1.492, allocations: 331.1 kB / 0.5904 GB, free: 7.844 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.6e-07/1.492, allocations: 0 / 0.5904 GB, free: 7.844 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002632/1.494, allocations: 1.22 MB / 0.5916 GB, free: 6.621 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 (13): * Single equations (assignments): 12 * 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.005347/1.5, allocations: 2.751 MB / 0.5943 GB, free: 4.078 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0005631/1.5, allocations: 265.4 kB / 0.5945 GB, free: 3.812 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/1.5, allocations: 0 / 0.5945 GB, free: 3.812 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001559/1.5, allocations: 112.6 kB / 0.5946 GB, free: 3.703 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005293/1.501, allocations: 137.5 kB / 0.5948 GB, free: 3.574 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004559/1.506, allocations: 3.729 MB / 0.5984 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001368/1.506, allocations: 197.1 kB / 0.5986 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001222/1.506, allocations: 35.78 kB / 0.5986 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/1.506, allocations: 128.5 kB / 0.5988 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of SimCode: time 1.302e-06/1.506, allocations: 3.938 kB / 0.5988 GB, free: 15.35 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07301/1.579, allocations: 50.34 MB / 0.6479 GB, free: 13.38 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.306/10.89, allocations: 15.55 kB / 0.6479 GB, free: 13.37 MB / 0.5886 GB " [Timeout remaining time 649] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve_fmu --startTime=0 --stopTime=80 --stepSize=0.032 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.568715777248144] Failed to read output from testmodel.py, exit status != 0: 11.24017043877393 11.367520217 9.979221054 Calling exit ...