Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.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.8536/0.8536, allocations: 153.8 MB / 170.9 MB, free: 13.71 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.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004787/0.0004787, allocations: 16.22 kB / 246.9 MB, free: 14.95 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05987/0.06034, allocations: 33.35 MB / 280.3 MB, free: 15.2 MB / 238.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.TestBend): time 1.679/1.739, allocations: 307.4 MB / 0.5739 GB, free: 10.42 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04428/1.783, allocations: 35.3 MB / 0.6083 GB, free: 6.977 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002483/1.784, allocations: 4 kB / 0.6084 GB, free: 6.973 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/Bend.mo:55:3-57: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/Bend.mo:58:3-60:43: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.0006215/1.784, allocations: 287.6 kB / 0.6086 GB, free: 6.691 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003956/1.785, allocations: 282.8 kB / 0.6089 GB, free: 6.414 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.02542/1.81, allocations: 9.997 MB / 0.6187 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007646/1.811, allocations: 0.4987 MB / 0.6191 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002548/1.811, allocations: 156.5 kB / 0.6193 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003747/1.811, allocations: 251.1 kB / 0.6195 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003638/1.812, allocations: 323 kB / 0.6198 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.04e-05/1.812, allocations: 24 kB / 0.6199 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03128/1.843, allocations: 18.06 MB / 0.6375 GB, free: 9.078 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002519/1.843, allocations: 179.4 kB / 0.6377 GB, free: 8.902 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003168/1.844, allocations: 274.2 kB / 0.6379 GB, free: 8.633 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.02054/1.864, allocations: 8.902 MB / 0.6466 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/1.864, allocations: 0 / 0.6466 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.124e-06/1.864, allocations: 0 / 0.6466 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.013e-05/1.864, allocations: 0 / 0.6466 GB, free: 15.7 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.005132/1.869, allocations: 1.886 MB / 0.6485 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/1.869, allocations: 12.03 kB / 0.6485 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.914e-05/1.869, allocations: 8.562 kB / 0.6485 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.098e-05/1.869, allocations: 70.52 kB / 0.6486 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002441/1.87, allocations: 83.48 kB / 0.6486 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006962/1.87, allocations: 498.7 kB / 0.6491 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.936e-05/1.87, allocations: 20.56 kB / 0.6491 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.122e-05/1.87, allocations: 27.94 kB / 0.6492 GB, free: 13 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006269/1.871, allocations: 433.2 kB / 0.6496 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/1.871, allocations: 0 / 0.6496 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.087e-05/1.871, allocations: 15.98 kB / 0.6496 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/1.871, allocations: 12 kB / 0.6496 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000467/1.872, allocations: 345.7 kB / 0.6499 GB, free: 12.18 MB / 0.5294 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.0419/1.914, allocations: 18.69 MB / 0.6682 GB, free: 7.609 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006131/1.914, allocations: 150.5 kB / 0.6683 GB, free: 7.453 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001371/1.914, allocations: 84.83 kB / 0.6684 GB, free: 7.367 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3555/2.27, allocations: 83.05 MB / 0.7495 GB, free: 192.9 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/2.27, allocations: 38.16 kB / 0.7496 GB, free: 192.9 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=38): time 2.675e-06/2.27, allocations: 0 / 0.7496 GB, free: 192.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=38): time 0.001706/2.271, allocations: 0.5844 MB / 0.7501 GB, free: 192.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/2.272, allocations: 104.5 kB / 0.7502 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/2.273, allocations: 1.006 MB / 0.7512 GB, free: 192.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/2.273, allocations: 31.14 kB / 0.7512 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/2.273, allocations: 311.5 kB / 0.7515 GB, free: 192.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.943e-05/2.273, allocations: 127.8 kB / 0.7517 GB, free: 192 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.608e-05/2.273, allocations: 65.8 kB / 0.7517 GB, free: 192 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.208e-05/2.273, allocations: 383.5 kB / 0.7521 GB, free: 191.7 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/2.273, allocations: 162.2 kB / 0.7522 GB, free: 191.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002006/2.273, allocations: 231.8 kB / 0.7525 GB, free: 191.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003212/2.274, allocations: 339.4 kB / 0.7528 GB, free: 191.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/2.274, allocations: 0 / 0.7528 GB, free: 191.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005811/2.274, allocations: 0.5327 MB / 0.7533 GB, free: 191.3 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/2.274, allocations: 4 kB / 0.7533 GB, free: 191.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/2.274, allocations: 4 kB / 0.7533 GB, free: 191.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001535/2.276, allocations: 225.6 kB / 0.7535 GB, free: 191.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.557e-05/2.276, allocations: 19.98 kB / 0.7535 GB, free: 191.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005198/2.276, allocations: 0.6878 MB / 0.7542 GB, free: 190.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002011/2.277, allocations: 39.02 kB / 0.7543 GB, free: 190.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/2.277, allocations: 15.67 kB / 0.7543 GB, free: 190.4 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (Bend.C2.b,Bend.C1.a,SinkP1.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 (18): * Single equations (assignments): 15 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001946/2.277, allocations: 242.1 kB / 0.7545 GB, free: 190.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.278e-05/2.277, allocations: 75.08 kB / 0.7546 GB, free: 190.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006465/2.278, allocations: 0.6737 MB / 0.7552 GB, free: 189.6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002891/2.278, allocations: 241.8 kB / 0.7555 GB, free: 189.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/2.278, allocations: 0 / 0.7555 GB, free: 189.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/2.278, allocations: 0 / 0.7555 GB, free: 189.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009613/2.279, allocations: 0.9757 MB / 0.7564 GB, free: 188.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/2.279, allocations: 0 / 0.7564 GB, free: 188.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.859e-05/2.279, allocations: 23.17 kB / 0.7564 GB, free: 188.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008111/2.28, allocations: 177.8 kB / 0.7566 GB, free: 188.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/2.28, allocations: 11.62 kB / 0.7566 GB, free: 188.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004633/2.28, allocations: 0.7024 MB / 0.7573 GB, free: 187.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/2.28, allocations: 0 / 0.7573 GB, free: 187.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000388/2.281, allocations: 412.6 kB / 0.7577 GB, free: 187.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/2.281, allocations: 174.6 kB / 0.7579 GB, free: 187.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.786e-05/2.281, allocations: 18.31 kB / 0.7579 GB, free: 187.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/2.281, allocations: 13.98 kB / 0.7579 GB, free: 187.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.837e-05/2.281, allocations: 7.984 kB / 0.7579 GB, free: 187.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/2.281, allocations: 6.625 kB / 0.7579 GB, free: 187.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007097/2.282, allocations: 0.813 MB / 0.7587 GB, free: 186.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9.1e-08/2.282, allocations: 0 / 0.7587 GB, free: 186.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00301/2.285, allocations: 1.271 MB / 0.7599 GB, free: 185.4 MB / 0.5919 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 (12): * Single equations (assignments): 11 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005217/2.29, allocations: 2.659 MB / 0.7625 GB, free: 183 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000693/2.291, allocations: 335.5 kB / 0.7629 GB, free: 182.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/2.291, allocations: 0 / 0.7629 GB, free: 182.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002518/2.291, allocations: 94.2 kB / 0.763 GB, free: 182.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008313/2.292, allocations: 156.5 kB / 0.7631 GB, free: 182.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007048/2.299, allocations: 6.146 MB / 0.7691 GB, free: 176.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/2.299, allocations: 0.9362 MB / 0.77 GB, free: 175.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002024/2.299, allocations: 56.53 kB / 0.7701 GB, free: 175.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002525/2.3, allocations: 228.5 kB / 0.7703 GB, free: 175 MB / 0.5919 GB Notification: Performance of SimCode: time 1.904e-06/2.3, allocations: 0 / 0.7703 GB, free: 175 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0739/2.373, allocations: 54.53 MB / 0.8235 GB, free: 121.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.98/17.35, allocations: 8.906 kB / 0.8235 GB, free: 121.3 MB / 0.5919 GB " [Timeout remaining time 642] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.531687184993643] Failed to read output from testmodel.py, exit status != 0: 17.663360297039617 17.6730946 15.80686464 Calling exit ...