Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.HeatPumps.BaseClasses.Validation.EquationFitReversible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|equFit.QLoa_flow|equFit.QSou_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible") translateModel(Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|equFit.QLoa_flow|equFit.QSou_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 110.5 kB / 16.37 MB, free: 6.016 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.001941/0.001942, allocations: 195.1 kB / 17.31 MB, free: 5.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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.476/2.476, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 61 kB / 0.8773 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3146, allocations: 153 MB / 1.027 GB, free: 2.082 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible): time 0.003599/0.3182, allocations: 2.395 MB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001887/0.3201, allocations: 1.398 MB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001175/0.3202, allocations: 4 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005346/0.3208, allocations: 206.9 kB / 1.031 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001242/0.3209, allocations: 75.28 kB / 1.031 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002994/0.3212, allocations: 123.7 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003264/0.3215, allocations: 322.8 kB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.3217, allocations: 48.72 kB / 1.031 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001774/0.3219, allocations: 131.5 kB / 1.031 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002613/0.3221, allocations: 191.3 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.962e-05/0.3222, allocations: 36 kB / 1.032 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001416/0.3223, allocations: 67.97 kB / 1.032 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.3225, allocations: 119.7 kB / 1.032 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.3226, allocations: 175 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004521/0.3231, allocations: 486.4 kB / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.3231, allocations: 4 kB / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.036e-06/0.3231, allocations: 0 / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.113e-05/0.3231, allocations: 3.938 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001191/0.3243, allocations: 0.7121 MB / 1.033 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.3244, allocations: 8.031 kB / 1.033 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007797/0.3252, allocations: 136.3 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004557/0.3256, allocations: 354.2 kB / 1.034 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.3258, allocations: 92.17 kB / 1.034 GB, free: 10.92 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.138e-05/0.3258, allocations: 12.38 kB / 1.034 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007029/0.3265, allocations: 300.8 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.3265, allocations: 0 / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.811e-05/0.3266, allocations: 3.984 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.3266, allocations: 4 kB / 1.034 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.3276, allocations: 416.4 kB / 1.034 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.3292, allocations: 0.8552 MB / 1.035 GB, free: 9.293 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000606/0.3298, allocations: 270.4 kB / 1.035 GB, free: 9.02 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004884/0.3303, allocations: 216.7 kB / 1.036 GB, free: 8.805 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.583e-05/0.3304, allocations: 7.984 kB / 1.036 GB, free: 8.797 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.004e-05/0.3304, allocations: 30.56 kB / 1.036 GB, free: 8.758 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=18): time 1.242e-06/0.3304, allocations: 0 / 1.036 GB, free: 8.758 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18): time 0.001625/0.332, allocations: 0.6495 MB / 1.036 GB, free: 8.102 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.978e-05/0.3321, allocations: 55.34 kB / 1.036 GB, free: 8.035 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004274/0.3325, allocations: 429.5 kB / 1.037 GB, free: 7.609 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.378e-05/0.3326, allocations: 33.64 kB / 1.037 GB, free: 7.57 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.3327, allocations: 180 kB / 1.037 GB, free: 7.391 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.089e-05/0.3328, allocations: 67.08 kB / 1.037 GB, free: 7.324 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.3329, allocations: 37.7 kB / 1.037 GB, free: 7.281 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.3331, allocations: 346.8 kB / 1.037 GB, free: 6.934 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004918/0.3336, allocations: 195.8 kB / 1.038 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005115/0.3341, allocations: 233.3 kB / 1.038 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008949/0.335, allocations: 380.4 kB / 1.038 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.335, allocations: 0 / 1.038 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001084/0.3361, allocations: 459.3 kB / 1.039 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.3361, allocations: 4 kB / 1.039 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-06/0.3361, allocations: 0 / 1.039 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.3361, allocations: 3.984 kB / 1.039 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004307/0.3366, allocations: 63.88 kB / 1.039 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.575e-06/0.3366, allocations: 3.938 kB / 1.039 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/0.3369, allocations: 39.84 kB / 1.039 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.3369, allocations: 12 kB / 1.039 GB, free: 5.551 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001814/0.3371, allocations: 161.8 kB / 1.039 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.865e-05/0.3372, allocations: 35.53 kB / 1.039 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.632e-05/0.3373, allocations: 39.59 kB / 1.039 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3373, allocations: 0 / 1.039 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.3373, allocations: 7.938 kB / 1.039 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.3373, allocations: 3.984 kB / 1.039 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000508/0.3378, allocations: 466.9 kB / 1.039 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3378, allocations: 0 / 1.039 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004135/0.3383, allocations: 71.86 kB / 1.039 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.3383, allocations: 0 / 1.039 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.048e-05/0.3383, allocations: 7.984 kB / 1.039 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.3383, allocations: 0 / 1.039 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.3383, allocations: 7.938 kB / 1.039 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.3394, allocations: 0.548 MB / 1.04 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.3396, allocations: 120.6 kB / 1.04 GB, free: 4 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.814e-05/0.3396, allocations: 4 kB / 1.04 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003216/0.34, allocations: 31.89 kB / 1.04 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.3401, allocations: 35.91 kB / 1.04 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.055e-05/0.3401, allocations: 11.92 kB / 1.04 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003216/0.3404, allocations: 307.1 kB / 1.04 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.91e-07/0.3405, allocations: 0 / 1.04 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003166/0.3408, allocations: 60 kB / 1.041 GB, free: 3.559 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001285/0.3409, allocations: 103.2 kB / 1.041 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001117/0.342, allocations: 439.5 kB / 1.041 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.342, allocations: 0 / 1.041 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0005479/0.3426, allocations: 235.7 kB / 1.041 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.343, allocations: 37.55 kB / 1.041 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001316/0.3443, allocations: 0.6771 MB / 1.042 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.3447, allocations: 0.787 MB / 1.043 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000253/0.345, allocations: 66.3 kB / 1.043 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.3451, allocations: 27.36 kB / 1.043 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of SimCode: time 4.51e-07/0.3451, allocations: 0 / 1.043 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of Templates: time 0.008366/0.3535, allocations: 4.255 MB / 1.047 GB, free: 12.95 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_BaseClasses_Validation_EquationFitReversible.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches