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.005634/0.005634, allocations: 101.2 kB / 15.73 MB, free: 5.523 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.001151/0.001151, allocations: 194.9 kB / 16.67 MB, free: 5.461 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.502/2.502, allocations: 461.9 MB / 0.7347 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 67.89 kB / 1.054 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9297/0.931, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions): time 0.002191/0.9333, allocations: 1.294 MB / 1.209 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009302/0.9342, allocations: 0.5877 MB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.897e-05/0.9342, allocations: 0 / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.801e-05/0.9343, allocations: 7.922 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 2.808e-05/0.9343, allocations: 0 / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004424/0.9348, allocations: 147.4 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 5.017e-05/0.9348, allocations: 31.8 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 3.461e-05/0.9349, allocations: 0 / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 1.852e-05/0.9349, allocations: 11.94 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.409e-05/0.9349, allocations: 11.92 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 9.578e-06/0.9349, allocations: 0 / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004433/0.9354, allocations: 343.4 kB / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.187e-06/0.9354, allocations: 3.938 kB / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.088e-05/0.9354, allocations: 11.94 kB / 1.21 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002129/0.9357, allocations: 139.6 kB / 1.21 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.9357, allocations: 0 / 1.21 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.855e-06/0.9357, allocations: 0 / 1.21 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 3.787e-06/0.9357, allocations: 7.938 kB / 1.21 GB, free: 11.05 MB / 0.9356 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.0003439/0.936, allocations: 357.3 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 2.875e-05/0.9361, allocations: 8.031 kB / 1.211 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.827e-05/0.9361, allocations: 4.844 kB / 1.211 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001045/0.9362, allocations: 172.3 kB / 1.211 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.9362, allocations: 4.359 kB / 1.211 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.655e-06/0.9362, allocations: 384 / 1.211 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.074e-05/0.9363, allocations: 42.27 kB / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.9363, allocations: 7.938 kB / 1.211 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.684e-06/0.9364, allocations: 0 / 1.211 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.9364, allocations: 7.984 kB / 1.211 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.109e-05/0.9364, allocations: 12 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002882/0.9367, allocations: 252.9 kB / 1.211 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001635/0.9369, allocations: 46.56 kB / 1.211 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.9e-05/0.9369, allocations: 24.84 kB / 1.211 GB, free: 9.984 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.937, allocations: 0 / 1.211 GB, free: 9.984 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.759e-05/0.937, allocations: 34.56 kB / 1.211 GB, free: 9.941 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 7.41e-07/0.937, allocations: 0 / 1.211 GB, free: 9.941 MB / 0.9356 GB Notification: Performance of matching and sorting (n=4): time 0.0001471/0.9371, allocations: 57.62 kB / 1.211 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.877e-05/0.9372, allocations: 51.41 kB / 1.211 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.544e-05/0.9372, allocations: 101.8 kB / 1.211 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.081e-05/0.9373, allocations: 25.7 kB / 1.211 GB, free: 9.676 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.805e-05/0.9373, allocations: 88.05 kB / 1.211 GB, free: 9.586 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.263e-05/0.9373, allocations: 15.81 kB / 1.211 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.095e-05/0.9374, allocations: 17.72 kB / 1.212 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001003/0.9375, allocations: 314.8 kB / 1.212 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.997e-05/0.9375, allocations: 4 kB / 1.212 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.215e-05/0.9375, allocations: 21.72 kB / 1.212 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.329e-05/0.9376, allocations: 38.02 kB / 1.212 GB, free: 9.156 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.9376, allocations: 3.938 kB / 1.212 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.926e-05/0.9377, allocations: 61.61 kB / 1.212 GB, free: 9.086 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.9377, allocations: 4 kB / 1.212 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-06/0.9377, allocations: 3.938 kB / 1.212 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.9377, allocations: 4 kB / 1.212 GB, free: 9.074 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.988e-05/0.9378, allocations: 7.938 kB / 1.212 GB, free: 9.066 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.9378, allocations: 4 kB / 1.212 GB, free: 9.062 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.488e-05/0.9378, allocations: 7.938 kB / 1.212 GB, free: 9.055 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-06/0.9378, allocations: 4.031 kB / 1.212 GB, free: 9.051 MB / 0.9356 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 7.109e-05/0.9379, allocations: 113.8 kB / 1.212 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.257e-05/0.9379, allocations: 0 / 1.212 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/0.9381, allocations: 61.17 kB / 1.212 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.9381, allocations: 0 / 1.212 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.9381, allocations: 0 / 1.212 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.9381, allocations: 0 / 1.212 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000149/0.9382, allocations: 165.5 kB / 1.212 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.9383, allocations: 0 / 1.212 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.526e-05/0.9383, allocations: 15.94 kB / 1.212 GB, free: 8.633 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.9383, allocations: 0 / 1.212 GB, free: 8.633 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.9383, allocations: 7.984 kB / 1.212 GB, free: 8.625 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.9383, allocations: 128 / 1.212 GB, free: 8.625 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.9383, allocations: 4 kB / 1.212 GB, free: 8.621 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001196/0.9385, allocations: 147.5 kB / 1.212 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.227e-05/0.9385, allocations: 77.11 kB / 1.213 GB, free: 8.367 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.849e-06/0.9385, allocations: 0 / 1.213 GB, free: 8.367 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.726e-05/0.9386, allocations: 4 kB / 1.213 GB, free: 8.363 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.663e-05/0.9386, allocations: 4 kB / 1.213 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-06/0.9386, allocations: 0 / 1.213 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.601e-05/0.9386, allocations: 83.27 kB / 1.213 GB, free: 8.277 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9386, allocations: 0 / 1.213 GB, free: 8.277 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002353/0.9389, allocations: 20 kB / 1.213 GB, free: 8.258 MB / 0.9356 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.0001867/0.9391, allocations: 127.1 kB / 1.213 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 9.346e-05/0.9392, allocations: 24.05 kB / 1.213 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.9392, allocations: 4 kB / 1.213 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 2.329e-05/0.9392, allocations: 15.94 kB / 1.213 GB, free: 8.078 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002035/0.9394, allocations: 7.875 kB / 1.213 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002641/0.9397, allocations: 122.5 kB / 1.213 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.94, allocations: 0.6768 MB / 1.214 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.447e-05/0.94, allocations: 11.98 kB / 1.214 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.064e-05/0.94, allocations: 7.438 kB / 1.214 GB, free: 7.203 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.94, allocations: 0 / 1.214 GB, free: 7.203 MB / 0.9356 GB Notification: Performance of Templates: time 0.0025/0.9425, allocations: 0.5271 MB / 1.214 GB, free: 6.684 MB / 0.9356 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