Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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: "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8298/0.8298, allocations: 150.8 MB / 166.1 MB, free: 15.14 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.608e-05/1.59e-05, allocations: 0 / 204.9 MB, free: 9.59 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1794/0.1794, allocations: 31.99 MB / 236.8 MB, free: 5.477 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve): time 1.6/1.78, allocations: 294.6 MB / 0.519 GB, free: 13.09 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04366/1.823, allocations: 37.04 MB / 0.5551 GB, free: 8.199 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002423/1.824, allocations: 8 kB / 0.5551 GB, free: 8.191 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003577/1.824, allocations: 75.61 kB / 0.5552 GB, free: 8.117 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003108/1.824, allocations: 87.3 kB / 0.5553 GB, free: 8.031 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02539/1.85, allocations: 7.317 MB / 0.5624 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007543/1.851, allocations: 350.3 kB / 0.5628 GB, free: 376 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002813/1.851, allocations: 105.7 kB / 0.5629 GB, free: 268 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003239/1.851, allocations: 127.3 kB / 0.563 GB, free: 140 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000183/1.851, allocations: 107.4 kB / 0.5631 GB, free: 32 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.211e-05/1.851, allocations: 8 kB / 0.5631 GB, free: 24 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03308/1.885, allocations: 17.81 MB / 0.5805 GB, free: 14.19 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001302/1.885, allocations: 39.67 kB / 0.5805 GB, free: 14.15 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002828/1.885, allocations: 156.9 kB / 0.5807 GB, free: 13.99 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02086/1.906, allocations: 8.358 MB / 0.5888 GB, free: 5.613 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.767e-06/1.906, allocations: 4 kB / 0.5888 GB, free: 5.609 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.096e-06/1.906, allocations: 0 / 0.5888 GB, free: 5.609 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.458e-05/1.906, allocations: 7.938 kB / 0.5889 GB, free: 5.602 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.004551/1.911, allocations: 1.432 MB / 0.5903 GB, free: 4.121 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/1.911, allocations: 8.031 kB / 0.5903 GB, free: 4.113 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.118e-05/1.911, allocations: 62.53 kB / 0.5903 GB, free: 4.043 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.143e-05/1.911, allocations: 39.56 kB / 0.5904 GB, free: 4.004 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002576/1.911, allocations: 252.3 kB / 0.5906 GB, free: 3.723 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.121e-05/1.911, allocations: 39.97 kB / 0.5906 GB, free: 3.676 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.353e-05/1.911, allocations: 27.98 kB / 0.5907 GB, free: 3.648 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005005/1.912, allocations: 322.7 kB / 0.591 GB, free: 3.309 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/1.912, allocations: 0 / 0.591 GB, free: 3.309 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.388e-05/1.912, allocations: 8 kB / 0.591 GB, free: 3.301 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.903e-05/1.912, allocations: 15.92 kB / 0.591 GB, free: 3.285 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003723/1.912, allocations: 200.3 kB / 0.5912 GB, free: 3.09 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.01947/1.932, allocations: 9.965 MB / 0.6009 GB, free: 8.09 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003238/1.932, allocations: 162.8 kB / 0.6011 GB, free: 7.922 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/1.932, allocations: 121.2 kB / 0.6012 GB, free: 7.801 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1698/2.102, allocations: 86.21 MB / 0.6854 GB, free: 7.973 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003758/2.102, allocations: 200.9 kB / 0.6856 GB, free: 7.758 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=43): time 2.936e-06/2.102, allocations: 0 / 0.6856 GB, free: 7.758 MB / 0.5762 GB Notification: Performance of matching and sorting (n=43): time 0.001102/2.104, allocations: 0.5107 MB / 0.6861 GB, free: 7.219 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/2.104, allocations: 89.05 kB / 0.6862 GB, free: 7.113 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/2.104, allocations: 202.9 kB / 0.6863 GB, free: 6.902 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/2.104, allocations: 33.73 kB / 0.6864 GB, free: 6.863 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/2.104, allocations: 144.6 kB / 0.6865 GB, free: 6.719 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/2.104, allocations: 134 kB / 0.6866 GB, free: 6.586 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.17e-05/2.104, allocations: 41.69 kB / 0.6867 GB, free: 6.539 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001134/2.104, allocations: 339.1 kB / 0.687 GB, free: 6.199 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001766/2.104, allocations: 96.39 kB / 0.6871 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/2.105, allocations: 169.3 kB / 0.6873 GB, free: 5.914 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/2.106, allocations: 0.5575 MB / 0.6878 GB, free: 5.332 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/2.106, allocations: 0 / 0.6878 GB, free: 5.332 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006582/2.107, allocations: 385.8 kB / 0.6882 GB, free: 4.945 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/2.107, allocations: 4 kB / 0.6882 GB, free: 4.941 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/2.107, allocations: 4 kB / 0.6882 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006077/2.107, allocations: 141 kB / 0.6883 GB, free: 4.797 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/2.107, allocations: 27.92 kB / 0.6883 GB, free: 4.77 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004494/2.108, allocations: 0.6069 MB / 0.6889 GB, free: 4.137 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001748/2.108, allocations: 39.62 kB / 0.689 GB, free: 4.098 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/2.108, allocations: 11.98 kB / 0.689 GB, free: 4.086 MB / 0.5762 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: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,$PRE.pulse.T0,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,checkValve3.C2.b,checkValve3.C1.a,puitsP1.C.a,sourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001943/2.108, allocations: 150.8 kB / 0.6891 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.336e-05/2.108, allocations: 31.66 kB / 0.6892 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000715/2.109, allocations: 0.5128 MB / 0.6897 GB, free: 3.352 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004752/2.11, allocations: 330.3 kB / 0.69 GB, free: 3.02 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/2.11, allocations: 0 / 0.69 GB, free: 3.02 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/2.11, allocations: 3.984 kB / 0.69 GB, free: 3.016 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/2.111, allocations: 0.8848 MB / 0.6908 GB, free: 2.07 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/2.111, allocations: 0 / 0.6908 GB, free: 2.07 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/2.111, allocations: 27.92 kB / 0.6909 GB, free: 2.043 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005757/2.111, allocations: 156.7 kB / 0.691 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/2.111, allocations: 4 kB / 0.691 GB, free: 1.883 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003868/2.112, allocations: 0.6187 MB / 0.6916 GB, free: 1.238 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/2.112, allocations: 0 / 0.6916 GB, free: 1.238 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005944/2.112, allocations: 455.9 kB / 0.6921 GB, free: 0.7734 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/2.113, allocations: 128.6 kB / 0.6922 GB, free: 0.6289 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.886e-05/2.113, allocations: 8 kB / 0.6922 GB, free: 0.6211 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/2.113, allocations: 23.92 kB / 0.6922 GB, free: 0.5977 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.419e-05/2.113, allocations: 23.91 kB / 0.6922 GB, free: 0.5742 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.043e-05/2.113, allocations: 7.984 kB / 0.6922 GB, free: 0.5664 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001616/2.113, allocations: 192.5 kB / 0.6924 GB, free: 388 kB / 0.5762 GB Notification: Performance of sort global known variables: time 2.4e-07/2.113, allocations: 0 / 0.6924 GB, free: 388 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1846/2.298, allocations: 1.184 MB / 0.6936 GB, free: 227.9 MB / 0.5762 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 (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.006935/2.305, allocations: 2.652 MB / 0.6962 GB, free: 227.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007522/2.305, allocations: 333.7 kB / 0.6965 GB, free: 227.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/2.305, allocations: 1.125 kB / 0.6965 GB, free: 227.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003465/2.306, allocations: 157 kB / 0.6966 GB, free: 227.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008195/2.307, allocations: 123.3 kB / 0.6968 GB, free: 227.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00484/2.312, allocations: 3.413 MB / 0.7001 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002051/2.312, allocations: 0.7828 MB / 0.7009 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001395/2.312, allocations: 25.22 kB / 0.7009 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/2.312, allocations: 103.8 kB / 0.701 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.934e-06/2.312, allocations: 0 / 0.701 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07179/2.384, allocations: 46.87 MB / 0.7468 GB, free: 198.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001517/2.384, allocations: 256.5 kB / 0.747 GB, free: 198.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.293/6.677, allocations: 0 / 0.747 GB, free: 198.3 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestCheckValve_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestCheckValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1)