Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.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.8229/0.8229, allocations: 153.8 MB / 172.7 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.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005094/0.0005094, allocations: 15.97 kB / 249.7 MB, free: 4.418 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1604, allocations: 33.35 MB / 283.1 MB, free: 1.73 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.Book.SimpleExamples.PressureLoss.TestPipePressureLoss): time 1.808/1.968, allocations: 307.5 MB / 0.5767 GB, free: 17.45 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02967/1.998, allocations: 30.52 MB / 0.6065 GB, free: 2.754 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002745/1.998, allocations: 3.438 kB / 0.6065 GB, free: 2.754 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/PipePressureLoss.mo:35:3-37:42: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/PipePressureLoss.mo:38:3-40:37: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.0003947/1.998, allocations: 108.4 kB / 0.6066 GB, free: 2.707 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002063/1.998, allocations: 119.3 kB / 0.6068 GB, free: 2.625 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.02486/2.023, allocations: 9.687 MB / 0.6162 GB, free: 12.6 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007063/2.024, allocations: 354.4 kB / 0.6165 GB, free: 12.25 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002217/2.024, allocations: 84.84 kB / 0.6166 GB, free: 12.17 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002994/2.025, allocations: 151.3 kB / 0.6168 GB, free: 12.02 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/2.025, allocations: 103.4 kB / 0.6169 GB, free: 11.92 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.017e-05/2.025, allocations: 18.62 kB / 0.6169 GB, free: 11.9 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03163/2.056, allocations: 16.76 MB / 0.6333 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.015e-05/2.056, allocations: 43.8 kB / 0.6333 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001781/2.057, allocations: 107.5 kB / 0.6334 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01948/2.076, allocations: 8.451 MB / 0.6417 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/2.076, allocations: 0 / 0.6417 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.613e-06/2.076, allocations: 0 / 0.6417 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.084e-06/2.076, allocations: 0 / 0.6417 GB, free: 2.512 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.003585/2.08, allocations: 1.399 MB / 0.643 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/2.08, allocations: 12.03 kB / 0.643 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.681e-05/2.08, allocations: 63.19 kB / 0.6431 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.42e-05/2.08, allocations: 27.81 kB / 0.6431 GB, free: 0.9648 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002258/2.08, allocations: 188.6 kB / 0.6433 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.827e-05/2.08, allocations: 12.44 kB / 0.6433 GB, free: 0.7422 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.003e-05/2.08, allocations: 25.22 kB / 0.6433 GB, free: 0.7188 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004209/2.081, allocations: 295.4 kB / 0.6436 GB, free: 416 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/2.081, allocations: 0 / 0.6436 GB, free: 416 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.087e-05/2.081, allocations: 16.58 kB / 0.6436 GB, free: 400 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/2.081, allocations: 12 kB / 0.6436 GB, free: 388 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002597/2.081, allocations: 169.7 kB / 0.6438 GB, free: 216 kB / 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.03493/2.116, allocations: 10.83 MB / 0.6544 GB, free: 5.312 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003082/2.116, allocations: 118.6 kB / 0.6545 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/2.116, allocations: 73.67 kB / 0.6546 GB, free: 5.113 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1462/2.262, allocations: 43.57 MB / 0.6971 GB, free: 9.496 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/2.263, allocations: 40.47 kB / 0.6972 GB, free: 9.449 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 4.038e-06/2.263, allocations: 0.5156 kB / 0.6972 GB, free: 9.449 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001065/2.264, allocations: 372.4 kB / 0.6975 GB, free: 9.078 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/2.264, allocations: 51.41 kB / 0.6976 GB, free: 9.016 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002538/2.264, allocations: 223.1 kB / 0.6978 GB, free: 8.785 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/2.264, allocations: 29.7 kB / 0.6978 GB, free: 8.75 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/2.264, allocations: 156.6 kB / 0.698 GB, free: 8.598 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.485e-05/2.264, allocations: 111 kB / 0.6981 GB, free: 8.488 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.826e-05/2.264, allocations: 53.64 kB / 0.6981 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001685/2.264, allocations: 335.6 kB / 0.6984 GB, free: 8.094 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/2.265, allocations: 75.97 kB / 0.6985 GB, free: 8.02 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/2.265, allocations: 117.2 kB / 0.6986 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000272/2.265, allocations: 208.8 kB / 0.6988 GB, free: 7.672 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.839e-06/2.265, allocations: 4 kB / 0.6988 GB, free: 7.668 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004436/2.265, allocations: 297.7 kB / 0.6991 GB, free: 7.367 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/2.265, allocations: 8 kB / 0.6991 GB, free: 7.359 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/2.265, allocations: 0 / 0.6991 GB, free: 7.359 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008997/2.266, allocations: 165.8 kB / 0.6993 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.777e-05/2.266, allocations: 14.38 kB / 0.6993 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005633/2.267, allocations: 0.631 MB / 0.6999 GB, free: 6.527 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001553/2.267, allocations: 27.8 kB / 0.6999 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/2.267, allocations: 12 kB / 0.6999 GB, free: 6.488 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 (pipePressureLoss.C2.b,pipePressureLoss.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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000135/2.267, allocations: 137.8 kB / 0.7001 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.395e-05/2.267, allocations: 23.8 kB / 0.7001 GB, free: 6.32 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007809/2.268, allocations: 0.5808 MB / 0.7007 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000368/2.268, allocations: 222.3 kB / 0.7009 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/2.268, allocations: 0 / 0.7009 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/2.268, allocations: 9.109 kB / 0.7009 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009858/2.269, allocations: 0.6626 MB / 0.7015 GB, free: 4.723 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/2.269, allocations: 4.562 kB / 0.7015 GB, free: 4.719 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.704e-05/2.269, allocations: 16 kB / 0.7015 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003847/2.27, allocations: 106.3 kB / 0.7016 GB, free: 4.598 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/2.27, allocations: 8 kB / 0.7017 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000569/2.27, allocations: 0.662 MB / 0.7023 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/2.27, allocations: 4.875 kB / 0.7023 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004729/2.271, allocations: 339.2 kB / 0.7026 GB, free: 3.551 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.522e-05/2.271, allocations: 35.77 kB / 0.7027 GB, free: 3.516 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.542e-05/2.271, allocations: 17.39 kB / 0.7027 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/2.271, allocations: 4 kB / 0.7027 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.07e-05/2.271, allocations: 7.984 kB / 0.7027 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/2.271, allocations: 9.688 kB / 0.7027 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002676/2.271, allocations: 243.1 kB / 0.7029 GB, free: 3.246 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/2.271, allocations: 0 / 0.7029 GB, free: 3.246 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003414/2.275, allocations: 1.204 MB / 0.7041 GB, free: 2.039 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005874/2.281, allocations: 2.515 MB / 0.7066 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005599/2.281, allocations: 214.9 kB / 0.7068 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/2.281, allocations: 0 / 0.7068 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002114/2.282, allocations: 86 kB / 0.7069 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007441/2.282, allocations: 117.5 kB / 0.707 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004296/2.287, allocations: 3.056 MB / 0.7099 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001596/2.287, allocations: 164.8 kB / 0.7101 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001004/2.287, allocations: 24.12 kB / 0.7101 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/2.287, allocations: 88.58 kB / 0.7102 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of SimCode: time 7.31e-07/2.287, allocations: 7.875 kB / 0.7102 GB, free: 11.67 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09449/2.381, allocations: 48.45 MB / 0.7575 GB, free: 11.9 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.51/16.89, allocations: 4.062 kB / 0.7575 GB, free: 11.9 MB / 0.6231 GB " [Timeout remaining time 643] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.913671778980643] Failed to read output from testmodel.py, exit status != 0: 17.441371510736644 17.451530934 15.372972269 Calling exit ...