Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.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.8217/0.8217, allocations: 153.8 MB / 172.7 MB, free: 4.859 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.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005068/0.0005068, allocations: 11.98 kB / 249.8 MB, free: 4.359 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.1787, allocations: 33.35 MB / 283.2 MB, free: 1.734 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.TestDynamicCheckValve): time 1.794/1.972, allocations: 307.8 MB / 0.5771 GB, free: 17.41 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03312/2.006, allocations: 30.88 MB / 0.6072 GB, free: 2.527 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004754/2.006, allocations: 3.906 kB / 0.6072 GB, free: 2.527 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/DynamicCheckValve.mo:61:3-63: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/DynamicCheckValve.mo:64:3-65:51: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.0005086/2.007, allocations: 127.7 kB / 0.6074 GB, free: 2.473 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003563/2.007, allocations: 151.6 kB / 0.6075 GB, free: 2.371 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.02764/2.035, allocations: 9.869 MB / 0.6171 GB, free: 12.22 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007689/2.035, allocations: 450.7 kB / 0.6176 GB, free: 11.78 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002412/2.036, allocations: 141.2 kB / 0.6177 GB, free: 11.64 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000323/2.036, allocations: 201.4 kB / 0.6179 GB, free: 11.45 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002294/2.036, allocations: 155.2 kB / 0.6181 GB, free: 11.3 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.27e-05/2.036, allocations: 24 kB / 0.6181 GB, free: 11.27 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03206/2.068, allocations: 16.77 MB / 0.6345 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000161/2.068, allocations: 63.77 kB / 0.6345 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002184/2.069, allocations: 139.3 kB / 0.6347 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02154/2.09, allocations: 8.54 MB / 0.643 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.64e-05/2.09, allocations: 8 kB / 0.643 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.304e-06/2.09, allocations: 0.9375 kB / 0.643 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.065e-05/2.09, allocations: 0 / 0.643 GB, free: 1.711 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.005202/2.095, allocations: 1.556 MB / 0.6445 GB, free: 116 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/2.095, allocations: 8.031 kB / 0.6445 GB, free: 108 kB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.476e-05/2.095, allocations: 74.53 kB / 0.6446 GB, free: 24 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002096/2.096, allocations: 52.33 kB / 0.6446 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003095/2.096, allocations: 204.5 kB / 0.6448 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.221e-05/2.096, allocations: 71.89 kB / 0.6449 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.608e-05/2.096, allocations: 24.84 kB / 0.6449 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005596/2.097, allocations: 354.3 kB / 0.6453 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.404e-05/2.097, allocations: 4.656 kB / 0.6453 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.612e-05/2.097, allocations: 8 kB / 0.6453 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.928e-05/2.097, allocations: 15.98 kB / 0.6453 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003976/2.097, allocations: 229.7 kB / 0.6455 GB, free: 15.02 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.01925/2.116, allocations: 6.099 MB / 0.6515 GB, free: 8.852 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006537/2.117, allocations: 244.8 kB / 0.6517 GB, free: 8.602 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002067/2.117, allocations: 128.9 kB / 0.6518 GB, free: 8.473 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1634/2.281, allocations: 48.43 MB / 0.6991 GB, free: 8 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004483/2.281, allocations: 220.8 kB / 0.6993 GB, free: 7.77 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 2.044e-06/2.281, allocations: 0 / 0.6993 GB, free: 7.77 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.001139/2.282, allocations: 491.5 kB / 0.6998 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/2.282, allocations: 81.11 kB / 0.6999 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000296/2.283, allocations: 257.8 kB / 0.7001 GB, free: 6.922 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/2.283, allocations: 34.39 kB / 0.7002 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/2.283, allocations: 165.1 kB / 0.7003 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/2.283, allocations: 166.5 kB / 0.7005 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.878e-05/2.283, allocations: 61.92 kB / 0.7005 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001754/2.283, allocations: 346.7 kB / 0.7009 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/2.283, allocations: 112.7 kB / 0.701 GB, free: 6.031 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002379/2.284, allocations: 159.7 kB / 0.7011 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004529/2.284, allocations: 299.9 kB / 0.7014 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/2.284, allocations: 4 kB / 0.7014 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008117/2.285, allocations: 431.2 kB / 0.7018 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/2.285, allocations: 8 kB / 0.7018 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/2.285, allocations: 0 / 0.7018 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009627/2.286, allocations: 197.5 kB / 0.702 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/2.286, allocations: 25.3 kB / 0.702 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002443/2.288, allocations: 2.315 MB / 0.7043 GB, free: 2.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002088/2.289, allocations: 39.73 kB / 0.7043 GB, free: 2.391 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.448e-05/2.289, allocations: 16.11 kB / 0.7044 GB, free: 2.375 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: 7 (checkValve.C2.b,checkValve.C1.a,puitsP1.C.a,sourceP1.C.b,checkValve.libre,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001799/2.289, allocations: 151.6 kB / 0.7045 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.428e-05/2.289, allocations: 35.7 kB / 0.7045 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008489/2.29, allocations: 0.5614 MB / 0.7051 GB, free: 1.578 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005335/2.29, allocations: 358.3 kB / 0.7054 GB, free: 1.223 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-06/2.29, allocations: 4 kB / 0.7054 GB, free: 1.219 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/2.29, allocations: 4 kB / 0.7054 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/2.292, allocations: 0.9199 MB / 0.7063 GB, free: 244 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/2.292, allocations: 1.688 kB / 0.7063 GB, free: 244 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002809/2.292, allocations: 55.86 kB / 0.7064 GB, free: 188 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003582/2.292, allocations: 116.8 kB / 0.7065 GB, free: 68 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.097e-05/2.292, allocations: 4 kB / 0.7065 GB, free: 64 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000563/2.293, allocations: 0.6364 MB / 0.7071 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/2.293, allocations: 3.984 kB / 0.7071 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/2.294, allocations: 0.6497 MB / 0.7078 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/2.294, allocations: 59.83 kB / 0.7078 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.434e-05/2.294, allocations: 19.88 kB / 0.7078 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001955/2.294, allocations: 15.98 kB / 0.7079 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.487e-05/2.294, allocations: 31.94 kB / 0.7079 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/2.294, allocations: 8 kB / 0.7079 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002442/2.295, allocations: 225.1 kB / 0.7081 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/2.295, allocations: 0 / 0.7081 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002994/2.298, allocations: 1.228 MB / 0.7093 GB, free: 13.15 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.omega,checkValve.theta) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,checkValve.libre) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.006233/2.304, allocations: 2.854 MB / 0.7121 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00108/2.305, allocations: 468.8 kB / 0.7125 GB, free: 9.824 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/2.305, allocations: 0 / 0.7125 GB, free: 9.824 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004135/2.305, allocations: 177.1 kB / 0.7127 GB, free: 9.652 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007862/2.306, allocations: 128.9 kB / 0.7128 GB, free: 9.543 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006369/2.312, allocations: 3.888 MB / 0.7166 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002002/2.313, allocations: 204.7 kB / 0.7168 GB, free: 5.332 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001531/2.313, allocations: 38.09 kB / 0.7169 GB, free: 5.297 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/2.313, allocations: 127.4 kB / 0.717 GB, free: 5.172 MB / 0.5762 GB Notification: Performance of SimCode: time 9.32e-07/2.313, allocations: 0 / 0.717 GB, free: 5.172 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09717/2.41, allocations: 50.89 MB / 0.7667 GB, free: 3 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.05/17.46, allocations: 6.312 kB / 0.7667 GB, free: 3 MB / 0.6231 GB " [Timeout remaining time 642] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.326272469945252] Failed to read output from testmodel.py, exit status != 0: 17.97238657809794 17.983044017 15.89046943 Calling exit ...