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 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.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8898/0.8898, allocations: 150.8 MB / 166.6 MB, free: 11.16 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000261/0.0002611, allocations: 15.98 kB / 204.7 MB, free: 6.164 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1699/0.1702, allocations: 31.33 MB / 236 MB, free: 3.891 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.SimpleExamples.TestDynamicCheckValve): time 1.644/1.814, allocations: 292.2 MB / 0.5158 GB, free: 9.805 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0429/1.857, allocations: 38.01 MB / 0.553 GB, free: 3.922 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002627/1.857, allocations: 8 kB / 0.553 GB, free: 3.914 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/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 4.0.0-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.0004071/1.857, allocations: 95.47 kB / 0.5531 GB, free: 3.82 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002763/1.858, allocations: 119.1 kB / 0.5532 GB, free: 3.703 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0192/1.877, allocations: 7.282 MB / 0.5603 GB, free: 12.42 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005639/1.878, allocations: 430.5 kB / 0.5607 GB, free: 12 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002138/1.878, allocations: 149.1 kB / 0.5608 GB, free: 11.86 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002304/1.878, allocations: 175.1 kB / 0.561 GB, free: 11.69 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002082/1.878, allocations: 159.2 kB / 0.5612 GB, free: 11.53 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 3.281e-05/1.878, allocations: 16 kB / 0.5612 GB, free: 11.52 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02742/1.906, allocations: 17.73 MB / 0.5785 GB, free: 9.758 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/1.906, allocations: 59.69 kB / 0.5785 GB, free: 9.699 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002456/1.906, allocations: 171 kB / 0.5787 GB, free: 9.531 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01776/1.924, allocations: 8.507 MB / 0.587 GB, free: 1.004 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/1.924, allocations: 3.984 kB / 0.587 GB, free: 1 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.122e-06/1.924, allocations: 0 / 0.587 GB, free: 1 MB / 474.7 MB Notification: Performance of Transformations before backend: time 5.981e-06/1.924, allocations: 0 / 0.587 GB, free: 1 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.004217/1.928, allocations: 1.544 MB / 0.5885 GB, free: 15.41 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/1.928, allocations: 8.031 kB / 0.5885 GB, free: 15.4 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.957e-05/1.928, allocations: 47.41 kB / 0.5886 GB, free: 15.35 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002969/1.929, allocations: 258.3 kB / 0.5888 GB, free: 15.06 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.583e-05/1.929, allocations: 42.27 kB / 0.5889 GB, free: 15.01 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.449e-05/1.929, allocations: 35.98 kB / 0.5889 GB, free: 14.97 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00049/1.929, allocations: 350.7 kB / 0.5892 GB, free: 14.6 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/1.929, allocations: 3.906 kB / 0.5892 GB, free: 14.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.42e-05/1.929, allocations: 12 kB / 0.5893 GB, free: 14.59 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/1.929, allocations: 15.92 kB / 0.5893 GB, free: 14.57 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003626/1.93, allocations: 229.8 kB / 0.5895 GB, free: 14.35 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.01972/1.949, allocations: 9.98 MB / 0.5992 GB, free: 3.332 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006399/1.95, allocations: 282.8 kB / 0.5995 GB, free: 3.043 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002033/1.95, allocations: 141.2 kB / 0.5996 GB, free: 2.902 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1763/2.127, allocations: 85.47 MB / 0.6831 GB, free: 3.805 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004459/2.127, allocations: 225.2 kB / 0.6833 GB, free: 3.566 MB / 0.573 GB Notification: Performance of pre-optimization done (n=48): time 2.545e-06/2.127, allocations: 0 / 0.6833 GB, free: 3.566 MB / 0.573 GB Notification: Performance of matching and sorting (n=48): time 0.001269/2.128, allocations: 0.5811 MB / 0.6839 GB, free: 2.957 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/2.128, allocations: 85.06 kB / 0.684 GB, free: 2.855 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002709/2.129, allocations: 246.6 kB / 0.6842 GB, free: 2.609 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 3.391e-05/2.129, allocations: 29.7 kB / 0.6842 GB, free: 2.574 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/2.129, allocations: 168.8 kB / 0.6844 GB, free: 2.406 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/2.129, allocations: 149.7 kB / 0.6845 GB, free: 2.258 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.692e-05/2.129, allocations: 69.86 kB / 0.6846 GB, free: 2.184 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001159/2.129, allocations: 346.8 kB / 0.6849 GB, free: 1.836 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/2.129, allocations: 112.7 kB / 0.685 GB, free: 1.727 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/2.13, allocations: 160.1 kB / 0.6852 GB, free: 1.559 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003984/2.13, allocations: 291.2 kB / 0.6855 GB, free: 1.262 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/2.13, allocations: 0 / 0.6855 GB, free: 1.262 MB / 0.573 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008049/2.131, allocations: 434.7 kB / 0.6859 GB, free: 0.8242 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/2.131, allocations: 8 kB / 0.6859 GB, free: 0.8164 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/2.131, allocations: 0 / 0.6859 GB, free: 0.8164 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/2.132, allocations: 197.4 kB / 0.6861 GB, free: 0.6172 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/2.132, allocations: 27.92 kB / 0.6861 GB, free: 0.5898 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1604/2.293, allocations: 2.246 MB / 0.6883 GB, free: 221.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002319/2.293, allocations: 36.58 kB / 0.6883 GB, free: 221.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.968e-05/2.293, allocations: 10.61 kB / 0.6883 GB, free: 221.1 MB / 0.573 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.000152/2.293, allocations: 148.6 kB / 0.6885 GB, free: 221 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.143e-05/2.293, allocations: 33.7 kB / 0.6885 GB, free: 221 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007426/2.294, allocations: 0.5685 MB / 0.6891 GB, free: 220.8 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004946/2.294, allocations: 369.8 kB / 0.6894 GB, free: 220.8 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/2.294, allocations: 0.625 kB / 0.6894 GB, free: 220.8 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/2.294, allocations: 0.9375 kB / 0.6894 GB, free: 220.8 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001253/2.296, allocations: 0.9766 MB / 0.6904 GB, free: 220.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/2.296, allocations: 0 / 0.6904 GB, free: 220.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002923/2.296, allocations: 62.7 kB / 0.6904 GB, free: 220.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004936/2.296, allocations: 117.7 kB / 0.6906 GB, free: 220.5 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.682e-05/2.296, allocations: 9.641 kB / 0.6906 GB, free: 220.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003758/2.297, allocations: 0.6322 MB / 0.6912 GB, free: 219.9 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/2.297, allocations: 2.953 kB / 0.6912 GB, free: 219.9 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003155/2.3, allocations: 2.425 MB / 0.6936 GB, free: 218.8 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/2.3, allocations: 130.9 kB / 0.6937 GB, free: 218.7 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.753e-05/2.3, allocations: 15.06 kB / 0.6937 GB, free: 218.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/2.3, allocations: 19.83 kB / 0.6937 GB, free: 218.7 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.247e-05/2.3, allocations: 28.95 kB / 0.6937 GB, free: 218.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-05/2.301, allocations: 11.11 kB / 0.6937 GB, free: 218.7 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0001994/2.301, allocations: 222.7 kB / 0.694 GB, free: 218.6 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.2e-07/2.301, allocations: 0 / 0.694 GB, free: 218.6 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.00318/2.304, allocations: 1.282 MB / 0.6952 GB, free: 218.6 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.theta,checkValve.omega) * 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.005173/2.309, allocations: 1.795 MB / 0.697 GB, free: 218.5 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0008244/2.31, allocations: 496.5 kB / 0.6974 GB, free: 218.3 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/2.31, allocations: 0.875 kB / 0.6974 GB, free: 218.3 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003915/2.31, allocations: 195.5 kB / 0.6976 GB, free: 218.3 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000775/2.311, allocations: 128.2 kB / 0.6977 GB, free: 218.3 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/2.313, allocations: 1.295 MB / 0.699 GB, free: 217.7 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/2.313, allocations: 0.8184 MB / 0.6998 GB, free: 217 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.000177/2.313, allocations: 38.7 kB / 0.6998 GB, free: 217 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.721e-05/2.313, allocations: 25.62 kB / 0.6999 GB, free: 217 MB / 0.573 GB Notification: Performance of SimCode: time 2.21e-07/2.313, allocations: 0 / 0.6999 GB, free: 217 MB / 0.573 GB Notification: Performance of Templates: time 0.04661/2.36, allocations: 44.45 MB / 0.7433 GB, free: 191.3 MB / 0.573 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.makefile (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 & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)