Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve") translateModel(Buildings.Fluid.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008016/0.008015, allocations: 100.1 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 199.1 kB / 16.68 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.681/1.681, allocations: 205.1 MB / 222.5 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.615/1.615, allocations: 251.7 MB / 0.5094 GB, free: 3.047 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001596, allocations: 69.78 kB / 0.7258 GB, free: 9.031 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3292, allocations: 104.7 MB / 0.828 GB, free: 232 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.02415/0.3534, allocations: 20.76 MB / 0.8483 GB, free: 11.38 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.008407/0.3619, allocations: 4.889 MB / 0.8531 GB, free: 6.477 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009966/0.3629, allocations: 15.88 kB / 0.8531 GB, free: 6.461 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.001093/0.3641, allocations: 282.1 kB / 0.8534 GB, free: 6.184 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.002703/0.3668, allocations: 0.8547 MB / 0.8542 GB, free: 5.328 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.002503/0.3693, allocations: 0.7237 MB / 0.8549 GB, free: 4.609 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.002189/0.3715, allocations: 1.394 MB / 0.8563 GB, free: 3.215 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006856/0.3722, allocations: 432.4 kB / 0.8567 GB, free: 2.789 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001143/0.3734, allocations: 0.5875 MB / 0.8573 GB, free: 2.199 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006562/0.3741, allocations: 442.2 kB / 0.8577 GB, free: 1.766 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 8.161e-05/0.3741, allocations: 36 kB / 0.8577 GB, free: 1.73 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0013/0.3755, allocations: 0.6355 MB / 0.8583 GB, free: 1.094 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.3756, allocations: 127.5 kB / 0.8584 GB, free: 0.9688 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0003104/0.3759, allocations: 286.5 kB / 0.8587 GB, free: 0.6875 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.001205/0.3772, allocations: 0.8607 MB / 0.8596 GB, free: 15.82 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.3772, allocations: 0 / 0.8596 GB, free: 15.82 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.914e-06/0.3772, allocations: 0 / 0.8596 GB, free: 15.82 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 1.123e-05/0.3772, allocations: 0 / 0.8596 GB, free: 15.82 MB / 0.6856 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001658/0.3789, allocations: 0.9149 MB / 0.8605 GB, free: 14.86 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.3789, allocations: 11.88 kB / 0.8605 GB, free: 14.85 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001329/0.3791, allocations: 64.19 kB / 0.8605 GB, free: 14.79 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008357/0.3799, allocations: 471.4 kB / 0.861 GB, free: 14.28 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/0.3799, allocations: 28.66 kB / 0.861 GB, free: 14.25 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.987e-05/0.38, allocations: 43.94 kB / 0.861 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006363/0.3806, allocations: 306 kB / 0.8613 GB, free: 13.9 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.3807, allocations: 0 / 0.8613 GB, free: 13.9 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.562e-05/0.3807, allocations: 12 kB / 0.8614 GB, free: 13.89 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.3807, allocations: 7.938 kB / 0.8614 GB, free: 13.88 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006004/0.3813, allocations: 258.4 kB / 0.8616 GB, free: 13.63 MB / 0.6856 GB 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.002282/0.3836, allocations: 1.352 MB / 0.8629 GB, free: 12.16 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005263/0.3842, allocations: 262.5 kB / 0.8632 GB, free: 11.89 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002763/0.3845, allocations: 134.3 kB / 0.8633 GB, free: 11.76 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004685/0.3849, allocations: 0.4947 MB / 0.8638 GB, free: 11.16 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.4e-05/0.385, allocations: 42.55 kB / 0.8638 GB, free: 11.11 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=25): time 1.472e-06/0.385, allocations: 0 / 0.8638 GB, free: 11.11 MB / 0.6856 GB Notification: Performance of matching and sorting (n=25): time 0.001745/0.3867, allocations: 0.5521 MB / 0.8644 GB, free: 10.53 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.198e-05/0.3868, allocations: 59.34 kB / 0.8644 GB, free: 10.46 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005495/0.3874, allocations: 474 kB / 0.8649 GB, free: 9.984 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 3.501e-05/0.3874, allocations: 33.7 kB / 0.8649 GB, free: 9.945 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001892/0.3876, allocations: 244.5 kB / 0.8651 GB, free: 9.703 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 7.436e-05/0.3877, allocations: 78.77 kB / 0.8652 GB, free: 9.625 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.3878, allocations: 77.67 kB / 0.8653 GB, free: 9.543 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001745/0.388, allocations: 354.8 kB / 0.8656 GB, free: 9.188 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003088/0.3883, allocations: 128.5 kB / 0.8658 GB, free: 9.059 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003756/0.3887, allocations: 188.7 kB / 0.8659 GB, free: 8.855 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006219/0.3893, allocations: 273.9 kB / 0.8662 GB, free: 8.582 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.3894, allocations: 0 / 0.8662 GB, free: 8.582 MB / 0.6856 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00159/0.391, allocations: 497.6 kB / 0.8667 GB, free: 8.086 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.391, allocations: 4 kB / 0.8667 GB, free: 8.082 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.954e-06/0.391, allocations: 0 / 0.8667 GB, free: 8.082 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004056/0.3914, allocations: 52.81 kB / 0.8667 GB, free: 8.027 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000356/0.3918, allocations: 67.89 kB / 0.8668 GB, free: 7.961 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004869/0.3923, allocations: 0.5717 MB / 0.8673 GB, free: 7.363 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004229/0.3927, allocations: 55.77 kB / 0.8674 GB, free: 7.309 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.365e-05/0.3928, allocations: 11.98 kB / 0.8674 GB, free: 7.297 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004421/0.3932, allocations: 244.1 kB / 0.8676 GB, free: 7.055 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003438/0.3936, allocations: 173 kB / 0.8678 GB, free: 6.867 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005861/0.3942, allocations: 269.2 kB / 0.8681 GB, free: 6.598 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.333e-06/0.3942, allocations: 0 / 0.8681 GB, free: 6.598 MB / 0.6856 GB Notification: Performance of matching and sorting (n=37) (initialization_lambda0): time 0.0008258/0.395, allocations: 364.8 kB / 0.8684 GB, free: 6.234 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/0.395, allocations: 4 kB / 0.8684 GB, free: 6.23 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.395, allocations: 4 kB / 0.8684 GB, free: 6.227 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.767e-06/0.395, allocations: 0 / 0.8684 GB, free: 6.227 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00039/0.3954, allocations: 87.83 kB / 0.8685 GB, free: 6.141 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.3955, allocations: 0 / 0.8685 GB, free: 6.141 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004371/0.3959, allocations: 43.8 kB / 0.8685 GB, free: 6.098 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.017e-05/0.3959, allocations: 19.98 kB / 0.8686 GB, free: 6.078 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * 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,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001851/0.3961, allocations: 192.2 kB / 0.8687 GB, free: 5.883 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.3963, allocations: 55.34 kB / 0.8688 GB, free: 5.828 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009823/0.3972, allocations: 424.7 kB / 0.8692 GB, free: 5.402 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.435e-05/0.3973, allocations: 15.92 kB / 0.8692 GB, free: 5.387 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3973, allocations: 0 / 0.8692 GB, free: 5.387 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.3973, allocations: 0 / 0.8692 GB, free: 5.387 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001689/0.399, allocations: 0.9515 MB / 0.8701 GB, free: 4.363 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.399, allocations: 0 / 0.8701 GB, free: 4.363 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002456/0.3993, allocations: 51.95 kB / 0.8702 GB, free: 4.312 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002045/0.3995, allocations: 44.77 kB / 0.8702 GB, free: 4.266 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.8e-05/0.3995, allocations: 8 kB / 0.8702 GB, free: 4.258 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003988/0.3999, allocations: 0.5525 MB / 0.8708 GB, free: 3.68 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3999, allocations: 3.938 kB / 0.8708 GB, free: 3.676 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008728/0.4008, allocations: 498.9 kB / 0.8713 GB, free: 3.156 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001954/0.401, allocations: 164.3 kB / 0.8714 GB, free: 2.977 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.748e-05/0.4011, allocations: 4 kB / 0.8714 GB, free: 2.973 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003123/0.4014, allocations: 27.97 kB / 0.8715 GB, free: 2.945 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.704e-05/0.4015, allocations: 27.91 kB / 0.8715 GB, free: 2.918 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.599e-05/0.4015, allocations: 12 kB / 0.8715 GB, free: 2.906 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.000384/0.4019, allocations: 322.9 kB / 0.8718 GB, free: 2.594 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4019, allocations: 0 / 0.8718 GB, free: 2.594 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0008371/0.4028, allocations: 243.6 kB / 0.872 GB, free: 2.355 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0006167/0.4034, allocations: 250.6 kB / 0.8723 GB, free: 2.109 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.001239/0.4047, allocations: 473.5 kB / 0.8727 GB, free: 1.648 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.4047, allocations: 4 kB / 0.8727 GB, free: 1.645 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0004262/0.4051, allocations: 163.8 kB / 0.8729 GB, free: 1.484 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.4062, allocations: 216.4 kB / 0.8731 GB, free: 1.273 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/0.4079, allocations: 0.8176 MB / 0.8739 GB, free: 424 kB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000518/0.4085, allocations: 0.8627 MB / 0.8747 GB, free: 15.52 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.0005045/0.409, allocations: 120.2 kB / 0.8748 GB, free: 15.41 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.4091, allocations: 39.42 kB / 0.8749 GB, free: 15.37 MB / 0.7012 GB Notification: Performance of SimCode: time 3.01e-07/0.4091, allocations: 0 / 0.8749 GB, free: 15.37 MB / 0.7012 GB Notification: Performance of Templates: time 0.02213/0.4312, allocations: 10.18 MB / 0.8848 GB, free: 5.352 MB / 0.7012 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1)