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.5683/0.5683, allocations: 120.4 MB / 139.5 MB, free: 13 MB / 138.7 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 3.377e-06/3.377e-06, allocations: 0 / 216.7 MB, free: 8.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.413e-05/2.75e-05, allocations: 2.281 kB / 216.7 MB, free: 8.621 MB / 202.7 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.027/1.027, allocations: 254.5 MB / 471.2 MB, free: 8.625 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.2683/1.295, allocations: 30.87 MB / 0.4903 GB, free: 0.8711 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002772/1.296, allocations: 3.469 kB / 0.4903 GB, free: 0.8711 MB / 442.7 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.0005276/1.296, allocations: 127.1 kB / 0.4905 GB, free: 0.8711 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003509/1.296, allocations: 153.5 kB / 0.4906 GB, free: 0.8477 MB / 442.7 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.02387/1.32, allocations: 9.959 MB / 0.5003 GB, free: 14.85 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007019/1.321, allocations: 470.5 kB / 0.5008 GB, free: 14.57 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002512/1.321, allocations: 136.6 kB / 0.5009 GB, free: 14.5 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004063/1.322, allocations: 279.5 kB / 0.5012 GB, free: 14.33 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001945/1.322, allocations: 126.1 kB / 0.5013 GB, free: 14.27 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 3.527e-05/1.322, allocations: 24.34 kB / 0.5013 GB, free: 14.27 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02824/1.35, allocations: 16.8 MB / 0.5177 GB, free: 2.293 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/1.35, allocations: 71.03 kB / 0.5178 GB, free: 2.23 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002362/1.351, allocations: 114.9 kB / 0.5179 GB, free: 2.125 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02168/1.372, allocations: 10.91 MB / 0.5286 GB, free: 7.715 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/1.372, allocations: 0 / 0.5286 GB, free: 7.715 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.274e-06/1.372, allocations: 0 / 0.5286 GB, free: 7.715 MB / 474.7 MB Notification: Performance of Transformations before backend: time 9.017e-06/1.372, allocations: 0 / 0.5286 GB, free: 7.715 MB / 474.7 MB 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.004309/1.377, allocations: 1.551 MB / 0.5301 GB, free: 6.129 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/1.377, allocations: 12.03 kB / 0.5301 GB, free: 6.117 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.839e-05/1.377, allocations: 67.03 kB / 0.5301 GB, free: 6.043 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001806/1.377, allocations: 53.48 kB / 0.5302 GB, free: 5.992 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002467/1.377, allocations: 205.5 kB / 0.5304 GB, free: 5.77 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.197e-05/1.377, allocations: 73.12 kB / 0.5305 GB, free: 5.688 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.852e-05/1.377, allocations: 28.92 kB / 0.5305 GB, free: 5.66 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004234/1.378, allocations: 355.3 kB / 0.5308 GB, free: 5.285 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/1.378, allocations: 3.984 kB / 0.5308 GB, free: 5.281 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.164e-05/1.378, allocations: 12.81 kB / 0.5308 GB, free: 5.27 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/1.378, allocations: 15.94 kB / 0.5309 GB, free: 5.254 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002731/1.378, allocations: 231 kB / 0.5311 GB, free: 5.031 MB / 474.7 MB 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.0106/1.389, allocations: 6.09 MB / 0.537 GB, free: 15.04 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005068/1.389, allocations: 247.9 kB / 0.5373 GB, free: 14.79 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/1.389, allocations: 124.9 kB / 0.5374 GB, free: 14.66 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0872/1.476, allocations: 48.41 MB / 0.5847 GB, free: 14.22 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003713/1.477, allocations: 226.8 kB / 0.5849 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 2.786e-06/1.477, allocations: 1.594 kB / 0.5849 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of matching and sorting (n=48): time 0.0008073/1.478, allocations: 0.4905 MB / 0.5854 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/1.478, allocations: 77.86 kB / 0.5854 GB, free: 13.39 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/1.478, allocations: 249.9 kB / 0.5857 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.075e-05/1.478, allocations: 33.73 kB / 0.5857 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.393e-05/1.478, allocations: 172 kB / 0.5859 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 7.784e-05/1.478, allocations: 157.5 kB / 0.586 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.721e-05/1.478, allocations: 61.92 kB / 0.5861 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.78e-05/1.478, allocations: 346.8 kB / 0.5864 GB, free: 12.36 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/1.478, allocations: 112.7 kB / 0.5865 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/1.479, allocations: 164.3 kB / 0.5867 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003088/1.479, allocations: 292.2 kB / 0.587 GB, free: 11.78 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/1.479, allocations: 0 / 0.587 GB, free: 11.78 MB / 0.5261 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0005498/1.479, allocations: 435.8 kB / 0.5874 GB, free: 11.34 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/1.479, allocations: 11.94 kB / 0.5874 GB, free: 11.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/1.479, allocations: 0 / 0.5874 GB, free: 11.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006116/1.48, allocations: 197.9 kB / 0.5876 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.666e-05/1.48, allocations: 29.14 kB / 0.5876 GB, free: 11.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001906/1.482, allocations: 2.313 MB / 0.5899 GB, free: 8.652 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001708/1.482, allocations: 39.75 kB / 0.5899 GB, free: 8.613 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/1.482, allocations: 12.69 kB / 0.5899 GB, free: 8.602 MB / 0.5261 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.0001556/1.482, allocations: 152 kB / 0.59 GB, free: 8.445 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.636e-05/1.482, allocations: 37.31 kB / 0.5901 GB, free: 8.41 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005755/1.483, allocations: 0.5732 MB / 0.5906 GB, free: 7.801 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006136/1.484, allocations: 359.4 kB / 0.591 GB, free: 7.445 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/1.484, allocations: 0 / 0.591 GB, free: 7.445 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/1.484, allocations: 15.92 kB / 0.591 GB, free: 7.43 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/1.485, allocations: 0.9011 MB / 0.5919 GB, free: 6.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/1.485, allocations: 0 / 0.5919 GB, free: 6.48 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001859/1.485, allocations: 61.31 kB / 0.5919 GB, free: 6.422 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002673/1.485, allocations: 104.8 kB / 0.592 GB, free: 6.316 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.648e-05/1.485, allocations: 8 kB / 0.592 GB, free: 6.309 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003706/1.485, allocations: 0.6421 MB / 0.5927 GB, free: 5.641 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/1.485, allocations: 0 / 0.5927 GB, free: 5.641 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000671/1.486, allocations: 0.6529 MB / 0.5933 GB, free: 4.969 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 9.928e-05/1.486, allocations: 64.66 kB / 0.5934 GB, free: 4.906 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.88e-05/1.486, allocations: 15.88 kB / 0.5934 GB, free: 4.891 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/1.486, allocations: 16.98 kB / 0.5934 GB, free: 4.875 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.517e-05/1.486, allocations: 31.94 kB / 0.5934 GB, free: 4.844 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-05/1.486, allocations: 8 kB / 0.5934 GB, free: 4.836 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001777/1.487, allocations: 223.1 kB / 0.5937 GB, free: 4.617 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8e-08/1.487, allocations: 0 / 0.5937 GB, free: 4.617 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002911/1.49, allocations: 1.235 MB / 0.5949 GB, free: 3.379 MB / 0.5261 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.006553/1.496, allocations: 3.008 MB / 0.5978 GB, free: 0.5703 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001228/1.497, allocations: 472.6 kB / 0.5983 GB, free: 92 kB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/1.497, allocations: 0 / 0.5983 GB, free: 92 kB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0003118/1.498, allocations: 173.5 kB / 0.5984 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005566/1.498, allocations: 125.9 kB / 0.5985 GB, free: 15.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005769/1.504, allocations: 3.833 MB / 0.6023 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001563/1.504, allocations: 200.3 kB / 0.6025 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001417/1.504, allocations: 32.16 kB / 0.6025 GB, free: 11.63 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/1.504, allocations: 136.5 kB / 0.6026 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of SimCode: time 1.543e-06/1.504, allocations: 0 / 0.6026 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08141/1.586, allocations: 51.21 MB / 0.6526 GB, free: 8.664 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/12.66, allocations: 11.92 kB / 0.6527 GB, free: 8.652 MB / 0.5886 GB " [Timeout remaining time 647] (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: 14.550920200534165] Failed to read output from testmodel.py, exit status != 0: 13.023024980910122 13.149607271 11.775673264 Calling exit ...