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.7886/0.7886, allocations: 153.8 MB / 172.7 MB, free: 4.863 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.0004912/0.0004912, allocations: 11.97 kB / 249.8 MB, free: 4.383 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1559, allocations: 33.36 MB / 283.2 MB, free: 1.707 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.747/1.903, allocations: 307.8 MB / 0.5771 GB, free: 17.38 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02943/1.933, allocations: 30.88 MB / 0.6072 GB, free: 2.422 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003054/1.933, allocations: 2.281 kB / 0.6073 GB, free: 2.422 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.0004256/1.933, allocations: 118 kB / 0.6074 GB, free: 2.375 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002829/1.934, allocations: 157.3 kB / 0.6075 GB, free: 2.273 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.02375/1.957, allocations: 9.862 MB / 0.6171 GB, free: 12.07 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007351/1.958, allocations: 458.7 kB / 0.6176 GB, free: 11.62 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000237/1.958, allocations: 137.4 kB / 0.6177 GB, free: 11.49 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003223/1.959, allocations: 199.2 kB / 0.6179 GB, free: 11.29 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002279/1.959, allocations: 155.2 kB / 0.6181 GB, free: 11.14 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.12e-05/1.959, allocations: 24 kB / 0.6181 GB, free: 11.12 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03287/1.992, allocations: 16.77 MB / 0.6345 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001608/1.992, allocations: 67.77 kB / 0.6345 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002075/1.992, allocations: 143.3 kB / 0.6347 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0188/2.011, allocations: 8.541 MB / 0.643 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/2.011, allocations: 0 / 0.643 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.483e-06/2.011, allocations: 0 / 0.643 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.895e-06/2.011, allocations: 0 / 0.643 GB, free: 1.559 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.003993/2.015, allocations: 1.56 MB / 0.6445 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/2.015, allocations: 12.03 kB / 0.6445 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.818e-05/2.015, allocations: 66.53 kB / 0.6446 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001807/2.015, allocations: 51.7 kB / 0.6446 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/2.016, allocations: 212.5 kB / 0.6448 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.54e-05/2.016, allocations: 72.78 kB / 0.6449 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.744e-05/2.016, allocations: 24 kB / 0.6449 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005362/2.016, allocations: 351.3 kB / 0.6453 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/2.016, allocations: 0 / 0.6453 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.606e-05/2.016, allocations: 12 kB / 0.6453 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/2.016, allocations: 16.64 kB / 0.6453 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003883/2.017, allocations: 233.7 kB / 0.6455 GB, free: 14.86 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.01854/2.035, allocations: 6.085 MB / 0.6515 GB, free: 8.703 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006481/2.036, allocations: 253.8 kB / 0.6517 GB, free: 8.445 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002038/2.036, allocations: 126.1 kB / 0.6518 GB, free: 8.32 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1642/2.2, allocations: 48.43 MB / 0.6991 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004799/2.201, allocations: 220 kB / 0.6993 GB, free: 7.613 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 2.695e-06/2.201, allocations: 0 / 0.6993 GB, free: 7.613 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.001245/2.202, allocations: 494.5 kB / 0.6998 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.901e-05/2.202, allocations: 81.11 kB / 0.6999 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000331/2.202, allocations: 249.9 kB / 0.7001 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/2.202, allocations: 33.73 kB / 0.7001 GB, free: 6.73 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/2.203, allocations: 165.1 kB / 0.7003 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/2.203, allocations: 170.5 kB / 0.7005 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/2.203, allocations: 62.58 kB / 0.7005 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001795/2.203, allocations: 350.7 kB / 0.7009 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/2.203, allocations: 108.7 kB / 0.701 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002423/2.203, allocations: 163.7 kB / 0.7011 GB, free: 5.699 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004739/2.204, allocations: 295.2 kB / 0.7014 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/2.204, allocations: 0 / 0.7014 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.000867/2.205, allocations: 442.7 kB / 0.7018 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/2.205, allocations: 4.938 kB / 0.7018 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/2.205, allocations: 5.188 kB / 0.7018 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009831/2.206, allocations: 189.6 kB / 0.702 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/2.206, allocations: 27.97 kB / 0.702 GB, free: 4.723 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002549/2.208, allocations: 2.315 MB / 0.7043 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002211/2.209, allocations: 35.77 kB / 0.7043 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.14e-05/2.209, allocations: 20.11 kB / 0.7044 GB, free: 2.215 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.000183/2.209, allocations: 145.8 kB / 0.7045 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.266e-05/2.209, allocations: 35.7 kB / 0.7045 GB, free: 2.027 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008708/2.21, allocations: 0.5706 MB / 0.7051 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005445/2.21, allocations: 354.3 kB / 0.7054 GB, free: 1.062 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/2.21, allocations: 0 / 0.7054 GB, free: 1.062 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/2.21, allocations: 5.5 kB / 0.7054 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001468/2.212, allocations: 0.916 MB / 0.7063 GB, free: 88 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/2.212, allocations: 0.8906 kB / 0.7063 GB, free: 88 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002997/2.212, allocations: 63.84 kB / 0.7064 GB, free: 24 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003762/2.213, allocations: 108.8 kB / 0.7065 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.711e-05/2.213, allocations: 12 kB / 0.7065 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000562/2.213, allocations: 0.6373 MB / 0.7071 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/2.213, allocations: 0.75 kB / 0.7071 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/2.214, allocations: 0.6477 MB / 0.7078 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001406/2.214, allocations: 67.75 kB / 0.7078 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.415e-05/2.214, allocations: 5.031 kB / 0.7078 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/2.215, allocations: 15.98 kB / 0.7078 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.291e-05/2.215, allocations: 35.94 kB / 0.7079 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.683e-05/2.215, allocations: 8.938 kB / 0.7079 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002508/2.215, allocations: 227 kB / 0.7081 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6e-08/2.215, allocations: 0 / 0.7081 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003242/2.218, allocations: 1.235 MB / 0.7093 GB, free: 12.99 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.007054/2.225, allocations: 2.847 MB / 0.7121 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001051/2.226, allocations: 472.8 kB / 0.7125 GB, free: 9.664 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/2.226, allocations: 1.125 kB / 0.7125 GB, free: 9.664 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004223/2.227, allocations: 169.1 kB / 0.7127 GB, free: 9.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000784/2.227, allocations: 138.5 kB / 0.7128 GB, free: 9.383 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006673/2.234, allocations: 3.882 MB / 0.7166 GB, free: 5.395 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002137/2.234, allocations: 204.2 kB / 0.7168 GB, free: 5.176 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001676/2.235, allocations: 33.78 kB / 0.7169 GB, free: 5.145 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/2.235, allocations: 135.4 kB / 0.717 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of SimCode: time 8.42e-07/2.235, allocations: 0 / 0.717 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1019/2.337, allocations: 50.89 MB / 0.7667 GB, free: 2.844 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.62/16.95, allocations: 10.2 kB / 0.7667 GB, free: 2.84 MB / 0.6231 GB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve_fmu --startTime=0 --stopTime=300 --stepSize=0.12 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.221396695822477] Failed to read output from testmodel.py, exit status != 0: 17.445670765824616 17.455821699 15.442514938 Calling exit ...