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.00138/0.00138, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001686/0.001687, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.411/1.411, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.305/2.305, allocations: 390.2 MB / 0.6646 GB, free: 400 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 63.89 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7149/0.7161, allocations: 140.4 MB / 0.9496 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example2): time 0.02949/0.7457, allocations: 29.63 MB / 0.9785 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01526/0.761, allocations: 9.912 MB / 0.9882 GB, free: 9.32 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002362/0.7634, allocations: 46.03 kB / 0.9882 GB, free: 9.305 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002212/0.7656, allocations: 0.6767 MB / 0.9889 GB, free: 8.773 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.004626/0.7703, allocations: 1.469 MB / 0.9903 GB, free: 7.609 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003711/0.774, allocations: 1.389 MB / 0.9917 GB, free: 6.609 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.005098/0.7791, allocations: 3.82 MB / 0.9954 GB, free: 2.805 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002065/0.7812, allocations: 1.368 MB / 0.9967 GB, free: 1.406 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003338/0.7846, allocations: 1.485 MB / 0.9982 GB, free: 15.92 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001436/0.786, allocations: 1.042 MB / 0.9992 GB, free: 14.87 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0001957/0.7862, allocations: 120 kB / 0.9993 GB, free: 14.75 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002962/0.7892, allocations: 1.123 MB / 1 GB, free: 13.63 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0004205/0.7896, allocations: 394.7 kB / 1.001 GB, free: 13.24 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0009272/0.7906, allocations: 0.789 MB / 1.002 GB, free: 12.45 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.003623/0.7942, allocations: 2.415 MB / 1.004 GB, free: 10.03 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 1.089e-05/0.7942, allocations: 0 / 1.004 GB, free: 10.03 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.435e-06/0.7942, allocations: 3.938 kB / 1.004 GB, free: 10.02 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 2.394e-05/0.7943, allocations: 0 / 1.004 GB, free: 10.02 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.003196/0.7975, allocations: 1.935 MB / 1.006 GB, free: 8.027 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.7975, allocations: 8.031 kB / 1.006 GB, free: 8.02 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001715/0.7992, allocations: 338.8 kB / 1.006 GB, free: 7.688 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002343/0.8016, allocations: 1.328 MB / 1.007 GB, free: 6.305 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.969e-05/0.8017, allocations: 62 kB / 1.008 GB, free: 6.246 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/0.8018, allocations: 88 kB / 1.008 GB, free: 6.16 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001814/0.8036, allocations: 1.004 MB / 1.009 GB, free: 5.098 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.8037, allocations: 3.938 kB / 1.009 GB, free: 5.094 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.81e-05/0.8037, allocations: 36 kB / 1.009 GB, free: 5.059 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.742e-05/0.8038, allocations: 16 kB / 1.009 GB, free: 5.043 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001643/0.8054, allocations: 0.7533 MB / 1.009 GB, free: 4.289 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.005538/0.811, allocations: 4.91 MB / 1.014 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.8123, allocations: 0.6017 MB / 1.015 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007219/0.8131, allocations: 338.9 kB / 1.015 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002108/0.8152, allocations: 1.603 MB / 1.017 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007687/0.816, allocations: 359 kB / 1.017 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002201/0.8162, allocations: 51.38 kB / 1.017 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=43): time 2.324e-06/0.8162, allocations: 0 / 1.017 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of matching and sorting (n=43): time 0.003308/0.8195, allocations: 1.231 MB / 1.018 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/0.8196, allocations: 55.41 kB / 1.018 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001575/0.8212, allocations: 1.29 MB / 1.02 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.709e-05/0.8212, allocations: 41.7 kB / 1.02 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005594/0.8218, allocations: 0.6411 MB / 1.02 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001353/0.822, allocations: 157.9 kB / 1.02 GB, free: 8.453 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002296/0.8222, allocations: 154.1 kB / 1.021 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001231/0.8223, allocations: 337.9 kB / 1.021 GB, free: 7.961 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006581/0.823, allocations: 291.6 kB / 1.021 GB, free: 7.672 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009186/0.8239, allocations: 0.6138 MB / 1.022 GB, free: 6.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001423/0.8254, allocations: 0.8449 MB / 1.023 GB, free: 5.953 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.8254, allocations: 0 / 1.023 GB, free: 5.953 MB / 0.7794 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002299/0.8277, allocations: 1.145 MB / 1.024 GB, free: 4.793 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.388e-05/0.8277, allocations: 35.58 kB / 1.024 GB, free: 4.754 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.8278, allocations: 8 kB / 1.024 GB, free: 4.746 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006516/0.8284, allocations: 180.7 kB / 1.024 GB, free: 4.566 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005813/0.829, allocations: 155.8 kB / 1.024 GB, free: 4.414 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006815/0.8297, allocations: 0.7629 MB / 1.025 GB, free: 3.625 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007217/0.8304, allocations: 60.61 kB / 1.025 GB, free: 3.566 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-05/0.8305, allocations: 47.92 kB / 1.025 GB, free: 3.52 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000986/0.8315, allocations: 0.5697 MB / 1.025 GB, free: 2.949 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007232/0.8322, allocations: 0.5709 MB / 1.026 GB, free: 2.23 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001201/0.8335, allocations: 0.7941 MB / 1.027 GB, free: 1.32 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.136e-06/0.8335, allocations: 0 / 1.027 GB, free: 1.32 MB / 0.7794 GB Notification: Performance of matching and sorting (n=84) (initialization_lambda0): time 0.00193/0.8354, allocations: 1.108 MB / 1.028 GB, free: 184 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.33e-05/0.8354, allocations: 33.7 kB / 1.028 GB, free: 144 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.8355, allocations: 12.11 kB / 1.028 GB, free: 132 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001993/0.8357, allocations: 117.3 kB / 1.028 GB, free: 12 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005293/0.8362, allocations: 139.8 kB / 1.028 GB, free: 15.88 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002108/0.8383, allocations: 2.355 MB / 1.03 GB, free: 13.37 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006929/0.839, allocations: 52.73 kB / 1.03 GB, free: 13.32 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.922e-05/0.8391, allocations: 43.92 kB / 1.031 GB, free: 13.28 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (71): * Single equations (assignments): 68 * 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.0002741/0.8394, allocations: 228 kB / 1.031 GB, free: 13.05 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/0.8395, allocations: 126.4 kB / 1.031 GB, free: 12.92 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002017/0.8416, allocations: 0.9157 MB / 1.032 GB, free: 11.99 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.8416, allocations: 8 kB / 1.032 GB, free: 11.98 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.8416, allocations: 0 / 1.032 GB, free: 11.98 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001494/0.8431, allocations: 0.9232 MB / 1.033 GB, free: 10.99 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003034/0.8461, allocations: 1.853 MB / 1.034 GB, free: 9.062 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/0.8462, allocations: 8.031 kB / 1.034 GB, free: 9.055 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004473/0.8466, allocations: 79.88 kB / 1.035 GB, free: 8.977 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002786/0.8469, allocations: 120.8 kB / 1.035 GB, free: 8.855 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.901e-05/0.847, allocations: 11.98 kB / 1.035 GB, free: 8.844 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000606/0.8476, allocations: 0.7628 MB / 1.035 GB, free: 8.055 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.8476, allocations: 128 / 1.035 GB, free: 8.055 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00232/0.8499, allocations: 1.252 MB / 1.037 GB, free: 6.773 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003748/0.8503, allocations: 259.4 kB / 1.037 GB, free: 6.5 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/0.8504, allocations: 12 kB / 1.037 GB, free: 6.488 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005577/0.851, allocations: 35.95 kB / 1.037 GB, free: 6.453 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.8511, allocations: 40.38 kB / 1.037 GB, free: 6.41 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.199e-05/0.8512, allocations: 28.05 kB / 1.037 GB, free: 6.383 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001131/0.8523, allocations: 0.8857 MB / 1.038 GB, free: 5.496 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8524, allocations: 0 / 1.038 GB, free: 5.496 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.00185/0.8542, allocations: 0.6472 MB / 1.038 GB, free: 4.848 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 (38): * Single equations (assignments): 32 * 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.0008455/0.8551, allocations: 371 kB / 1.039 GB, free: 4.48 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.003158/0.8582, allocations: 1.433 MB / 1.04 GB, free: 3.012 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.8583, allocations: 0 / 1.04 GB, free: 3.012 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0008358/0.8591, allocations: 363.2 kB / 1.041 GB, free: 2.66 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002728/0.8618, allocations: 0.5999 MB / 1.041 GB, free: 2.074 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004678/0.8665, allocations: 2.276 MB / 1.043 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001019/0.8676, allocations: 1.267 MB / 1.045 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.001547/0.8691, allocations: 322.5 kB / 1.045 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002467/0.8694, allocations: 99.41 kB / 1.045 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of SimCode: time 9.92e-07/0.8694, allocations: 0 / 1.045 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of Templates: time 0.04313/0.9125, allocations: 25.76 MB / 1.07 GB, free: 4.637 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