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.7916/0.7916, allocations: 150.9 MB / 166 MB, free: 14.59 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002781/0.0002781, allocations: 15.97 kB / 204 MB, free: 10.08 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.147, allocations: 31.32 MB / 235.3 MB, free: 5.68 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.SimpleExamples.TestDynamicCheckValve): time 1.544/1.691, allocations: 292.9 MB / 0.5159 GB, free: 13.77 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04252/1.733, allocations: 38.01 MB / 0.553 GB, free: 7.902 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003997/1.734, allocations: 8 kB / 0.553 GB, free: 7.895 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/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.0005486/1.734, allocations: 96.47 kB / 0.5531 GB, free: 7.801 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003435/1.735, allocations: 115.2 kB / 0.5532 GB, free: 7.688 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02017/1.755, allocations: 7.29 MB / 0.5603 GB, free: 408 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000617/1.756, allocations: 422.8 kB / 0.5607 GB, free: 15.98 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000218/1.756, allocations: 147.3 kB / 0.5609 GB, free: 15.84 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002368/1.756, allocations: 163.2 kB / 0.561 GB, free: 15.68 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001925/1.756, allocations: 151.3 kB / 0.5612 GB, free: 15.53 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.454e-05/1.756, allocations: 19.98 kB / 0.5612 GB, free: 15.51 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.027/1.783, allocations: 17.74 MB / 0.5785 GB, free: 13.75 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000137/1.784, allocations: 63.69 kB / 0.5786 GB, free: 13.68 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002097/1.784, allocations: 159.1 kB / 0.5787 GB, free: 13.53 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01792/1.802, allocations: 8.511 MB / 0.587 GB, free: 4.996 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/1.802, allocations: 0 / 0.587 GB, free: 4.996 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.523e-06/1.802, allocations: 0 / 0.587 GB, free: 4.996 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/1.802, allocations: 0 / 0.587 GB, free: 4.996 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.004112/1.806, allocations: 1.54 MB / 0.5885 GB, free: 3.406 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/1.806, allocations: 15.97 kB / 0.5886 GB, free: 3.391 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.976e-05/1.806, allocations: 39.47 kB / 0.5886 GB, free: 3.352 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002981/1.806, allocations: 270.3 kB / 0.5889 GB, free: 3.047 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.164e-05/1.806, allocations: 46.27 kB / 0.5889 GB, free: 2.996 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.73e-05/1.806, allocations: 28 kB / 0.5889 GB, free: 2.969 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005372/1.807, allocations: 346.7 kB / 0.5893 GB, free: 2.598 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/1.807, allocations: 8.453 kB / 0.5893 GB, free: 2.59 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.925e-05/1.807, allocations: 15.98 kB / 0.5893 GB, free: 2.574 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.716e-05/1.807, allocations: 11.94 kB / 0.5893 GB, free: 2.562 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003878/1.807, allocations: 233.7 kB / 0.5895 GB, free: 2.336 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.01917/1.827, allocations: 9.985 MB / 0.5993 GB, free: 7.316 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006323/1.827, allocations: 271 kB / 0.5995 GB, free: 7.039 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000209/1.828, allocations: 145.2 kB / 0.5997 GB, free: 6.895 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1634/1.991, allocations: 85.48 MB / 0.6831 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004116/1.991, allocations: 216 kB / 0.6833 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 1.834e-06/1.991, allocations: 0 / 0.6833 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001215/1.993, allocations: 0.5785 MB / 0.6839 GB, free: 6.953 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/1.993, allocations: 81.06 kB / 0.684 GB, free: 6.855 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002515/1.993, allocations: 254.6 kB / 0.6842 GB, free: 6.605 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/1.993, allocations: 25.7 kB / 0.6843 GB, free: 6.574 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/1.993, allocations: 168.8 kB / 0.6844 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/1.993, allocations: 161.8 kB / 0.6846 GB, free: 6.246 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/1.993, allocations: 69.81 kB / 0.6846 GB, free: 6.172 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001579/1.993, allocations: 338.8 kB / 0.685 GB, free: 5.832 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002033/1.994, allocations: 108.8 kB / 0.6851 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/1.994, allocations: 161.9 kB / 0.6852 GB, free: 5.555 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000405/1.994, allocations: 287.2 kB / 0.6855 GB, free: 5.262 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/1.994, allocations: 0 / 0.6855 GB, free: 5.262 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008229/1.995, allocations: 439 kB / 0.6859 GB, free: 4.816 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/1.995, allocations: 4 kB / 0.6859 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/1.995, allocations: 0 / 0.6859 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/1.996, allocations: 213.3 kB / 0.6861 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/1.996, allocations: 19.98 kB / 0.6861 GB, free: 4.578 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002254/1.999, allocations: 2.255 MB / 0.6883 GB, free: 2.164 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002028/1.999, allocations: 43.61 kB / 0.6884 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/1.999, allocations: 7.984 kB / 0.6884 GB, free: 2.113 MB / 0.5762 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.000156/1.999, allocations: 157.7 kB / 0.6885 GB, free: 1.949 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.615e-05/1.999, allocations: 29.22 kB / 0.6886 GB, free: 1.922 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007955/2, allocations: 0.5678 MB / 0.6891 GB, free: 1.316 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005228/2, allocations: 370.3 kB / 0.6895 GB, free: 0.9414 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/2, allocations: 0 / 0.6895 GB, free: 0.9414 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/2, allocations: 0 / 0.6895 GB, free: 0.9414 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1549/2.155, allocations: 0.983 MB / 0.6904 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/2.155, allocations: 2.188 kB / 0.6904 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000319/2.156, allocations: 54.19 kB / 0.6905 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004983/2.156, allocations: 118.5 kB / 0.6906 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/2.156, allocations: 9.547 kB / 0.6906 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004007/2.157, allocations: 0.6359 MB / 0.6912 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/2.157, allocations: 0.5 kB / 0.6912 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009046/2.158, allocations: 0.6521 MB / 0.6919 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/2.158, allocations: 132.7 kB / 0.692 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.136e-05/2.158, allocations: 7.547 kB / 0.692 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/2.158, allocations: 28.58 kB / 0.692 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.825e-05/2.158, allocations: 31.44 kB / 0.6921 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.601e-05/2.158, allocations: 9.625 kB / 0.6921 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001916/2.158, allocations: 221.1 kB / 0.6923 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.3e-07/2.158, allocations: 1.062 kB / 0.6923 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003/2.161, allocations: 1.21 MB / 0.6935 GB, free: 225.5 MB / 0.5762 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.004777/2.166, allocations: 1.787 MB / 0.6952 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009085/2.167, allocations: 499 kB / 0.6957 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/2.167, allocations: 2.812 kB / 0.6957 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003825/2.167, allocations: 198.1 kB / 0.6959 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000756/2.168, allocations: 121.1 kB / 0.696 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/2.17, allocations: 1.002 MB / 0.697 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00018/2.17, allocations: 0.8085 MB / 0.6978 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001422/2.17, allocations: 33.91 kB / 0.6978 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.932e-05/2.17, allocations: 30.17 kB / 0.6978 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of SimCode: time 2e-07/2.17, allocations: 0.7188 kB / 0.6978 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.04567/2.216, allocations: 43.85 MB / 0.7406 GB, free: 200.4 MB / 0.5762 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)