Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.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.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9476/0.9476, allocations: 150.9 MB / 166 MB, free: 14.66 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003451/0.0003451, allocations: 15.98 kB / 204 MB, free: 10.15 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1607/0.161, allocations: 31.34 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.TestCheckValve): time 1.56/1.721, allocations: 292.7 MB / 0.5157 GB, free: 13.78 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1873/1.908, allocations: 188.4 MB / 0.6997 GB, free: 0.9805 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002768/1.909, allocations: 7.938 kB / 0.6997 GB, free: 0.9727 MB / 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/CheckValve.mo:37:3-38:68: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/CheckValve.mo:39:3-40:66: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.0001616/1.909, allocations: 24.62 kB / 0.6997 GB, free: 0.9492 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003445/1.909, allocations: 107.2 kB / 0.6998 GB, free: 0.8438 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3142/2.223, allocations: 8.638 MB / 0.7083 GB, free: 4.25 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004715/2.224, allocations: 395.5 kB / 0.7086 GB, free: 4.25 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002632/2.224, allocations: 201.4 kB / 0.7088 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001902/2.224, allocations: 152.1 kB / 0.709 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/2.224, allocations: 171.2 kB / 0.7091 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.296e-05/2.224, allocations: 25.66 kB / 0.7092 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03033/2.255, allocations: 19.91 MB / 0.7286 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001673/2.255, allocations: 74.25 kB / 0.7287 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002896/2.255, allocations: 184.7 kB / 0.7289 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02172/2.277, allocations: 9.884 MB / 0.7385 GB, free: 1.82 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/2.277, allocations: 0 / 0.7385 GB, free: 1.82 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.623e-06/2.277, allocations: 0 / 0.7385 GB, free: 1.82 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.672e-06/2.277, allocations: 1.969 kB / 0.7385 GB, free: 1.82 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004463/2.282, allocations: 1.792 MB / 0.7403 GB, free: 0.668 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/2.282, allocations: 9.797 kB / 0.7403 GB, free: 0.668 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.969e-05/2.282, allocations: 43.53 kB / 0.7403 GB, free: 0.6484 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002565/2.282, allocations: 294.7 kB / 0.7406 GB, free: 404 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.365e-05/2.282, allocations: 52.77 kB / 0.7406 GB, free: 372 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.722e-05/2.282, allocations: 34.25 kB / 0.7407 GB, free: 372 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005119/2.283, allocations: 381.7 kB / 0.741 GB, free: 216 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/2.283, allocations: 0 / 0.741 GB, free: 216 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.816e-05/2.283, allocations: 15.06 kB / 0.7411 GB, free: 216 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/2.283, allocations: 8.656 kB / 0.7411 GB, free: 216 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004414/2.283, allocations: 257.1 kB / 0.7413 GB, free: 180 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001768/2.285, allocations: 1.958 MB / 0.7432 GB, free: 14.49 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002503/2.285, allocations: 102.7 kB / 0.7433 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/2.285, allocations: 58.77 kB / 0.7434 GB, free: 14.44 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2251/2.51, allocations: 122.5 MB / 0.863 GB, free: 1.684 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003343/2.511, allocations: 111.9 kB / 0.8631 GB, free: 1.582 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=16): time 3.506e-06/2.511, allocations: 0 / 0.8631 GB, free: 1.582 MB / 0.7012 GB Notification: Performance of matching and sorting (n=16): time 0.0009711/2.512, allocations: 351.4 kB / 0.8635 GB, free: 1.262 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/2.512, allocations: 55.41 kB / 0.8635 GB, free: 1.195 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003229/2.512, allocations: 267.4 kB / 0.8638 GB, free: 0.9766 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/2.512, allocations: 25.7 kB / 0.8638 GB, free: 0.9453 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001739/2.512, allocations: 230.2 kB / 0.864 GB, free: 0.7578 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 5.012e-05/2.512, allocations: 54.23 kB / 0.8641 GB, free: 0.7109 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/2.513, allocations: 66.53 kB / 0.8641 GB, free: 0.6602 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001171/2.513, allocations: 336.4 kB / 0.8644 GB, free: 344 kB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/2.513, allocations: 68.08 kB / 0.8645 GB, free: 296 kB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002424/2.513, allocations: 183.8 kB / 0.8647 GB, free: 88 kB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/2.515, allocations: 476.6 kB / 0.8651 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/2.515, allocations: 4 kB / 0.8651 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006738/2.515, allocations: 314 kB / 0.8654 GB, free: 15.42 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/2.515, allocations: 8 kB / 0.8655 GB, free: 15.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/2.515, allocations: 8.469 kB / 0.8655 GB, free: 15.41 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006305/2.516, allocations: 95.77 kB / 0.8656 GB, free: 15.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/2.516, allocations: 49.31 kB / 0.8656 GB, free: 15.28 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004348/2.517, allocations: 0.5565 MB / 0.8661 GB, free: 14.71 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002249/2.517, allocations: 43.83 kB / 0.8662 GB, free: 14.68 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.529e-05/2.517, allocations: 12 kB / 0.8662 GB, free: 14.67 MB / 0.7169 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,sourceP1.C.ftype,$PRE.pulse.T0,puitsP1.fluid,checkValve3.fluid,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,sourceP1.fluid1,sourceP1.C.diff_on_2,checkValve3.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002474/2.517, allocations: 168.5 kB / 0.8664 GB, free: 14.52 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.856e-05/2.517, allocations: 23.72 kB / 0.8664 GB, free: 14.5 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005743/2.518, allocations: 233.5 kB / 0.8666 GB, free: 14.31 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/2.518, allocations: 0 / 0.8666 GB, free: 14.31 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/2.518, allocations: 7.984 kB / 0.8666 GB, free: 14.3 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/2.518, allocations: 4 kB / 0.8666 GB, free: 14.3 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003793/2.518, allocations: 339.1 kB / 0.8669 GB, free: 13.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/2.518, allocations: 0 / 0.8669 GB, free: 13.98 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.173e-05/2.518, allocations: 15.55 kB / 0.867 GB, free: 13.96 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005967/2.519, allocations: 87.64 kB / 0.867 GB, free: 13.88 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/2.519, allocations: 6.25 kB / 0.867 GB, free: 13.88 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003653/2.519, allocations: 0.5483 MB / 0.8676 GB, free: 13.32 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/2.519, allocations: 3.984 kB / 0.8676 GB, free: 13.32 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004444/2.52, allocations: 235 kB / 0.8678 GB, free: 13.11 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.617e-05/2.52, allocations: 107.7 kB / 0.8679 GB, free: 12.99 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.414e-05/2.52, allocations: 3.375 kB / 0.8679 GB, free: 12.99 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/2.52, allocations: 19.45 kB / 0.8679 GB, free: 12.98 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.558e-05/2.52, allocations: 9.078 kB / 0.8679 GB, free: 12.97 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-05/2.52, allocations: 11.98 kB / 0.868 GB, free: 12.96 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001959/2.52, allocations: 193 kB / 0.8681 GB, free: 12.8 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/2.52, allocations: 0 / 0.8681 GB, free: 12.8 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004169/2.525, allocations: 1.452 MB / 0.8696 GB, free: 11.45 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,pulse.T0,checkValve3.ouvert,checkValve3.touvert,checkValve3.tferme) * Number of discrete states: 2 (checkValve3.touvert,checkValve3.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008038/2.533, allocations: 2.271 MB / 0.8718 GB, free: 9.523 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006321/2.533, allocations: 183.3 kB / 0.8719 GB, free: 9.391 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/2.533, allocations: 10.94 kB / 0.872 GB, free: 9.383 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002251/2.534, allocations: 66.42 kB / 0.872 GB, free: 9.336 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000465/2.534, allocations: 70.78 kB / 0.8721 GB, free: 9.285 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/2.535, allocations: 0.629 MB / 0.8727 GB, free: 8.664 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/2.536, allocations: 0.7724 MB / 0.8735 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001703/2.536, allocations: 42.89 kB / 0.8735 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.774e-05/2.536, allocations: 31.44 kB / 0.8735 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/2.536, allocations: 0 / 0.8735 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of Templates: time 0.06146/2.597, allocations: 45.92 MB / 0.9184 GB, free: 9.996 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1)