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.8272/0.8272, allocations: 153.8 MB / 172.7 MB, free: 4.887 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005085/0.0005085, allocations: 7.984 kB / 249.8 MB, free: 4.371 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1704/0.1709, allocations: 33.36 MB / 283.2 MB, free: 1.723 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.795/1.966, allocations: 307.4 MB / 0.5767 GB, free: 17.39 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03149/1.997, allocations: 30.48 MB / 0.6065 GB, free: 2.934 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000268/1.998, allocations: 2.219 kB / 0.6065 GB, free: 2.934 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.0004075/1.998, allocations: 103.8 kB / 0.6066 GB, free: 2.891 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000187/1.998, allocations: 88.14 kB / 0.6067 GB, free: 2.828 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.0261/2.024, allocations: 9.679 MB / 0.6161 GB, free: 13.13 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005152/2.025, allocations: 278.8 kB / 0.6164 GB, free: 12.86 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/2.025, allocations: 77.27 kB / 0.6165 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002666/2.025, allocations: 141.9 kB / 0.6166 GB, free: 12.65 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/2.025, allocations: 83.56 kB / 0.6167 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.576e-05/2.025, allocations: 16 kB / 0.6167 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03282/2.058, allocations: 16.75 MB / 0.633 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.636e-05/2.058, allocations: 47.83 kB / 0.6331 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000148/2.059, allocations: 91.55 kB / 0.6332 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02084/2.079, allocations: 8.408 MB / 0.6414 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/2.079, allocations: 0 / 0.6414 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.054e-06/2.079, allocations: 0 / 0.6414 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.248e-06/2.079, allocations: 0 / 0.6414 GB, free: 3.219 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.004078/2.083, allocations: 1.364 MB / 0.6427 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/2.083, allocations: 12.03 kB / 0.6427 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.873e-05/2.084, allocations: 63.38 kB / 0.6428 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.511e-05/2.084, allocations: 23.86 kB / 0.6428 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/2.084, allocations: 166 kB / 0.643 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.703e-05/2.084, allocations: 16.38 kB / 0.643 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.402e-05/2.084, allocations: 26.92 kB / 0.643 GB, free: 1.48 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004403/2.084, allocations: 264.6 kB / 0.6433 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/2.084, allocations: 0 / 0.6433 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/2.084, allocations: 4 kB / 0.6433 GB, free: 1.195 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/2.084, allocations: 15.98 kB / 0.6433 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002854/2.085, allocations: 146.4 kB / 0.6434 GB, free: 1.039 MB / 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.01854/2.103, allocations: 5.84 MB / 0.6491 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001935/2.103, allocations: 62.56 kB / 0.6492 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.873e-05/2.104, allocations: 48.88 kB / 0.6492 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1465/2.25, allocations: 43.58 MB / 0.6918 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/2.25, allocations: 39.17 kB / 0.6918 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 2.404e-06/2.25, allocations: 0.9375 kB / 0.6918 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.0006035/2.251, allocations: 207.3 kB / 0.692 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.584e-05/2.251, allocations: 55.39 kB / 0.6921 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002763/2.251, allocations: 228 kB / 0.6923 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/2.251, allocations: 29.7 kB / 0.6923 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000107/2.251, allocations: 144.5 kB / 0.6925 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.9e-05/2.251, allocations: 71.38 kB / 0.6925 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.163e-05/2.251, allocations: 53.58 kB / 0.6926 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001548/2.251, allocations: 330.8 kB / 0.6929 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/2.251, allocations: 51.97 kB / 0.6929 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001402/2.252, allocations: 94.45 kB / 0.693 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002509/2.252, allocations: 156.1 kB / 0.6932 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/2.252, allocations: 0.9375 kB / 0.6932 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003353/2.252, allocations: 198.2 kB / 0.6934 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/2.252, allocations: 4 kB / 0.6934 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/2.252, allocations: 4.125 kB / 0.6934 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/2.252, allocations: 4 kB / 0.6934 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006353/2.253, allocations: 95.81 kB / 0.6935 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/2.253, allocations: 4 kB / 0.6935 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/2.253, allocations: 35.77 kB / 0.6935 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/2.253, allocations: 4 kB / 0.6935 GB, free: 13.53 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.0001278/2.253, allocations: 134.4 kB / 0.6936 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.667e-05/2.253, allocations: 26.05 kB / 0.6937 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004766/2.254, allocations: 335.8 kB / 0.694 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002427/2.254, allocations: 154.3 kB / 0.6941 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/2.254, allocations: 0 / 0.6941 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/2.254, allocations: 0 / 0.6941 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008445/2.255, allocations: 0.5584 MB / 0.6947 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/2.255, allocations: 0 / 0.6947 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005002/2.255, allocations: 95.83 kB / 0.6948 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/2.255, allocations: 32 / 0.6948 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/2.255, allocations: 10.08 kB / 0.6948 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/2.255, allocations: 3.984 kB / 0.6948 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/2.255, allocations: 3.938 kB / 0.6948 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003971/2.256, allocations: 292.7 kB / 0.6951 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.648e-05/2.256, allocations: 31.78 kB / 0.6951 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.384e-05/2.256, allocations: 4.734 kB / 0.6951 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/2.256, allocations: 8 kB / 0.6951 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.828e-05/2.256, allocations: 11.92 kB / 0.6951 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.727e-06/2.256, allocations: 8 kB / 0.6951 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002145/2.256, allocations: 205.2 kB / 0.6953 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/2.256, allocations: 0 / 0.6953 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00305/2.259, allocations: 1.193 MB / 0.6965 GB, free: 10.37 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.006074/2.265, allocations: 2.458 MB / 0.6989 GB, free: 7.91 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005382/2.266, allocations: 177.5 kB / 0.6991 GB, free: 7.73 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/2.266, allocations: 0 / 0.6991 GB, free: 7.73 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001427/2.266, allocations: 65.77 kB / 0.6991 GB, free: 7.668 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006885/2.267, allocations: 98.58 kB / 0.6992 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004703/2.271, allocations: 2.85 MB / 0.702 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001416/2.272, allocations: 146.9 kB / 0.7021 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001175/2.272, allocations: 24.02 kB / 0.7022 GB, free: 4.441 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/2.272, allocations: 83.41 kB / 0.7022 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of SimCode: time 7.02e-07/2.272, allocations: 0 / 0.7022 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09343/2.365, allocations: 47.19 MB / 0.7483 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/15.33, allocations: 3.375 kB / 0.7483 GB, free: 5.82 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.28721880307421] Failed to read output from testmodel.py, exit status != 0: 15.84474316937849 15.855510133 13.773711893 Calling exit ...