Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=5000,variableFilter="time|checkValve.dp|checkValve_m_flow.dp|checkValve.m_flow|checkValveDpFix.m_flow|checkValve_m_flow.m_flow|checkValve.k|checkValveDpFix.k|checkValve_m_flow.k",fileNamePrefix="Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve") translateModel(Buildings.Fluid.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|checkValve.dp|checkValve_m_flow.dp|checkValve.m_flow|checkValveDpFix.m_flow|checkValve_m_flow.m_flow|checkValve.k|checkValveDpFix.k|checkValve_m_flow.k",fileNamePrefix="Buildings_9_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.001244/0.001244, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001551/0.001551, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.531/1.531, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.569/2.569, allocations: 390.3 MB / 0.6653 GB, free: 2.871 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000379/0.0003791, allocations: 8 kB / 0.8145 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8767/0.8771, allocations: 142.3 MB / 0.9535 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.01761/0.8948, allocations: 17.41 MB / 0.9705 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.008185/0.903, allocations: 3.978 MB / 0.9744 GB, free: 7.262 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009376/0.904, allocations: 15.34 kB / 0.9744 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001082/0.9051, allocations: 271 kB / 0.9747 GB, free: 7.023 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002858/0.908, allocations: 0.8055 MB / 0.9755 GB, free: 6.352 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002543/0.9106, allocations: 0.7651 MB / 0.9762 GB, free: 5.84 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001582/0.9121, allocations: 0.8402 MB / 0.977 GB, free: 5.285 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006534/0.9128, allocations: 355.1 kB / 0.9774 GB, free: 5.074 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001009/0.9138, allocations: 469.7 kB / 0.9778 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005366/0.9144, allocations: 320.9 kB / 0.9781 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.387e-05/0.9145, allocations: 24.78 kB / 0.9781 GB, free: 4.605 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001037/0.9155, allocations: 394.8 kB / 0.9785 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001383/0.9157, allocations: 99.17 kB / 0.9786 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001356/0.9158, allocations: 123.3 kB / 0.9787 GB, free: 4.289 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006777/0.9165, allocations: 0.5221 MB / 0.9792 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.9165, allocations: 0 / 0.9792 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.294e-06/0.9165, allocations: 0 / 0.9792 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.797e-06/0.9165, allocations: 0 / 0.9792 GB, free: 3.949 MB / 0.7325 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.00156/0.9181, allocations: 0.8219 MB / 0.98 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.9181, allocations: 9.438 kB / 0.98 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.9183, allocations: 65.77 kB / 0.9801 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007191/0.919, allocations: 426.5 kB / 0.9805 GB, free: 2.859 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.942e-05/0.919, allocations: 28.19 kB / 0.9805 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.719e-05/0.9191, allocations: 38.5 kB / 0.9806 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007008/0.9198, allocations: 312.7 kB / 0.9809 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.9198, allocations: 0 / 0.9809 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.128e-05/0.9199, allocations: 11 kB / 0.9809 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.9199, allocations: 7.594 kB / 0.9809 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006748/0.9206, allocations: 283.9 kB / 0.9812 GB, free: 2.52 MB / 0.7325 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.002358/0.9229, allocations: 1.353 MB / 0.9825 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006995/0.9236, allocations: 297.2 kB / 0.9828 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00047/0.9241, allocations: 0.4894 MB / 0.9833 GB, free: 0.6445 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.813e-05/0.9242, allocations: 36.78 kB / 0.9833 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=25): time 1.553e-06/0.9242, allocations: 0 / 0.9833 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of matching and sorting (n=25): time 0.001817/0.926, allocations: 0.5843 MB / 0.9839 GB, free: 276 kB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.885e-05/0.9261, allocations: 58 kB / 0.9839 GB, free: 208 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007274/0.9268, allocations: 465.4 kB / 0.9844 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.626e-05/0.9269, allocations: 31.86 kB / 0.9844 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002484/0.9271, allocations: 247.5 kB / 0.9846 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 8.828e-05/0.9272, allocations: 81.25 kB / 0.9847 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.079e-05/0.9273, allocations: 9.219 kB / 0.9847 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002373/0.9275, allocations: 361.7 kB / 0.9851 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003724/0.9279, allocations: 125.2 kB / 0.9852 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004189/0.9283, allocations: 183.9 kB / 0.9853 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003507/0.9287, allocations: 149.2 kB / 0.9855 GB, free: 14.92 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.9287, allocations: 0 / 0.9855 GB, free: 14.92 MB / 0.7481 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001004/0.9297, allocations: 418.9 kB / 0.9859 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001378/0.9298, allocations: 277.8 kB / 0.9862 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.9298, allocations: 0 / 0.9862 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003478/0.9302, allocations: 64.86 kB / 0.9862 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003399/0.9306, allocations: 75.89 kB / 0.9863 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004583/0.931, allocations: 0.564 MB / 0.9868 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005158/0.9315, allocations: 71.69 kB / 0.9869 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.167e-05/0.9316, allocations: 15.98 kB / 0.9869 GB, free: 13.4 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 8.446e-06/0.9316, allocations: 4 kB / 0.9869 GB, free: 13.39 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007405/0.9324, allocations: 319.6 kB / 0.9872 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-06/0.9324, allocations: 0 / 0.9872 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.419e-06/0.9324, allocations: 4 kB / 0.9872 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003697/0.9328, allocations: 79.89 kB / 0.9873 GB, free: 13 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.611e-05/0.9328, allocations: 11.94 kB / 0.9873 GB, free: 12.99 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004122/0.9332, allocations: 66.59 kB / 0.9874 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.221e-05/0.9333, allocations: 16 kB / 0.9874 GB, free: 12.91 MB / 0.7481 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002395/0.9335, allocations: 241.1 kB / 0.9876 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.836e-05/0.9336, allocations: 55.38 kB / 0.9877 GB, free: 12.61 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000971/0.9346, allocations: 451.8 kB / 0.9881 GB, free: 12.15 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.9346, allocations: 4 kB / 0.9881 GB, free: 12.15 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.9346, allocations: 0 / 0.9881 GB, free: 12.15 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.9346, allocations: 0 / 0.9881 GB, free: 12.15 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00163/0.9363, allocations: 0.9769 MB / 0.9891 GB, free: 11.1 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.9363, allocations: 0 / 0.9891 GB, free: 11.1 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002403/0.9365, allocations: 51.91 kB / 0.9891 GB, free: 11.05 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001691/0.9367, allocations: 40.83 kB / 0.9892 GB, free: 11.01 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.387e-05/0.9367, allocations: 8 kB / 0.9892 GB, free: 11 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004549/0.9372, allocations: 0.5719 MB / 0.9897 GB, free: 10.4 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.9372, allocations: 0 / 0.9897 GB, free: 10.4 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009329/0.9382, allocations: 0.5487 MB / 0.9903 GB, free: 9.797 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002249/0.9384, allocations: 160.3 kB / 0.9904 GB, free: 9.621 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.698e-05/0.9385, allocations: 8 kB / 0.9904 GB, free: 9.613 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000363/0.9388, allocations: 43.95 kB / 0.9905 GB, free: 9.57 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.882e-05/0.9389, allocations: 19.97 kB / 0.9905 GB, free: 9.551 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.493e-05/0.939, allocations: 15.95 kB / 0.9905 GB, free: 9.535 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003872/0.9394, allocations: 318.9 kB / 0.9908 GB, free: 9.227 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9394, allocations: 0 / 0.9908 GB, free: 9.227 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0009795/0.9404, allocations: 255.5 kB / 0.991 GB, free: 8.977 MB / 0.7481 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007166/0.9411, allocations: 247.4 kB / 0.9913 GB, free: 8.734 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001278/0.9424, allocations: 488.4 kB / 0.9918 GB, free: 8.258 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.9424, allocations: 0 / 0.9918 GB, free: 8.258 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0004197/0.9428, allocations: 177.5 kB / 0.9919 GB, free: 8.086 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001418/0.9442, allocations: 246.5 kB / 0.9922 GB, free: 7.844 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.9461, allocations: 0.9734 MB / 0.9931 GB, free: 6.832 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006194/0.9467, allocations: 0.8669 MB / 0.994 GB, free: 5.938 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0004057/0.9471, allocations: 124.3 kB / 0.9941 GB, free: 5.816 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.9472, allocations: 43.42 kB / 0.9941 GB, free: 5.773 MB / 0.7481 GB Notification: Performance of SimCode: time 2.41e-07/0.9472, allocations: 0 / 0.9941 GB, free: 5.773 MB / 0.7481 GB Notification: Performance of Templates: time 0.01885/0.9661, allocations: 9.584 MB / 1.003 GB, free: 12.36 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.makefile (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & ./Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_FixedResistances_Examples_CheckValve.csv","../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches