Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8531/0.8531, allocations: 150.9 MB / 166 MB, free: 14.69 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002839/0.000284, allocations: 11.97 kB / 204 MB, free: 10.13 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1457, allocations: 31.32 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.564/1.709, allocations: 292.9 MB / 0.5159 GB, free: 13.58 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.188/1.897, allocations: 188.8 MB / 0.7003 GB, free: 356 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003876/1.898, allocations: 4 kB / 0.7003 GB, free: 352 kB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/DynamicCheckValve.mo:56:3-57:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/DynamicCheckValve.mo:58:3-59:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0003038/1.898, allocations: 47.69 kB / 0.7003 GB, free: 304 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004898/1.899, allocations: 127 kB / 0.7004 GB, free: 176 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3058/2.204, allocations: 8.762 MB / 0.709 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007768/2.205, allocations: 470 kB / 0.7095 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003734/2.206, allocations: 234 kB / 0.7097 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003076/2.206, allocations: 189.2 kB / 0.7099 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000243/2.206, allocations: 209.2 kB / 0.7101 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.809e-05/2.206, allocations: 29.84 kB / 0.7101 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03244/2.239, allocations: 19.91 MB / 0.7295 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000234/2.239, allocations: 86.86 kB / 0.7296 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003432/2.239, allocations: 214.6 kB / 0.7298 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02214/2.261, allocations: 9.947 MB / 0.7395 GB, free: 0.9297 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/2.261, allocations: 0 / 0.7395 GB, free: 0.9297 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.034e-06/2.261, allocations: 2.406 kB / 0.7395 GB, free: 0.9297 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.665e-06/2.261, allocations: 3.625 kB / 0.7395 GB, free: 0.9297 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.004818/2.266, allocations: 1.85 MB / 0.7413 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/2.266, allocations: 8.094 kB / 0.7414 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/2.266, allocations: 53.78 kB / 0.7414 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003682/2.267, allocations: 336.5 kB / 0.7417 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.105e-05/2.267, allocations: 57.23 kB / 0.7418 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.991e-05/2.267, allocations: 34.88 kB / 0.7418 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005921/2.268, allocations: 407.5 kB / 0.7422 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/2.268, allocations: 5.219 kB / 0.7422 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.545e-05/2.268, allocations: 20.38 kB / 0.7422 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/2.268, allocations: 15.05 kB / 0.7422 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005114/2.268, allocations: 280.4 kB / 0.7425 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/2.27, allocations: 2.022 MB / 0.7445 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005508/2.271, allocations: 216.8 kB / 0.7447 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/2.271, allocations: 87.67 kB / 0.7448 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2272/2.498, allocations: 122.5 MB / 0.8644 GB, free: 124 kB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003369/2.498, allocations: 137.3 kB / 0.8646 GB, free: 4 kB / 0.7012 GB Notification: Performance of pre-optimization done (n=21): time 3.196e-06/2.498, allocations: 0 / 0.8646 GB, free: 4 kB / 0.7012 GB Notification: Performance of matching and sorting (n=21): time 0.00107/2.499, allocations: 415 kB / 0.865 GB, free: 15.64 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/2.5, allocations: 58.41 kB / 0.865 GB, free: 15.57 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003682/2.5, allocations: 315.6 kB / 0.8653 GB, free: 15.32 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/2.5, allocations: 33.45 kB / 0.8653 GB, free: 15.28 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.000185/2.5, allocations: 244.5 kB / 0.8656 GB, free: 15.09 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.294e-05/2.5, allocations: 68.53 kB / 0.8656 GB, free: 15.03 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/2.5, allocations: 78.91 kB / 0.8657 GB, free: 14.97 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001183/2.5, allocations: 340.8 kB / 0.866 GB, free: 14.64 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/2.501, allocations: 76.98 kB / 0.8661 GB, free: 14.59 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002248/2.501, allocations: 183.8 kB / 0.8663 GB, free: 14.4 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003795/2.501, allocations: 264.4 kB / 0.8665 GB, free: 14.17 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/2.501, allocations: 4 kB / 0.8666 GB, free: 14.17 MB / 0.7169 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008297/2.502, allocations: 385 kB / 0.8669 GB, free: 13.88 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/2.502, allocations: 14.14 kB / 0.8669 GB, free: 13.88 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/2.502, allocations: 0 / 0.8669 GB, free: 13.88 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/2.503, allocations: 167.1 kB / 0.8671 GB, free: 13.72 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/2.503, allocations: 50.5 kB / 0.8671 GB, free: 13.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002041/2.505, allocations: 2.205 MB / 0.8693 GB, free: 11.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000294/2.506, allocations: 50.59 kB / 0.8693 GB, free: 11.44 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/2.506, allocations: 16 kB / 0.8694 GB, free: 11.42 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 9 (sourceP1.C.ftype,puitsP1.fluid,checkValve.fluid,checkValve.libre,$whenCondition1,$whenCondition2,sourceP1.fluid1,sourceP1.C.diff_on_2,checkValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001741/2.506, allocations: 157.3 kB / 0.8695 GB, free: 11.29 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.355e-05/2.506, allocations: 27.62 kB / 0.8695 GB, free: 11.26 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007168/2.507, allocations: 319 kB / 0.8698 GB, free: 11 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/2.507, allocations: 6.906 kB / 0.8698 GB, free: 11 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/2.507, allocations: 1.203 kB / 0.8698 GB, free: 11 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/2.507, allocations: 0 / 0.8698 GB, free: 11 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003882/2.507, allocations: 388.3 kB / 0.8702 GB, free: 10.65 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/2.507, allocations: 0 / 0.8702 GB, free: 10.65 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002562/2.507, allocations: 49.84 kB / 0.8703 GB, free: 10.61 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004998/2.508, allocations: 86.62 kB / 0.8703 GB, free: 10.53 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.306e-05/2.508, allocations: 7.922 kB / 0.8704 GB, free: 10.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003901/2.508, allocations: 0.5611 MB / 0.8709 GB, free: 9.953 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/2.508, allocations: 1.141 kB / 0.8709 GB, free: 9.953 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007529/2.509, allocations: 388.5 kB / 0.8713 GB, free: 9.648 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/2.509, allocations: 127.6 kB / 0.8714 GB, free: 9.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.714e-05/2.509, allocations: 3.625 kB / 0.8714 GB, free: 9.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001696/2.51, allocations: 11.98 kB / 0.8714 GB, free: 9.5 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.208e-05/2.51, allocations: 34.3 kB / 0.8714 GB, free: 9.473 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/2.51, allocations: 11.56 kB / 0.8715 GB, free: 9.465 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002312/2.51, allocations: 237.2 kB / 0.8717 GB, free: 9.273 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8.32e-07/2.51, allocations: 0 / 0.8717 GB, free: 9.273 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003883/2.514, allocations: 1.461 MB / 0.8731 GB, free: 7.918 MB / 0.7169 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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.007627/2.521, allocations: 2.282 MB / 0.8753 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0009794/2.522, allocations: 359.3 kB / 0.8757 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/2.522, allocations: 0 / 0.8757 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000308/2.523, allocations: 107 kB / 0.8758 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005098/2.523, allocations: 71.7 kB / 0.8758 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/2.525, allocations: 0.9189 MB / 0.8767 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003506/2.525, allocations: 0.7962 MB / 0.8775 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0002198/2.525, allocations: 52.58 kB / 0.8776 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.376e-05/2.526, allocations: 27.44 kB / 0.8776 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of SimCode: time 3.1e-07/2.526, allocations: 8 kB / 0.8776 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of Templates: time 0.06378/2.589, allocations: 47.19 MB / 0.9237 GB, free: 4.707 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)