Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.BaseClasses.FlowModels.Validation.InverseFlowFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp|dpCalc|deltaDp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp|dpCalc|deltaDp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002209/0.002208, allocations: 195.1 kB / 16.14 MB, free: 6.645 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.484/1.484, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.939/2.939, allocations: 461.9 MB / 0.7342 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 70.77 kB / 0.8984 GB, free: 37.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3156, allocations: 157.4 MB / 1.052 GB, free: 8.824 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions): time 0.002082/0.3178, allocations: 1.361 MB / 1.053 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008918/0.3187, allocations: 0.619 MB / 1.054 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.297e-05/0.3187, allocations: 0 / 1.054 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.96e-05/0.3187, allocations: 3.938 kB / 1.054 GB, free: 6.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.678e-05/0.3188, allocations: 0 / 1.054 GB, free: 6.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003794/0.3192, allocations: 126.7 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.128e-05/0.3192, allocations: 15.94 kB / 1.054 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.461e-05/0.3192, allocations: 7.938 kB / 1.054 GB, free: 6.676 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.985e-05/0.3193, allocations: 11.92 kB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.121e-05/0.3193, allocations: 8 kB / 1.054 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.3193, allocations: 0 / 1.054 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004409/0.3198, allocations: 339.4 kB / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.031e-05/0.3198, allocations: 11.92 kB / 1.055 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.113e-05/0.3198, allocations: 7.938 kB / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002222/0.32, allocations: 140 kB / 1.055 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3201, allocations: 4 kB / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.02e-07/0.3201, allocations: 0 / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.975e-06/0.3201, allocations: 0 / 1.055 GB, free: 6.164 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003567/0.3204, allocations: 368.3 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.92e-05/0.3205, allocations: 8.031 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.003e-05/0.3205, allocations: 4.938 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.154e-05/0.3206, allocations: 168.3 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.3206, allocations: 4.375 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-06/0.3206, allocations: 4.375 kB / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.109e-05/0.3207, allocations: 46.19 kB / 1.055 GB, free: 5.48 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.3207, allocations: 4.188 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.3208, allocations: 3.938 kB / 1.055 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.3208, allocations: 0 / 1.055 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.076e-05/0.3208, allocations: 15.98 kB / 1.055 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002736/0.3211, allocations: 248.8 kB / 1.056 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000176/0.3213, allocations: 58.56 kB / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.065e-05/0.3213, allocations: 16.86 kB / 1.056 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.3214, allocations: 3.984 kB / 1.056 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.3214, allocations: 34.56 kB / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.192e-06/0.3214, allocations: 0 / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0001542/0.3215, allocations: 61.62 kB / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.731e-05/0.3216, allocations: 51.41 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.789e-05/0.3216, allocations: 101.9 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.3217, allocations: 25.7 kB / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.429e-05/0.3217, allocations: 80.14 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.235e-05/0.3217, allocations: 19.73 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.941e-05/0.3218, allocations: 17.72 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.472e-05/0.3218, allocations: 314.8 kB / 1.056 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.037e-05/0.3219, allocations: 7.984 kB / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.053e-05/0.3219, allocations: 21.72 kB / 1.056 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.736e-05/0.322, allocations: 34.03 kB / 1.056 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.322, allocations: 0 / 1.056 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.772e-05/0.3221, allocations: 65.52 kB / 1.056 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.3221, allocations: 8 kB / 1.056 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-06/0.3221, allocations: 0 / 1.056 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.3221, allocations: 3.984 kB / 1.056 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.794e-05/0.3222, allocations: 8 kB / 1.056 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.3222, allocations: 7.875 kB / 1.056 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.299e-05/0.3222, allocations: 4.031 kB / 1.056 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-06/0.3222, allocations: 4 kB / 1.056 GB, free: 4.141 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (5): * Single equations (assignments): 5 * 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 6.092e-05/0.3223, allocations: 113.8 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.3223, allocations: 0 / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001191/0.3224, allocations: 61.17 kB / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.3224, allocations: 0 / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3224, allocations: 4 kB / 1.057 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.3224, allocations: 0 / 1.057 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.3226, allocations: 161.6 kB / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3226, allocations: 0 / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.705e-05/0.3226, allocations: 11.94 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.3226, allocations: 0 / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-06/0.3227, allocations: 0 / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.3227, allocations: 3.938 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3227, allocations: 0 / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001073/0.3228, allocations: 151.4 kB / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.765e-05/0.3228, allocations: 85.09 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.175e-05/0.3228, allocations: 4 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.176e-05/0.3229, allocations: 4 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.14e-05/0.3229, allocations: 128 / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.3229, allocations: 4 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.93e-05/0.3229, allocations: 79.28 kB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3229, allocations: 0 / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002415/0.3232, allocations: 27.92 kB / 1.057 GB, free: 3.344 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001578/0.3234, allocations: 127.2 kB / 1.057 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 7.891e-05/0.3234, allocations: 23.98 kB / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.3235, allocations: 0 / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.867e-05/0.3235, allocations: 8 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002017/0.3237, allocations: 10 kB / 1.057 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002491/0.3239, allocations: 138.8 kB / 1.057 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001968/0.3241, allocations: 0.681 MB / 1.058 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.297e-05/0.3242, allocations: 7.984 kB / 1.058 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.646e-05/0.3242, allocations: 7.438 kB / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.3242, allocations: 0 / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of Templates: time 0.002202/0.3264, allocations: 0.4917 MB / 1.059 GB, free: 1.797 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches