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 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7975/0.7975, allocations: 150.8 MB / 166.6 MB, free: 11.18 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002496/0.0002497, allocations: 11.98 kB / 204.7 MB, free: 6.176 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1483, allocations: 31.33 MB / 236 MB, free: 3.887 MB / 186.7 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve): time 1.536/1.685, allocations: 292 MB / 0.5156 GB, free: 10 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04313/1.728, allocations: 37.6 MB / 0.5523 GB, free: 4.531 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003317/1.728, allocations: 4 kB / 0.5523 GB, free: 4.527 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-master/WaterSteam/PressureLosses/CheckValve.mo:38:3-39:49: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 4.0.0-master/WaterSteam/PressureLosses/CheckValve.mo:40:3-41:47: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.0005167/1.729, allocations: 75.56 kB / 0.5524 GB, free: 4.453 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003021/1.729, allocations: 91.28 kB / 0.5525 GB, free: 4.363 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02007/1.749, allocations: 7.176 MB / 0.5595 GB, free: 13.19 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004919/1.75, allocations: 350.4 kB / 0.5598 GB, free: 12.85 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002318/1.75, allocations: 119.7 kB / 0.5599 GB, free: 12.73 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002668/1.75, allocations: 139.4 kB / 0.5601 GB, free: 12.59 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001605/1.75, allocations: 119.4 kB / 0.5602 GB, free: 12.48 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 3.132e-05/1.75, allocations: 16 kB / 0.5602 GB, free: 12.46 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02932/1.78, allocations: 17.72 MB / 0.5775 GB, free: 10.71 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 9.569e-05/1.78, allocations: 43.78 kB / 0.5775 GB, free: 10.67 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002096/1.78, allocations: 147.2 kB / 0.5777 GB, free: 10.53 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02051/1.801, allocations: 8.457 MB / 0.5859 GB, free: 2.051 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/1.801, allocations: 0 / 0.5859 GB, free: 2.051 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.473e-06/1.801, allocations: 0 / 0.5859 GB, free: 2.051 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.103e-05/1.801, allocations: 0 / 0.5859 GB, free: 2.051 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.004088/1.805, allocations: 1.47 MB / 0.5874 GB, free: 0.5273 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/1.805, allocations: 12.03 kB / 0.5874 GB, free: 0.5156 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.833e-05/1.805, allocations: 39.55 kB / 0.5874 GB, free: 488 kB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002528/1.805, allocations: 232.9 kB / 0.5877 GB, free: 216 kB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.603e-05/1.805, allocations: 46.14 kB / 0.5877 GB, free: 164 kB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.257e-05/1.805, allocations: 16.52 kB / 0.5877 GB, free: 148 kB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004985/1.806, allocations: 318.7 kB / 0.588 GB, free: 15.81 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/1.806, allocations: 7.938 kB / 0.588 GB, free: 15.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.183e-05/1.806, allocations: 15.94 kB / 0.588 GB, free: 15.79 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/1.806, allocations: 16.88 kB / 0.5881 GB, free: 15.77 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003446/1.806, allocations: 192.4 kB / 0.5882 GB, free: 15.58 MB / 490.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.01977/1.826, allocations: 9.905 MB / 0.5979 GB, free: 4.637 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003255/1.826, allocations: 154.8 kB / 0.5981 GB, free: 4.477 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001829/1.827, allocations: 121.1 kB / 0.5982 GB, free: 4.355 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1737/2, allocations: 85.48 MB / 0.6816 GB, free: 5.254 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003729/2.001, allocations: 183.1 kB / 0.6818 GB, free: 5.059 MB / 0.573 GB Notification: Performance of pre-optimization done (n=43): time 3.056e-06/2.001, allocations: 0 / 0.6818 GB, free: 5.059 MB / 0.573 GB Notification: Performance of matching and sorting (n=43): time 0.001063/2.002, allocations: 0.5107 MB / 0.6823 GB, free: 4.52 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/2.002, allocations: 81.11 kB / 0.6824 GB, free: 4.422 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/2.002, allocations: 206.8 kB / 0.6826 GB, free: 4.207 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/2.002, allocations: 33.7 kB / 0.6826 GB, free: 4.168 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 9.967e-05/2.002, allocations: 144.6 kB / 0.6828 GB, free: 4.023 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 8.243e-05/2.002, allocations: 134 kB / 0.6829 GB, free: 3.891 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.832e-05/2.002, allocations: 57.69 kB / 0.6829 GB, free: 3.828 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001103/2.003, allocations: 338.8 kB / 0.6833 GB, free: 3.488 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/2.003, allocations: 96.39 kB / 0.6834 GB, free: 3.395 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/2.003, allocations: 161.4 kB / 0.6835 GB, free: 3.211 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001298/2.004, allocations: 0.5224 MB / 0.684 GB, free: 2.664 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/2.004, allocations: 4 kB / 0.684 GB, free: 2.66 MB / 0.573 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006152/2.005, allocations: 365.9 kB / 0.6844 GB, free: 2.293 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/2.005, allocations: 8 kB / 0.6844 GB, free: 2.285 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/2.005, allocations: 0 / 0.6844 GB, free: 2.285 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005748/2.005, allocations: 121.2 kB / 0.6845 GB, free: 2.164 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.867e-05/2.006, allocations: 23.92 kB / 0.6845 GB, free: 2.141 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004633/2.006, allocations: 0.6146 MB / 0.6851 GB, free: 1.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001549/2.006, allocations: 47.45 kB / 0.6852 GB, free: 1.453 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/2.006, allocations: 4 kB / 0.6852 GB, free: 1.449 MB / 0.573 GB 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.0001657/2.006, allocations: 143 kB / 0.6853 GB, free: 1.301 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.618e-05/2.006, allocations: 31.64 kB / 0.6853 GB, free: 1.273 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007021/2.007, allocations: 0.509 MB / 0.6858 GB, free: 0.7266 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000458/2.008, allocations: 322.3 kB / 0.6861 GB, free: 412 kB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/2.008, allocations: 0 / 0.6861 GB, free: 412 kB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/2.008, allocations: 3.984 kB / 0.6861 GB, free: 408 kB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1688/2.176, allocations: 0.8628 MB / 0.687 GB, free: 222.7 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/2.177, allocations: 0 / 0.687 GB, free: 222.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/2.177, allocations: 24.38 kB / 0.687 GB, free: 222.7 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000599/2.177, allocations: 128.4 kB / 0.6871 GB, free: 222.7 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/2.177, allocations: 6.531 kB / 0.6871 GB, free: 222.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003637/2.178, allocations: 0.6271 MB / 0.6878 GB, free: 222.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/2.178, allocations: 0 / 0.6878 GB, free: 222.2 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/2.179, allocations: 1.203 MB / 0.6889 GB, free: 221.5 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/2.179, allocations: 111.2 kB / 0.689 GB, free: 221.4 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.889e-05/2.179, allocations: 13.58 kB / 0.6891 GB, free: 221.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/2.179, allocations: 17.36 kB / 0.6891 GB, free: 221.4 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.612e-05/2.179, allocations: 21.98 kB / 0.6891 GB, free: 221.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.763e-05/2.179, allocations: 8.875 kB / 0.6891 GB, free: 221.4 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0001777/2.18, allocations: 186.6 kB / 0.6893 GB, free: 221.3 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.523e-06/2.18, allocations: 0 / 0.6893 GB, free: 221.3 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.004027/2.184, allocations: 1.241 MB / 0.6905 GB, free: 221.3 MB / 0.573 GB 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.006502/2.19, allocations: 1.781 MB / 0.6922 GB, free: 221.2 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0009635/2.191, allocations: 326.7 kB / 0.6925 GB, free: 221.1 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/2.191, allocations: 0.5312 kB / 0.6925 GB, free: 221.1 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003837/2.192, allocations: 156.2 kB / 0.6927 GB, free: 221.1 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008292/2.192, allocations: 119.3 kB / 0.6928 GB, free: 221.1 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/2.194, allocations: 0.9493 MB / 0.6937 GB, free: 220.6 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/2.194, allocations: 0.788 MB / 0.6945 GB, free: 219.9 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0001331/2.194, allocations: 29.31 kB / 0.6945 GB, free: 219.9 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.435e-05/2.194, allocations: 24.28 kB / 0.6945 GB, free: 219.9 MB / 0.573 GB Notification: Performance of SimCode: time 3.41e-07/2.194, allocations: 0 / 0.6945 GB, free: 219.9 MB / 0.573 GB Notification: Performance of Templates: time 0.04876/2.243, allocations: 42.76 MB / 0.7363 GB, free: 197.8 MB / 0.573 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.makefile (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=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1)