Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.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.5089/0.5089, allocations: 111.6 MB / 131.2 MB, free: 4.574 MB / 122.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 176.1 MB, free: 9.277 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.543e-05/1.693e-05, allocations: 2.312 kB / 176.1 MB, free: 9.273 MB / 170.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.Book.SimpleExamples.PressureLoss.TestCheckValve): time 1.024/1.024, allocations: 257 MB / 433.1 MB, free: 364 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02796/1.052, allocations: 33.12 MB / 466.3 MB, free: 15.11 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/1.052, allocations: 4 kB / 466.3 MB, free: 15.11 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourceP.mo:19:3-20:78: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:19:3-20:80: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/CheckValve.mo:23:3-24:81: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/CheckValve.mo:25:3-26:79: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.0003091/1.052, allocations: 107.3 kB / 466.4 MB, free: 15 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002893/1.052, allocations: 123.1 kB / 466.5 MB, free: 14.88 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:470:9-470: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:525:9-525: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:708:9-708: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:51:3-51: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:51:3-51: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:118:3-118:151: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:118:3-118:151: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.01697/1.069, allocations: 9.807 MB / 476.3 MB, free: 5.031 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003843/1.07, allocations: 390 kB / 476.7 MB, free: 4.648 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/1.07, allocations: 116.8 kB / 476.8 MB, free: 4.531 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002729/1.07, allocations: 243.3 kB / 477 MB, free: 4.293 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.888e-05/1.07, allocations: 87.67 kB / 477.1 MB, free: 4.207 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.545e-05/1.07, allocations: 20 kB / 477.1 MB, free: 4.188 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1878/1.258, allocations: 16.77 MB / 493.9 MB, free: 8.809 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 5.913e-05/1.258, allocations: 51.5 kB / 494 MB, free: 8.809 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/1.258, allocations: 96.11 kB / 494 MB, free: 8.809 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01039/1.269, allocations: 10.75 MB / 0.493 GB, free: 5.348 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/1.269, allocations: 0 / 0.493 GB, free: 5.348 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.333e-06/1.269, allocations: 0.75 kB / 0.493 GB, free: 5.348 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.641e-06/1.269, allocations: 0 / 0.493 GB, free: 5.348 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.00203/1.271, allocations: 1.544 MB / 0.4945 GB, free: 4.242 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/1.271, allocations: 19.34 kB / 0.4945 GB, free: 4.234 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.606e-05/1.271, allocations: 48.47 kB / 0.4945 GB, free: 4.211 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001487/1.271, allocations: 185.2 kB / 0.4947 GB, free: 4.035 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.344e-05/1.271, allocations: 48.53 kB / 0.4948 GB, free: 3.992 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.185e-05/1.271, allocations: 20.03 kB / 0.4948 GB, free: 3.988 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002734/1.271, allocations: 273.4 kB / 0.495 GB, free: 3.785 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/1.271, allocations: 0.6562 kB / 0.495 GB, free: 3.785 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/1.272, allocations: 13.09 kB / 0.4951 GB, free: 3.777 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/1.272, allocations: 15.33 kB / 0.4951 GB, free: 3.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001248/1.272, allocations: 96.47 kB / 0.4952 GB, free: 3.746 MB / 426.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.008454/1.28, allocations: 6.276 MB / 0.5013 GB, free: 0.8242 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001189/1.28, allocations: 80.48 kB / 0.5014 GB, free: 0.7734 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.376e-05/1.28, allocations: 50.38 kB / 0.5014 GB, free: 0.7539 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09811/1.378, allocations: 48.62 MB / 0.5489 GB, free: 1.027 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002635/1.379, allocations: 167.8 kB / 0.5491 GB, free: 0.8477 MB / 474.7 MB Notification: Performance of pre-optimization done (n=43): time 1.744e-06/1.379, allocations: 0 / 0.5491 GB, free: 0.8477 MB / 474.7 MB Notification: Performance of matching and sorting (n=43): time 0.0005843/1.379, allocations: 292.6 kB / 0.5493 GB, free: 0.5547 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/1.379, allocations: 88.39 kB / 0.5494 GB, free: 464 kB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/1.379, allocations: 226.6 kB / 0.5496 GB, free: 220 kB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/1.379, allocations: 37.64 kB / 0.5497 GB, free: 176 kB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.161e-05/1.38, allocations: 199.4 kB / 0.5499 GB, free: 15.97 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.78e-05/1.38, allocations: 142.7 kB / 0.55 GB, free: 15.84 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.803e-05/1.38, allocations: 71.3 kB / 0.5501 GB, free: 15.76 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001121/1.38, allocations: 0.5157 MB / 0.5506 GB, free: 15.23 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.129e-05/1.38, allocations: 36.48 kB / 0.5506 GB, free: 15.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.949e-05/1.38, allocations: 136.5 kB / 0.5507 GB, free: 15.03 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002314/1.38, allocations: 253.1 kB / 0.551 GB, free: 14.76 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/1.38, allocations: 4 kB / 0.551 GB, free: 14.76 MB / 490.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003142/1.38, allocations: 272.5 kB / 0.5512 GB, free: 14.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/1.38, allocations: 8 kB / 0.5512 GB, free: 14.49 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/1.38, allocations: 0 / 0.5512 GB, free: 14.49 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003522/1.381, allocations: 100.5 kB / 0.5513 GB, free: 14.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.848e-05/1.381, allocations: 23.36 kB / 0.5514 GB, free: 14.37 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003459/1.381, allocations: 0.8526 MB / 0.5522 GB, free: 13.49 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.503e-05/1.381, allocations: 27.84 kB / 0.5522 GB, free: 13.46 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/1.381, allocations: 8 kB / 0.5522 GB, free: 13.45 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,$PRE.pulse.T0,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,checkValve3.C2.b,checkValve3.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 (23): * Single equations (assignments): 20 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003832/1.382, allocations: 181.3 kB / 0.5524 GB, free: 13.27 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.916e-05/1.382, allocations: 31.89 kB / 0.5524 GB, free: 13.24 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003896/1.382, allocations: 420.4 kB / 0.5528 GB, free: 12.77 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002078/1.382, allocations: 224.2 kB / 0.553 GB, free: 12.55 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/1.382, allocations: 0 / 0.553 GB, free: 12.55 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/1.382, allocations: 4 kB / 0.5531 GB, free: 12.54 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000629/1.383, allocations: 0.7083 MB / 0.5537 GB, free: 11.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/1.383, allocations: 2.062 kB / 0.5537 GB, free: 11.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.457e-05/1.383, allocations: 27.83 kB / 0.5538 GB, free: 11.78 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002422/1.383, allocations: 104.1 kB / 0.5539 GB, free: 11.68 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/1.383, allocations: 4 kB / 0.5539 GB, free: 11.67 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002854/1.384, allocations: 0.8522 MB / 0.5547 GB, free: 10.79 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/1.384, allocations: 0 / 0.5547 GB, free: 10.79 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003047/1.384, allocations: 399.4 kB / 0.5551 GB, free: 10.38 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.084e-05/1.384, allocations: 51.69 kB / 0.5551 GB, free: 10.33 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/1.384, allocations: 8.5 kB / 0.5551 GB, free: 10.32 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.542e-05/1.384, allocations: 12 kB / 0.5552 GB, free: 10.31 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.027e-05/1.384, allocations: 19.95 kB / 0.5552 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/1.384, allocations: 8 kB / 0.5552 GB, free: 10.28 MB / 490.7 MB Notification: Performance of sorting global known variables: time 9.483e-05/1.384, allocations: 194.7 kB / 0.5554 GB, free: 10.09 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/1.384, allocations: 0 / 0.5554 GB, free: 10.09 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001987/1.386, allocations: 1.223 MB / 0.5566 GB, free: 8.867 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,pulse.T0,checkValve3.ouvert,checkValve3.touvert,checkValve3.tferme) * Number of discrete states: 2 (checkValve3.touvert,checkValve3.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003067/1.389, allocations: 1.909 MB / 0.5584 GB, free: 7.191 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0003562/1.39, allocations: 225.4 kB / 0.5586 GB, free: 6.969 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-06/1.39, allocations: 4.062 kB / 0.5586 GB, free: 6.965 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001438/1.39, allocations: 114.3 kB / 0.5588 GB, free: 6.855 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004004/1.39, allocations: 124.3 kB / 0.5589 GB, free: 6.742 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008908/1.391, allocations: 0.5453 MB / 0.5594 GB, free: 6.176 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.445e-05/1.391, allocations: 92.81 kB / 0.5595 GB, free: 6.062 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 5.853e-05/1.391, allocations: 18.44 kB / 0.5595 GB, free: 6.047 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.615e-05/1.391, allocations: 28.5 kB / 0.5595 GB, free: 6.02 MB / 490.7 MB Notification: Performance of SimCode: time 5.31e-07/1.391, allocations: 4 kB / 0.5595 GB, free: 6.016 MB / 490.7 MB Notification: Performance of Templates: time 0.03801/1.429, allocations: 43.37 MB / 0.6019 GB, free: 10.97 MB / 0.5261 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.319687877781689]