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.8132/0.8132, allocations: 150.9 MB / 166 MB, free: 14.68 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002877/0.000288, allocations: 15.97 kB / 204 MB, free: 10.16 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1375, allocations: 31.33 MB / 235.4 MB, free: 5.449 MB / 190.1 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.544/1.682, allocations: 292.6 MB / 0.5156 GB, free: 13.81 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04254/1.725, allocations: 37.61 MB / 0.5523 GB, free: 8.348 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002082/1.725, allocations: 0 / 0.5523 GB, free: 8.348 MB / 446.1 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.0003277/1.725, allocations: 96.47 kB / 0.5524 GB, free: 8.254 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000183/1.725, allocations: 87.3 kB / 0.5525 GB, free: 8.168 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01961/1.745, allocations: 7.176 MB / 0.5595 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005362/1.745, allocations: 350.3 kB / 0.5599 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000194/1.746, allocations: 112.5 kB / 0.56 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002105/1.746, allocations: 131.3 kB / 0.5601 GB, free: 416 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001259/1.746, allocations: 119.4 kB / 0.5602 GB, free: 296 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.243e-05/1.746, allocations: 16 kB / 0.5602 GB, free: 280 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02928/1.775, allocations: 17.74 MB / 0.5776 GB, free: 14.51 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.14e-05/1.775, allocations: 43.78 kB / 0.5776 GB, free: 14.46 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002257/1.776, allocations: 135.3 kB / 0.5777 GB, free: 14.33 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01912/1.795, allocations: 8.437 MB / 0.586 GB, free: 5.875 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/1.795, allocations: 0 / 0.586 GB, free: 5.875 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.022e-06/1.795, allocations: 0 / 0.586 GB, free: 5.875 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/1.795, allocations: 0 / 0.586 GB, free: 5.875 MB / 478.1 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.004018/1.799, allocations: 1.482 MB / 0.5874 GB, free: 4.344 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/1.799, allocations: 11.97 kB / 0.5874 GB, free: 4.332 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.44e-05/1.799, allocations: 40.41 kB / 0.5875 GB, free: 4.293 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000235/1.799, allocations: 240.9 kB / 0.5877 GB, free: 4.02 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.686e-05/1.799, allocations: 42.14 kB / 0.5877 GB, free: 3.969 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.378e-05/1.799, allocations: 23.98 kB / 0.5878 GB, free: 3.945 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004768/1.8, allocations: 314.8 kB / 0.5881 GB, free: 3.613 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/1.8, allocations: 3.938 kB / 0.5881 GB, free: 3.609 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/1.8, allocations: 12 kB / 0.5881 GB, free: 3.598 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/1.8, allocations: 17.56 kB / 0.5881 GB, free: 3.582 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003442/1.8, allocations: 192.4 kB / 0.5883 GB, free: 3.395 MB / 478.1 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.01832/1.819, allocations: 9.895 MB / 0.5979 GB, free: 8.465 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003127/1.819, allocations: 166.8 kB / 0.5981 GB, free: 8.293 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/1.819, allocations: 113.2 kB / 0.5982 GB, free: 8.18 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.159/1.978, allocations: 85.48 MB / 0.6817 GB, free: 9.082 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004054/1.979, allocations: 197.8 kB / 0.6819 GB, free: 8.871 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=43): time 1.794e-06/1.979, allocations: 0 / 0.6819 GB, free: 8.871 MB / 0.5762 GB Notification: Performance of matching and sorting (n=43): time 0.001048/1.98, allocations: 0.499 MB / 0.6823 GB, free: 8.344 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/1.98, allocations: 85.11 kB / 0.6824 GB, free: 8.242 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/1.98, allocations: 206.8 kB / 0.6826 GB, free: 8.027 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/1.98, allocations: 33.73 kB / 0.6827 GB, free: 7.988 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.32e-05/1.98, allocations: 144.6 kB / 0.6828 GB, free: 7.844 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.734e-05/1.98, allocations: 134 kB / 0.6829 GB, free: 7.711 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.928e-05/1.98, allocations: 57.69 kB / 0.683 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001197/1.98, allocations: 338.8 kB / 0.6833 GB, free: 7.309 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/1.981, allocations: 92.39 kB / 0.6834 GB, free: 7.219 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/1.981, allocations: 161.4 kB / 0.6835 GB, free: 7.035 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/1.982, allocations: 0.5224 MB / 0.6841 GB, free: 6.488 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/1.982, allocations: 0 / 0.6841 GB, free: 6.488 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006386/1.983, allocations: 361.9 kB / 0.6844 GB, free: 6.125 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/1.983, allocations: 7.984 kB / 0.6844 GB, free: 6.117 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/1.983, allocations: 4.219 kB / 0.6844 GB, free: 6.113 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006122/1.983, allocations: 124.7 kB / 0.6845 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/1.984, allocations: 25.09 kB / 0.6846 GB, free: 5.965 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004423/1.984, allocations: 0.6108 MB / 0.6851 GB, free: 5.328 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001632/1.984, allocations: 31.62 kB / 0.6852 GB, free: 5.297 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.937e-05/1.984, allocations: 15.98 kB / 0.6852 GB, free: 5.281 MB / 0.5762 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.0001621/1.984, allocations: 143 kB / 0.6853 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.865e-05/1.984, allocations: 27.66 kB / 0.6854 GB, free: 5.105 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000734/1.985, allocations: 0.5124 MB / 0.6859 GB, free: 4.559 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000494/1.986, allocations: 326.3 kB / 0.6862 GB, free: 4.23 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/1.986, allocations: 0 / 0.6862 GB, free: 4.23 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/1.986, allocations: 0 / 0.6862 GB, free: 4.23 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/1.987, allocations: 0.8809 MB / 0.687 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/1.987, allocations: 288 / 0.687 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.974e-05/1.987, allocations: 23.98 kB / 0.6871 GB, free: 3.266 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006091/1.988, allocations: 132.7 kB / 0.6872 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/1.988, allocations: 11.92 kB / 0.6872 GB, free: 3.121 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004331/1.988, allocations: 0.6204 MB / 0.6878 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/1.988, allocations: 0 / 0.6878 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006175/1.989, allocations: 443.9 kB / 0.6882 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.797e-05/1.989, allocations: 120.6 kB / 0.6883 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.524e-05/1.989, allocations: 11.94 kB / 0.6883 GB, free: 1.875 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/1.989, allocations: 15.98 kB / 0.6884 GB, free: 1.859 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.913e-05/1.989, allocations: 15.97 kB / 0.6884 GB, free: 1.844 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.778e-05/1.989, allocations: 11.94 kB / 0.6884 GB, free: 1.832 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001646/1.989, allocations: 188.5 kB / 0.6886 GB, free: 1.648 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.533e-06/1.989, allocations: 0 / 0.6886 GB, free: 1.648 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002865/1.992, allocations: 1.198 MB / 0.6897 GB, free: 460 kB / 0.5762 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.1573/2.149, allocations: 1.781 MB / 0.6915 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008263/2.15, allocations: 318.3 kB / 0.6918 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/2.15, allocations: 0 / 0.6918 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003499/2.151, allocations: 160 kB / 0.6919 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007671/2.151, allocations: 118.6 kB / 0.692 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008424/2.152, allocations: 0.6888 MB / 0.6927 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001892/2.152, allocations: 0.7813 MB / 0.6935 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001083/2.153, allocations: 25.88 kB / 0.6935 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.193e-05/2.153, allocations: 27.17 kB / 0.6935 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of SimCode: time 3.11e-07/2.153, allocations: 0 / 0.6935 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.04489/2.198, allocations: 42.57 MB / 0.7351 GB, free: 205.3 MB / 0.5762 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)