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.895/0.895, allocations: 153.9 MB / 172.7 MB, free: 4.949 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="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 0.0005356/0.0005356, allocations: 15.97 kB / 249.9 MB, free: 4.457 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1769/0.1774, allocations: 33.36 MB / 283.2 MB, free: 1.82 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.798/1.975, allocations: 307.4 MB / 0.5768 GB, free: 15.98 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03471/2.01, allocations: 34.69 MB / 0.6107 GB, free: 14.44 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002993/2.01, allocations: 6.406 kB / 0.6107 GB, free: 14.44 MB / 494.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.0004323/2.011, allocations: 133.4 kB / 0.6108 GB, free: 14.37 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002547/2.011, allocations: 112.6 kB / 0.6109 GB, free: 14.29 MB / 494.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.02681/2.038, allocations: 9.817 MB / 0.6205 GB, free: 8.797 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006264/2.038, allocations: 334.4 kB / 0.6208 GB, free: 8.469 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001889/2.038, allocations: 86.78 kB / 0.6209 GB, free: 8.387 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002892/2.039, allocations: 143.4 kB / 0.621 GB, free: 8.246 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001616/2.039, allocations: 117.1 kB / 0.6212 GB, free: 8.133 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.18e-05/2.039, allocations: 16 kB / 0.6212 GB, free: 8.117 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03576/2.075, allocations: 17.91 MB / 0.6387 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.559e-05/2.075, allocations: 39.86 kB / 0.6387 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002044/2.075, allocations: 131.3 kB / 0.6388 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02128/2.096, allocations: 8.435 MB / 0.6471 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/2.096, allocations: 1.219 kB / 0.6471 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.322e-06/2.096, allocations: 0 / 0.6471 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.416e-06/2.096, allocations: 0 / 0.6471 GB, free: 13.56 MB / 0.5137 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.003993/2.1, allocations: 1.4 MB / 0.6484 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/2.1, allocations: 8.031 kB / 0.6484 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.459e-05/2.1, allocations: 62.53 kB / 0.6485 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.515e-05/2.1, allocations: 27.81 kB / 0.6485 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002227/2.101, allocations: 169.4 kB / 0.6487 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/2.101, allocations: 18.31 kB / 0.6487 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.052e-05/2.101, allocations: 20 kB / 0.6487 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004252/2.101, allocations: 294.7 kB / 0.649 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/2.101, allocations: 1.438 kB / 0.649 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.781e-05/2.101, allocations: 8 kB / 0.649 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/2.101, allocations: 13.03 kB / 0.649 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002448/2.101, allocations: 164.5 kB / 0.6492 GB, free: 11.3 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.0344/2.136, allocations: 11.23 MB / 0.6602 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003274/2.136, allocations: 98.53 kB / 0.6602 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.99e-05/2.136, allocations: 64.97 kB / 0.6603 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1407/2.277, allocations: 43.41 MB / 0.7027 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/2.277, allocations: 38.56 kB / 0.7027 GB, free: 4.223 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=32): time 2.604e-06/2.277, allocations: 4 kB / 0.7027 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of matching and sorting (n=32): time 0.0009133/2.278, allocations: 318.2 kB / 0.703 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/2.278, allocations: 59.34 kB / 0.7031 GB, free: 3.828 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000274/2.278, allocations: 207.8 kB / 0.7033 GB, free: 3.617 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/2.278, allocations: 26.36 kB / 0.7033 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/2.278, allocations: 156.7 kB / 0.7035 GB, free: 3.43 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.382e-05/2.278, allocations: 111 kB / 0.7036 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.431e-05/2.278, allocations: 49.64 kB / 0.7036 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001514/2.279, allocations: 330.8 kB / 0.7039 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/2.279, allocations: 72.31 kB / 0.704 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/2.279, allocations: 118.6 kB / 0.7041 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002867/2.279, allocations: 208.6 kB / 0.7043 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/2.279, allocations: 0 / 0.7043 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004836/2.28, allocations: 275 kB / 0.7046 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/2.28, allocations: 9.219 kB / 0.7046 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/2.28, allocations: 4 kB / 0.7046 GB, free: 2.23 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008654/2.281, allocations: 144.7 kB / 0.7047 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.072e-05/2.281, allocations: 12 kB / 0.7047 GB, free: 2.074 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005962/2.281, allocations: 0.6119 MB / 0.7053 GB, free: 1.438 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/2.281, allocations: 23.81 kB / 0.7054 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/2.281, allocations: 8 kB / 0.7054 GB, free: 1.406 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.0001496/2.282, allocations: 134.5 kB / 0.7055 GB, free: 1.266 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.659e-05/2.282, allocations: 25.61 kB / 0.7055 GB, free: 1.242 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007489/2.282, allocations: 0.5501 MB / 0.7061 GB, free: 0.6211 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003333/2.283, allocations: 198.2 kB / 0.7063 GB, free: 428 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/2.283, allocations: 1.531 kB / 0.7063 GB, free: 428 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/2.283, allocations: 4 kB / 0.7063 GB, free: 424 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009166/2.284, allocations: 0.6553 MB / 0.7069 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/2.284, allocations: 3.984 kB / 0.7069 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.918e-05/2.284, allocations: 15.94 kB / 0.7069 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003604/2.284, allocations: 109.6 kB / 0.707 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/2.284, allocations: 4 kB / 0.707 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005146/2.285, allocations: 0.636 MB / 0.7076 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/2.285, allocations: 1.781 kB / 0.7077 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003548/2.285, allocations: 297.4 kB / 0.7079 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.784e-05/2.285, allocations: 39.72 kB / 0.708 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.402e-05/2.285, allocations: 9.328 kB / 0.708 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.574e-05/2.285, allocations: 0 / 0.708 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.52e-05/2.285, allocations: 11.98 kB / 0.708 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.085e-06/2.285, allocations: 8.062 kB / 0.708 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002548/2.285, allocations: 233.2 kB / 0.7082 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/2.285, allocations: 0 / 0.7082 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003239/2.289, allocations: 1.205 MB / 0.7094 GB, free: 13.1 MB / 0.5762 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.00636/2.295, allocations: 2.479 MB / 0.7118 GB, free: 10.64 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006234/2.296, allocations: 205.7 kB / 0.712 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/2.296, allocations: 0 / 0.712 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002284/2.296, allocations: 79.94 kB / 0.7121 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007519/2.297, allocations: 117.8 kB / 0.7122 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004815/2.301, allocations: 2.968 MB / 0.7151 GB, free: 7.176 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003867/2.302, allocations: 0.7597 MB / 0.7158 GB, free: 6.391 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001064/2.302, allocations: 23.78 kB / 0.7159 GB, free: 6.371 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/2.302, allocations: 91.39 kB / 0.716 GB, free: 6.281 MB / 0.5762 GB Notification: Performance of SimCode: time 1.252e-06/2.302, allocations: 0 / 0.716 GB, free: 6.281 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09363/2.396, allocations: 47.81 MB / 0.7626 GB, free: 7.098 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.86/17.26, allocations: 6.312 kB / 0.7627 GB, free: 7.094 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.459954776102677] Failed to read output from testmodel.py, exit status != 0: 17.80087273893878 17.811431986 15.712728989 Calling exit ...