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.8284/0.8284, allocations: 150.8 MB / 166.6 MB, free: 11.18 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002945/0.0002945, allocations: 7.984 kB / 204.7 MB, free: 6.168 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1899/0.1902, 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.626/1.816, allocations: 292.2 MB / 0.5159 GB, free: 9.773 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.5014/2.318, allocations: 188.8 MB / 0.7002 GB, free: 2.766 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000339/2.318, allocations: 8.062 kB / 0.7002 GB, free: 2.766 MB / 0.5573 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.0002134/2.318, allocations: 38.33 kB / 0.7003 GB, free: 2.766 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0003471/2.319, allocations: 137.8 kB / 0.7004 GB, free: 2.762 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.02735/2.346, allocations: 8.787 MB / 0.709 GB, free: 2.484 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0005564/2.347, allocations: 470.1 kB / 0.7094 GB, free: 2.484 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002807/2.347, allocations: 232.5 kB / 0.7097 GB, free: 2.449 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002223/2.347, allocations: 184.6 kB / 0.7098 GB, free: 2.449 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002316/2.347, allocations: 216 kB / 0.71 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 4.468e-05/2.347, allocations: 28.78 kB / 0.7101 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03649/2.384, allocations: 19.92 MB / 0.7295 GB, free: 0.8555 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001852/2.384, allocations: 82.48 kB / 0.7296 GB, free: 0.8398 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0002877/2.385, allocations: 213.4 kB / 0.7298 GB, free: 0.8242 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0254/2.41, allocations: 10.01 MB / 0.7396 GB, free: 13.4 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/2.41, allocations: 0 / 0.7396 GB, free: 13.4 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.193e-06/2.41, allocations: 4 kB / 0.7396 GB, free: 13.39 MB / 0.573 GB Notification: Performance of Transformations before backend: time 7.724e-06/2.41, allocations: 0 / 0.7396 GB, free: 13.39 MB / 0.573 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.005004/2.415, allocations: 1.854 MB / 0.7414 GB, free: 12.21 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/2.415, allocations: 10.44 kB / 0.7414 GB, free: 12.21 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/2.415, allocations: 54.19 kB / 0.7415 GB, free: 12.18 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003673/2.416, allocations: 330.3 kB / 0.7418 GB, free: 11.91 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.287e-05/2.416, allocations: 54.05 kB / 0.7418 GB, free: 11.88 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.396e-05/2.416, allocations: 37.72 kB / 0.7419 GB, free: 11.88 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005925/2.416, allocations: 405.3 kB / 0.7422 GB, free: 11.72 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/2.416, allocations: 4 kB / 0.7423 GB, free: 11.72 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.154e-05/2.416, allocations: 19.75 kB / 0.7423 GB, free: 11.72 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/2.416, allocations: 11.84 kB / 0.7423 GB, free: 11.71 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004862/2.417, allocations: 288.7 kB / 0.7426 GB, free: 11.67 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/2.419, allocations: 2.025 MB / 0.7445 GB, free: 9.926 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005592/2.419, allocations: 229.4 kB / 0.7448 GB, free: 9.852 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/2.419, allocations: 81.39 kB / 0.7448 GB, free: 9.836 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2519/2.671, allocations: 122.5 MB / 0.8645 GB, free: 5.777 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003281/2.672, allocations: 135.3 kB / 0.8646 GB, free: 5.633 MB / 0.698 GB Notification: Performance of pre-optimization done (n=21): time 2.645e-06/2.672, allocations: 0 / 0.8646 GB, free: 5.633 MB / 0.698 GB Notification: Performance of matching and sorting (n=21): time 0.00106/2.673, allocations: 412 kB / 0.865 GB, free: 5.207 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/2.673, allocations: 55.41 kB / 0.8651 GB, free: 5.141 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003673/2.673, allocations: 312.5 kB / 0.8654 GB, free: 4.824 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/2.673, allocations: 36.61 kB / 0.8654 GB, free: 4.785 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/2.673, allocations: 246.4 kB / 0.8656 GB, free: 4.543 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 5.199e-05/2.673, allocations: 70.94 kB / 0.8657 GB, free: 4.477 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/2.673, allocations: 73.92 kB / 0.8658 GB, free: 4.398 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001146/2.674, allocations: 344.3 kB / 0.8661 GB, free: 4.055 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/2.674, allocations: 76.61 kB / 0.8662 GB, free: 3.98 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002303/2.674, allocations: 185.1 kB / 0.8663 GB, free: 3.758 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003786/2.674, allocations: 264.4 kB / 0.8666 GB, free: 3.465 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/2.674, allocations: 4 kB / 0.8666 GB, free: 3.461 MB / 0.698 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008011/2.675, allocations: 385.4 kB / 0.867 GB, free: 3.094 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/2.675, allocations: 8 kB / 0.867 GB, free: 3.086 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/2.675, allocations: 0 / 0.867 GB, free: 3.086 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009872/2.676, allocations: 171 kB / 0.8671 GB, free: 2.918 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001886/2.676, allocations: 51.97 kB / 0.8672 GB, free: 2.871 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002126/2.679, allocations: 2.208 MB / 0.8693 GB, free: 0.5195 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002651/2.679, allocations: 39.67 kB / 0.8694 GB, free: 492 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.249e-05/2.679, allocations: 26.84 kB / 0.8694 GB, free: 468 kB / 0.698 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.0001864/2.679, allocations: 157.5 kB / 0.8696 GB, free: 304 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.474e-05/2.679, allocations: 31.69 kB / 0.8696 GB, free: 272 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000723/2.68, allocations: 314.3 kB / 0.8699 GB, free: 15.95 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/2.68, allocations: 7.938 kB / 0.8699 GB, free: 15.94 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-06/2.68, allocations: 0 / 0.8699 GB, free: 15.94 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/2.68, allocations: 3.984 kB / 0.8699 GB, free: 15.94 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003789/2.68, allocations: 382.7 kB / 0.8703 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.165e-06/2.68, allocations: 0 / 0.8703 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002658/2.681, allocations: 58.86 kB / 0.8703 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004745/2.681, allocations: 80.77 kB / 0.8704 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/2.681, allocations: 4 kB / 0.8704 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003853/2.682, allocations: 0.5708 MB / 0.871 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/2.682, allocations: 0 / 0.871 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00325/2.685, allocations: 2.094 MB / 0.873 GB, free: 12.57 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/2.685, allocations: 124.7 kB / 0.8731 GB, free: 12.43 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.867e-05/2.685, allocations: 7.938 kB / 0.8731 GB, free: 12.42 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001599/2.685, allocations: 25.06 kB / 0.8731 GB, free: 12.4 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.641e-05/2.685, allocations: 23.97 kB / 0.8732 GB, free: 12.38 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-05/2.685, allocations: 7.984 kB / 0.8732 GB, free: 12.37 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0002328/2.685, allocations: 231.2 kB / 0.8734 GB, free: 12.14 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.3e-07/2.685, allocations: 0 / 0.8734 GB, free: 12.14 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.004462/2.69, allocations: 1.546 MB / 0.8749 GB, free: 10.59 MB / 0.7136 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.007314/2.697, allocations: 2.289 MB / 0.8771 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0009354/2.698, allocations: 351.4 kB / 0.8775 GB, free: 8.246 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/2.698, allocations: 0 / 0.8775 GB, free: 8.246 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0002763/2.699, allocations: 107.7 kB / 0.8776 GB, free: 8.145 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004992/2.699, allocations: 83.48 kB / 0.8777 GB, free: 8.066 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/2.701, allocations: 1.102 MB / 0.8787 GB, free: 6.941 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/2.701, allocations: 0.8112 MB / 0.8795 GB, free: 6.102 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0002052/2.701, allocations: 42.97 kB / 0.8796 GB, free: 6.055 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.553e-05/2.701, allocations: 43.36 kB / 0.8796 GB, free: 6.012 MB / 0.7136 GB Notification: Performance of SimCode: time 4.11e-07/2.701, allocations: 0 / 0.8796 GB, free: 6.012 MB / 0.7136 GB Notification: Performance of Templates: time 0.06013/2.761, allocations: 47.72 MB / 0.9262 GB, free: 6.336 MB / 0.7605 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)