Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.866/2.866, allocations: 390.3 MB / 402.8 MB, free: 6.688 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 184.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.641/1.641, allocations: 221.3 MB / 0.7915 GB, free: 5.391 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 91.94 kB / 0.9318 GB, free: 5.699 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.221e-05/3.252e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3463/0.3463, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.214/1.56, allocations: 391.4 MB / 1.601 GB, free: 10.69 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/1.561, allocations: 85.58 kB / 1.601 GB, free: 10.64 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 1.272/2.833, allocations: 256.7 MB / 1.852 GB, free: 310.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.522e-06/2.833, allocations: 0 / 1.852 GB, free: 310.7 MB / 1.151 GB Notification: Performance of Transformations before backend: time 6.543e-05/2.833, allocations: 19.98 kB / 1.852 GB, free: 310.7 MB / 1.151 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.001673/2.835, allocations: 0.8222 MB / 1.853 GB, free: 309.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/2.835, allocations: 12.03 kB / 1.853 GB, free: 309.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002097/2.835, allocations: 71.2 kB / 1.853 GB, free: 309.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008744/2.836, allocations: 463.6 kB / 1.853 GB, free: 309.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.013e-05/2.836, allocations: 32.78 kB / 1.853 GB, free: 309.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.621e-05/2.836, allocations: 36 kB / 1.853 GB, free: 309.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004993/2.836, allocations: 271.7 kB / 1.853 GB, free: 308.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/2.836, allocations: 0 / 1.853 GB, free: 308.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/2.836, allocations: 8 kB / 1.853 GB, free: 308.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/2.837, allocations: 11.94 kB / 1.853 GB, free: 308.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003363/2.837, allocations: 203 kB / 1.854 GB, free: 308.7 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.002054/2.839, allocations: 1.33 MB / 1.855 GB, free: 307.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004589/2.839, allocations: 238.5 kB / 1.855 GB, free: 307 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/2.84, allocations: 96.84 kB / 1.855 GB, free: 306.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003226/2.84, allocations: 0.4986 MB / 1.856 GB, free: 306.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/2.84, allocations: 46.55 kB / 1.856 GB, free: 306.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=25): time 2.184e-06/2.84, allocations: 0 / 1.856 GB, free: 306.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=25): time 0.0006174/2.841, allocations: 268.4 kB / 1.856 GB, free: 306 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.314e-05/2.841, allocations: 55.41 kB / 1.856 GB, free: 305.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00039/2.841, allocations: 400 kB / 1.856 GB, free: 305.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.887e-05/2.841, allocations: 37.7 kB / 1.856 GB, free: 305.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/2.841, allocations: 244.7 kB / 1.857 GB, free: 305.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 5.127e-05/2.841, allocations: 86.73 kB / 1.857 GB, free: 305.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.534e-05/2.841, allocations: 8.219 kB / 1.857 GB, free: 305.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.126e-05/2.841, allocations: 358.8 kB / 1.857 GB, free: 304.8 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/2.841, allocations: 88.55 kB / 1.857 GB, free: 304.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001927/2.842, allocations: 178.2 kB / 1.857 GB, free: 304.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001832/2.842, allocations: 117.8 kB / 1.857 GB, free: 304.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/2.842, allocations: 0 / 1.857 GB, free: 304.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006355/2.842, allocations: 337.6 kB / 1.858 GB, free: 304 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001104/2.843, allocations: 275 kB / 1.858 GB, free: 303.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/2.843, allocations: 0 / 1.858 GB, free: 303.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002765/2.843, allocations: 44.77 kB / 1.858 GB, free: 303.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003352/2.843, allocations: 79.89 kB / 1.858 GB, free: 303.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004149/2.844, allocations: 0.5679 MB / 1.859 GB, free: 303 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006233/2.844, allocations: 67.73 kB / 1.859 GB, free: 302.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.114e-05/2.844, allocations: 19.98 kB / 1.859 GB, free: 302.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/2.844, allocations: 5.406 kB / 1.859 GB, free: 302.9 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004335/2.845, allocations: 241.8 kB / 1.859 GB, free: 302.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-06/2.845, allocations: 0 / 1.859 GB, free: 302.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.199e-06/2.845, allocations: 4 kB / 1.859 GB, free: 302.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00037/2.845, allocations: 87.88 kB / 1.859 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/2.845, allocations: 11.94 kB / 1.859 GB, free: 302.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005318/2.846, allocations: 63.69 kB / 1.859 GB, free: 302.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.798e-05/2.846, allocations: 16 kB / 1.859 GB, free: 302.5 MB / 1.151 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 () * 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.0001423/2.846, allocations: 128.9 kB / 1.859 GB, free: 302.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.826e-05/2.846, allocations: 47.44 kB / 1.859 GB, free: 302.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006748/2.847, allocations: 355.7 kB / 1.86 GB, free: 302 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/2.847, allocations: 8 kB / 1.86 GB, free: 302 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/2.847, allocations: 3.938 kB / 1.86 GB, free: 302 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/2.847, allocations: 0 / 1.86 GB, free: 302 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001285/2.848, allocations: 0.8751 MB / 1.861 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.756e-06/2.848, allocations: 7.938 kB / 1.861 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002572/2.848, allocations: 51.95 kB / 1.861 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001698/2.849, allocations: 40.78 kB / 1.861 GB, free: 300.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.488e-05/2.849, allocations: 8.109 kB / 1.861 GB, free: 300.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002769/2.849, allocations: 0.564 MB / 1.861 GB, free: 300.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/2.849, allocations: 0 / 1.861 GB, free: 300.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004874/2.849, allocations: 491.9 kB / 1.862 GB, free: 299.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002274/2.85, allocations: 160.3 kB / 1.862 GB, free: 299.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.012e-05/2.85, allocations: 4 kB / 1.862 GB, free: 299.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003876/2.85, allocations: 51.95 kB / 1.862 GB, free: 299.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.146e-05/2.85, allocations: 20.16 kB / 1.862 GB, free: 299.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.396e-05/2.85, allocations: 15.94 kB / 1.862 GB, free: 299.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0003101/2.851, allocations: 317.6 kB / 1.862 GB, free: 299.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.2e-07/2.851, allocations: 0 / 1.862 GB, free: 299.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0009556/2.852, allocations: 287.6 kB / 1.863 GB, free: 298.9 MB / 1.151 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 () * 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.0009372/2.853, allocations: 349.4 kB / 1.863 GB, free: 298.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0008286/2.853, allocations: 396.2 kB / 1.863 GB, free: 298.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/2.853, allocations: 4 kB / 1.863 GB, free: 298.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0002559/2.854, allocations: 143.6 kB / 1.863 GB, free: 298.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/2.855, allocations: 253.9 kB / 1.864 GB, free: 297.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/2.856, allocations: 0.5775 MB / 1.864 GB, free: 297.2 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/2.856, allocations: 0.8678 MB / 1.865 GB, free: 296.3 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0005842/2.857, allocations: 140.6 kB / 1.865 GB, free: 296.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.21e-05/2.857, allocations: 35.38 kB / 1.865 GB, free: 296.1 MB / 1.151 GB Notification: Performance of SimCode: time 6.81e-07/2.857, allocations: 0 / 1.865 GB, free: 296.1 MB / 1.151 GB Notification: Performance of Templates: time 0.01875/2.876, allocations: 12.22 MB / 1.877 GB, free: 284 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.makefile (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & ./Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Examples_CheckValve.csv","../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches