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: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.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.7411/0.7411, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.379e-05/1.382e-05, allocations: 4 kB / 204.8 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1357, allocations: 31.98 MB / 236.8 MB, free: 4.828 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.45/1.586, allocations: 293.6 MB / 0.5179 GB, free: 13.41 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03821/1.624, allocations: 37.05 MB / 0.5541 GB, free: 8.512 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002718/1.625, allocations: 4 kB / 0.5541 GB, free: 8.508 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003557/1.625, allocations: 79.55 kB / 0.5542 GB, free: 8.43 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002059/1.625, allocations: 87.36 kB / 0.5543 GB, free: 8.344 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01895/1.644, allocations: 7.319 MB / 0.5614 GB, free: 1.027 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004469/1.645, allocations: 354.3 kB / 0.5618 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/1.645, allocations: 105.4 kB / 0.5619 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001915/1.645, allocations: 127.3 kB / 0.562 GB, free: 460 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/1.645, allocations: 111.4 kB / 0.5621 GB, free: 348 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.052e-05/1.645, allocations: 8 kB / 0.5621 GB, free: 340 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02556/1.671, allocations: 17.81 MB / 0.5795 GB, free: 14.5 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.017e-05/1.671, allocations: 39.78 kB / 0.5795 GB, free: 14.46 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001786/1.671, allocations: 153 kB / 0.5797 GB, free: 14.3 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01524/1.686, allocations: 8.355 MB / 0.5878 GB, free: 5.93 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/1.686, allocations: 4 kB / 0.5878 GB, free: 5.926 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.913e-06/1.686, allocations: 4 kB / 0.5878 GB, free: 5.922 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.537e-06/1.686, allocations: 0 / 0.5878 GB, free: 5.922 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.003311/1.69, allocations: 1.435 MB / 0.5892 GB, free: 4.438 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/1.69, allocations: 8.031 kB / 0.5892 GB, free: 4.43 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.99e-05/1.69, allocations: 35.56 kB / 0.5893 GB, free: 4.395 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002125/1.69, allocations: 240.8 kB / 0.5895 GB, free: 4.121 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.611e-05/1.69, allocations: 42.14 kB / 0.5895 GB, free: 4.07 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.042e-05/1.69, allocations: 20 kB / 0.5896 GB, free: 4.051 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004601/1.69, allocations: 322.7 kB / 0.5899 GB, free: 3.711 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/1.691, allocations: 4 kB / 0.5899 GB, free: 3.707 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.101e-05/1.691, allocations: 8 kB / 0.5899 GB, free: 3.699 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/1.691, allocations: 19.92 kB / 0.5899 GB, free: 3.68 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00033/1.691, allocations: 200.3 kB / 0.5901 GB, free: 3.484 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.01811/1.709, allocations: 9.974 MB / 0.5998 GB, free: 8.477 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002787/1.709, allocations: 162.8 kB / 0.6 GB, free: 8.309 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/1.709, allocations: 125.1 kB / 0.6001 GB, free: 8.184 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1606/1.87, allocations: 86.2 MB / 0.6843 GB, free: 8.363 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003379/1.87, allocations: 197 kB / 0.6845 GB, free: 8.152 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=43): time 1.553e-06/1.87, allocations: 0 / 0.6845 GB, free: 8.152 MB / 0.5762 GB Notification: Performance of matching and sorting (n=43): time 0.00101/1.871, allocations: 0.5193 MB / 0.685 GB, free: 7.605 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.194e-05/1.872, allocations: 85.05 kB / 0.6851 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001811/1.872, allocations: 206.9 kB / 0.6853 GB, free: 7.289 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/1.872, allocations: 33.73 kB / 0.6853 GB, free: 7.25 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.635e-05/1.872, allocations: 148.6 kB / 0.6854 GB, free: 7.102 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.586e-05/1.872, allocations: 134 kB / 0.6856 GB, free: 6.969 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-05/1.872, allocations: 37.7 kB / 0.6856 GB, free: 6.926 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001004/1.872, allocations: 334.8 kB / 0.6859 GB, free: 6.59 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/1.872, allocations: 100.4 kB / 0.686 GB, free: 6.492 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/1.872, allocations: 166.1 kB / 0.6862 GB, free: 6.305 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/1.874, allocations: 0.5583 MB / 0.6867 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/1.874, allocations: 3.984 kB / 0.6867 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005827/1.874, allocations: 370 kB / 0.6871 GB, free: 5.348 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/1.874, allocations: 8 kB / 0.6871 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/1.874, allocations: 3.938 kB / 0.6871 GB, free: 5.336 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005803/1.875, allocations: 140.9 kB / 0.6872 GB, free: 5.195 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.691e-05/1.875, allocations: 31.92 kB / 0.6872 GB, free: 5.164 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004031/1.875, allocations: 0.603 MB / 0.6878 GB, free: 4.535 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001441/1.876, allocations: 39.58 kB / 0.6879 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/1.876, allocations: 12 kB / 0.6879 GB, free: 4.484 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.0001605/1.876, allocations: 153.3 kB / 0.688 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.826e-05/1.876, allocations: 23.66 kB / 0.6881 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006854/1.877, allocations: 0.5245 MB / 0.6886 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004449/1.877, allocations: 326.3 kB / 0.6889 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/1.877, allocations: 0 / 0.6889 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/1.877, allocations: 5.922 kB / 0.6889 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/1.878, allocations: 0.8809 MB / 0.6897 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/1.878, allocations: 0 / 0.6897 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.553e-05/1.878, allocations: 31.92 kB / 0.6898 GB, free: 2.438 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005593/1.879, allocations: 152.7 kB / 0.6899 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/1.879, allocations: 4 kB / 0.6899 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003693/1.879, allocations: 0.6226 MB / 0.6905 GB, free: 1.633 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/1.879, allocations: 0 / 0.6905 GB, free: 1.633 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005625/1.88, allocations: 455.9 kB / 0.691 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.417e-05/1.88, allocations: 132.6 kB / 0.6911 GB, free: 1.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.199e-05/1.88, allocations: 4 kB / 0.6911 GB, free: 1.016 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000145/1.88, allocations: 19.98 kB / 0.6911 GB, free: 0.9961 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.004e-05/1.88, allocations: 20.25 kB / 0.6911 GB, free: 0.9766 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.543e-05/1.88, allocations: 15.88 kB / 0.6912 GB, free: 0.9609 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001448/1.88, allocations: 180.5 kB / 0.6913 GB, free: 0.7852 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/1.88, allocations: 7.938 kB / 0.6913 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1502/2.031, allocations: 1.193 MB / 0.6925 GB, free: 228.4 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.004579/2.035, allocations: 1.763 MB / 0.6942 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000694/2.036, allocations: 330.1 kB / 0.6945 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/2.036, allocations: 2.25 kB / 0.6945 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003031/2.036, allocations: 163.4 kB / 0.6947 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007347/2.037, allocations: 111.8 kB / 0.6948 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008035/2.038, allocations: 0.7251 MB / 0.6955 GB, free: 227.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000164/2.038, allocations: 0.7805 MB / 0.6963 GB, free: 227.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.8e-05/2.038, allocations: 29.66 kB / 0.6963 GB, free: 227.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.598e-05/2.038, allocations: 22 kB / 0.6963 GB, free: 227.2 MB / 0.5762 GB Notification: Performance of SimCode: time 2.11e-07/2.038, allocations: 0.5312 kB / 0.6963 GB, free: 227.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.04178/2.08, allocations: 42.04 MB / 0.7374 GB, free: 206.9 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.makefile Environment - environmentSimulation: (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 & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1) Environment - environmentSimulation: