Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.Example2.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Examples.Performance.Example2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_dp.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example2") translateModel(Buildings.Fluid.Examples.Performance.Example2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_dp.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.008264/0.008264, allocations: 171.3 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.33/2.33, allocations: 390.9 MB / 0.6663 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003695/0.0003695, allocations: 12 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6442/0.6446, allocations: 142.4 MB / 0.955 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example2): time 0.02638/0.671, allocations: 28.72 MB / 0.9831 GB, free: 0.6719 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01382/0.6849, allocations: 9.865 MB / 0.9927 GB, free: 8.668 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001363/0.6863, allocations: 39.75 kB / 0.9927 GB, free: 8.629 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001725/0.688, allocations: 0.6006 MB / 0.9933 GB, free: 8.027 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.00336/0.6914, allocations: 1.353 MB / 0.9947 GB, free: 6.672 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003158/0.6946, allocations: 1.236 MB / 0.9959 GB, free: 5.441 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.005279/0.6998, allocations: 5.019 MB / 1.001 GB, free: 424 kB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001506/0.7014, allocations: 1.122 MB / 1.002 GB, free: 15.26 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00213/0.7035, allocations: 1.253 MB / 1.003 GB, free: 14 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001177/0.7047, allocations: 1.019 MB / 1.004 GB, free: 12.98 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.7048, allocations: 48 kB / 1.004 GB, free: 12.93 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00209/0.7069, allocations: 1.061 MB / 1.005 GB, free: 11.87 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0003236/0.7073, allocations: 322.7 kB / 1.005 GB, free: 11.55 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0006902/0.708, allocations: 0.7243 MB / 1.006 GB, free: 10.82 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.002396/0.7104, allocations: 2.336 MB / 1.008 GB, free: 8.477 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.7104, allocations: 0 / 1.008 GB, free: 8.477 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.643e-06/0.7104, allocations: 4 kB / 1.008 GB, free: 8.473 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.611e-05/0.7104, allocations: 0 / 1.008 GB, free: 8.473 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002645/0.7131, allocations: 1.671 MB / 1.01 GB, free: 6.746 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.7131, allocations: 12.03 kB / 1.01 GB, free: 6.734 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001632/0.7148, allocations: 346.8 kB / 1.01 GB, free: 6.395 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002268/0.717, allocations: 1.351 MB / 1.012 GB, free: 4.988 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.874e-05/0.7171, allocations: 69.88 kB / 1.012 GB, free: 4.922 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001358/0.7173, allocations: 88 kB / 1.012 GB, free: 4.836 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/0.719, allocations: 1.008 MB / 1.013 GB, free: 3.773 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.473e-05/0.719, allocations: 3.938 kB / 1.013 GB, free: 3.77 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.322e-05/0.7191, allocations: 32 kB / 1.013 GB, free: 3.738 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.7191, allocations: 20 kB / 1.013 GB, free: 3.719 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/0.7207, allocations: 0.7689 MB / 1.014 GB, free: 2.949 MB / 0.7637 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.005365/0.7261, allocations: 5.008 MB / 1.019 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001354/0.7275, allocations: 0.6207 MB / 1.019 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007179/0.7282, allocations: 353.1 kB / 1.02 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002064/0.7303, allocations: 1.603 MB / 1.021 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007568/0.731, allocations: 359 kB / 1.021 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003266/0.7314, allocations: 99.41 kB / 1.022 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=44): time 2.374e-06/0.7314, allocations: 0 / 1.022 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of matching and sorting (n=44): time 0.003268/0.7347, allocations: 1.243 MB / 1.023 GB, free: 9.105 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/0.7347, allocations: 55.41 kB / 1.023 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001446/0.7362, allocations: 1.267 MB / 1.024 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.6e-05/0.7362, allocations: 41.64 kB / 1.024 GB, free: 7.711 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005053/0.7367, allocations: 0.6528 MB / 1.025 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.7369, allocations: 149.9 kB / 1.025 GB, free: 6.902 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.365e-05/0.737, allocations: 69.67 kB / 1.025 GB, free: 6.828 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.7371, allocations: 334 kB / 1.025 GB, free: 6.496 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006443/0.7377, allocations: 281.8 kB / 1.026 GB, free: 6.219 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008365/0.7386, allocations: 0.6199 MB / 1.026 GB, free: 5.449 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.74, allocations: 0.8612 MB / 1.027 GB, free: 4.473 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.74, allocations: 0 / 1.027 GB, free: 4.473 MB / 0.7794 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002287/0.7423, allocations: 1.129 MB / 1.028 GB, free: 3.328 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001992/0.7425, allocations: 347.5 kB / 1.028 GB, free: 2.871 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.7426, allocations: 8 kB / 1.028 GB, free: 2.863 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006181/0.7432, allocations: 200.6 kB / 1.029 GB, free: 2.664 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005849/0.7438, allocations: 155.7 kB / 1.029 GB, free: 2.512 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006887/0.7445, allocations: 0.7552 MB / 1.029 GB, free: 1.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008578/0.7454, allocations: 88.5 kB / 1.03 GB, free: 1.641 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.408e-05/0.7454, allocations: 47.92 kB / 1.03 GB, free: 1.594 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.005e-06/0.7455, allocations: 4 kB / 1.03 GB, free: 1.59 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001693/0.7472, allocations: 0.9673 MB / 1.031 GB, free: 0.5938 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.7472, allocations: 8.125 kB / 1.031 GB, free: 0.5859 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001859/0.7474, allocations: 113.3 kB / 1.031 GB, free: 484 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005117/0.7479, allocations: 147.7 kB / 1.031 GB, free: 336 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001996/0.7499, allocations: 2.161 MB / 1.033 GB, free: 14.02 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007526/0.7507, allocations: 84.59 kB / 1.033 GB, free: 13.94 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.833e-05/0.7507, allocations: 32 kB / 1.033 GB, free: 13.91 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,from_dp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 69 * Array equations: 1 * Algorithm blocks: 1 * 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 {(5,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0006568/0.7514, allocations: 478.7 kB / 1.033 GB, free: 13.43 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.7515, allocations: 130.3 kB / 1.034 GB, free: 13.3 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001931/0.7535, allocations: 0.9157 MB / 1.035 GB, free: 12.37 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.7535, allocations: 7.984 kB / 1.035 GB, free: 12.36 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.7535, allocations: 0 / 1.035 GB, free: 12.36 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001488/0.755, allocations: 0.9116 MB / 1.035 GB, free: 11.38 MB / 0.795 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 postOpt removeSimpleEquations (simulation): time 0.003037/0.7581, allocations: 1.92 MB / 1.037 GB, free: 9.375 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.7581, allocations: 0 / 1.037 GB, free: 9.375 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004421/0.7585, allocations: 91.94 kB / 1.037 GB, free: 9.285 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002708/0.7588, allocations: 120.8 kB / 1.037 GB, free: 9.164 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.859e-05/0.7589, allocations: 15.98 kB / 1.037 GB, free: 9.148 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005889/0.7595, allocations: 0.7602 MB / 1.038 GB, free: 8.363 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.7595, allocations: 0 / 1.038 GB, free: 8.363 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002307/0.7618, allocations: 1.26 MB / 1.039 GB, free: 7.074 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000455/0.7622, allocations: 267.4 kB / 1.04 GB, free: 6.793 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001306/0.7624, allocations: 11.94 kB / 1.04 GB, free: 6.781 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006873/0.7631, allocations: 83.83 kB / 1.04 GB, free: 6.699 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.698e-05/0.7632, allocations: 36.39 kB / 1.04 GB, free: 6.664 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.972e-05/0.7632, allocations: 19.98 kB / 1.04 GB, free: 6.645 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001136/0.7644, allocations: 0.8741 MB / 1.041 GB, free: 5.77 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.3e-07/0.7644, allocations: 3.938 kB / 1.041 GB, free: 5.766 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.001803/0.7662, allocations: 0.6473 MB / 1.041 GB, free: 5.117 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (pump_dp.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(5,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008271/0.767, allocations: 355.5 kB / 1.042 GB, free: 4.77 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002862/0.7699, allocations: 1.393 MB / 1.043 GB, free: 3.34 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.7699, allocations: 7.938 kB / 1.043 GB, free: 3.332 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000804/0.7707, allocations: 359.4 kB / 1.043 GB, free: 2.984 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002714/0.7735, allocations: 0.5746 MB / 1.044 GB, free: 2.422 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003868/0.7773, allocations: 2.739 MB / 1.047 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007697/0.7781, allocations: 1.275 MB / 1.048 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.00116/0.7793, allocations: 310.6 kB / 1.048 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/0.7795, allocations: 103.4 kB / 1.048 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of SimCode: time 6.51e-07/0.7795, allocations: 0 / 1.048 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of Templates: time 0.04093/0.8205, allocations: 24.46 MB / 1.072 GB, free: 5.781 MB / 0.8262 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.Example2.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.Example2.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.Example2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.Example2.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.Example2.sim & ./Buildings_9_Buildings.Fluid.Examples.Performance.Example2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.Performance.Example2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.Example2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_Example2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Examples.Performance.Example2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches