Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8711/0.8711, allocations: 150.8 MB / 166.6 MB, free: 11.19 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002581/0.0002581, allocations: 11.98 kB / 204.7 MB, free: 6.172 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.15/0.1503, 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.SimpleExamples.TestDynamicCheckValve): time 1.594/1.744, allocations: 292.3 MB / 0.5159 GB, free: 9.73 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.5052/2.25, allocations: 188.8 MB / 0.7003 GB, free: 2.75 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002656/2.25, allocations: 10.78 kB / 0.7003 GB, free: 2.75 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.0002188/2.25, allocations: 44.59 kB / 0.7004 GB, free: 2.746 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0003729/2.251, allocations: 132.6 kB / 0.7005 GB, free: 2.746 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.02545/2.276, allocations: 8.773 MB / 0.709 GB, free: 2.477 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0005115/2.276, allocations: 475 kB / 0.7095 GB, free: 2.473 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002468/2.277, allocations: 234.8 kB / 0.7097 GB, free: 2.438 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002072/2.277, allocations: 184.4 kB / 0.7099 GB, free: 2.438 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002287/2.277, allocations: 219.1 kB / 0.7101 GB, free: 2.438 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 4.372e-05/2.277, allocations: 27.16 kB / 0.7101 GB, free: 2.438 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03397/2.311, allocations: 19.91 MB / 0.7296 GB, free: 0.8477 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001936/2.311, allocations: 91.45 kB / 0.7297 GB, free: 0.8281 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0002994/2.312, allocations: 212.6 kB / 0.7299 GB, free: 0.8125 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.02589/2.338, allocations: 10.02 MB / 0.7396 GB, free: 13.4 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 9.288e-06/2.338, allocations: 2.312 kB / 0.7397 GB, free: 13.4 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.963e-06/2.338, allocations: 1.094 kB / 0.7397 GB, free: 13.4 MB / 0.573 GB Notification: Performance of Transformations before backend: time 7.023e-06/2.338, allocations: 0 / 0.7397 GB, free: 13.4 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.005089/2.343, allocations: 1.853 MB / 0.7415 GB, free: 12.21 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/2.343, allocations: 10.75 kB / 0.7415 GB, free: 12.21 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/2.343, allocations: 53.97 kB / 0.7415 GB, free: 12.18 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003905/2.343, allocations: 330.4 kB / 0.7418 GB, free: 11.91 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.712e-05/2.343, allocations: 56.14 kB / 0.7419 GB, free: 11.88 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.58e-05/2.344, allocations: 35 kB / 0.7419 GB, free: 11.88 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005714/2.344, allocations: 409.3 kB / 0.7423 GB, free: 11.72 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/2.344, allocations: 0 / 0.7423 GB, free: 11.72 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/2.344, allocations: 18.81 kB / 0.7423 GB, free: 11.72 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.892e-05/2.344, allocations: 12.53 kB / 0.7423 GB, free: 11.72 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004838/2.345, allocations: 290.3 kB / 0.7426 GB, free: 11.67 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001799/2.347, allocations: 2.021 MB / 0.7446 GB, free: 9.93 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005615/2.347, allocations: 228.4 kB / 0.7448 GB, free: 9.863 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/2.347, allocations: 82.08 kB / 0.7449 GB, free: 9.844 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2478/2.595, allocations: 122.5 MB / 0.8645 GB, free: 5.777 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003432/2.595, allocations: 139.7 kB / 0.8647 GB, free: 5.633 MB / 0.698 GB Notification: Performance of pre-optimization done (n=21): time 2.554e-06/2.595, allocations: 0 / 0.8647 GB, free: 5.633 MB / 0.698 GB Notification: Performance of matching and sorting (n=21): time 0.001057/2.596, allocations: 404.2 kB / 0.8651 GB, free: 5.215 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/2.597, allocations: 55.41 kB / 0.8651 GB, free: 5.148 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003697/2.597, allocations: 321.5 kB / 0.8654 GB, free: 4.828 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.315e-05/2.597, allocations: 25.7 kB / 0.8655 GB, free: 4.797 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000159/2.597, allocations: 243.5 kB / 0.8657 GB, free: 4.559 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 6.179e-05/2.597, allocations: 67.02 kB / 0.8657 GB, free: 4.492 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/2.597, allocations: 80.91 kB / 0.8658 GB, free: 4.41 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001211/2.597, allocations: 338.8 kB / 0.8661 GB, free: 4.07 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/2.598, allocations: 76.61 kB / 0.8662 GB, free: 3.996 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000238/2.598, allocations: 187.9 kB / 0.8664 GB, free: 3.77 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003858/2.598, allocations: 274 kB / 0.8667 GB, free: 3.473 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/2.598, allocations: 0 / 0.8667 GB, free: 3.473 MB / 0.698 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008139/2.599, allocations: 385.1 kB / 0.867 GB, free: 3.105 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/2.599, allocations: 9.25 kB / 0.867 GB, free: 3.098 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/2.599, allocations: 4.438 kB / 0.867 GB, free: 3.094 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009396/2.6, allocations: 165.5 kB / 0.8672 GB, free: 2.926 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/2.6, allocations: 57.78 kB / 0.8673 GB, free: 2.875 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00215/2.602, allocations: 2.195 MB / 0.8694 GB, free: 0.5234 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002446/2.603, allocations: 39.67 kB / 0.8694 GB, free: 496 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.932e-05/2.603, allocations: 23.92 kB / 0.8695 GB, free: 472 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.0001651/2.603, allocations: 164.6 kB / 0.8696 GB, free: 304 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.205e-05/2.603, allocations: 32.72 kB / 0.8696 GB, free: 272 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006966/2.604, allocations: 318.1 kB / 0.87 GB, free: 15.95 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/2.604, allocations: 3.938 kB / 0.87 GB, free: 15.95 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/2.604, allocations: 0 / 0.87 GB, free: 15.95 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/2.604, allocations: 0 / 0.87 GB, free: 15.95 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003735/2.604, allocations: 390 kB / 0.8703 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/2.604, allocations: 4 kB / 0.8703 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002578/2.604, allocations: 51.97 kB / 0.8704 GB, free: 15.47 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004414/2.605, allocations: 70.28 kB / 0.8704 GB, free: 15.4 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/2.605, allocations: 11.98 kB / 0.8705 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004072/2.605, allocations: 0.5669 MB / 0.871 GB, free: 14.8 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/2.605, allocations: 0 / 0.871 GB, free: 14.8 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003218/2.608, allocations: 2.106 MB / 0.8731 GB, free: 12.57 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/2.609, allocations: 120.6 kB / 0.8732 GB, free: 12.43 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.11e-05/2.609, allocations: 11.94 kB / 0.8732 GB, free: 12.42 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001513/2.609, allocations: 11.98 kB / 0.8732 GB, free: 12.41 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.707e-05/2.609, allocations: 27.95 kB / 0.8732 GB, free: 12.38 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/2.609, allocations: 4.094 kB / 0.8732 GB, free: 12.38 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0002361/2.609, allocations: 243.2 kB / 0.8735 GB, free: 12.14 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.5e-07/2.609, allocations: 0 / 0.8735 GB, free: 12.14 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.003946/2.613, allocations: 1.546 MB / 0.875 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.00617/2.619, allocations: 2.285 MB / 0.8772 GB, free: 8.594 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0008186/2.62, allocations: 349 kB / 0.8775 GB, free: 8.25 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/2.62, allocations: 192 / 0.8775 GB, free: 8.25 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0002854/2.62, allocations: 118.9 kB / 0.8777 GB, free: 8.141 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004571/2.621, allocations: 70.59 kB / 0.8777 GB, free: 8.074 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/2.622, allocations: 1.099 MB / 0.8788 GB, free: 6.949 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/2.623, allocations: 0.8034 MB / 0.8796 GB, free: 6.117 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0001992/2.623, allocations: 59.97 kB / 0.8796 GB, free: 6.059 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.147e-05/2.623, allocations: 35.44 kB / 0.8797 GB, free: 6.023 MB / 0.7136 GB Notification: Performance of SimCode: time 2.51e-07/2.623, allocations: 4 kB / 0.8797 GB, free: 6.02 MB / 0.7136 GB Notification: Performance of Templates: time 0.05854/2.682, allocations: 47.72 MB / 0.9263 GB, free: 6.34 MB / 0.7605 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)