Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.BaseClasses.FlowModels.Validation.InverseFlowFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp|dpCalc|deltaDp",fileNamePrefix="Buildings_9_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_9_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.001622/0.001622, allocations: 105.5 kB / 16.41 MB, free: 6.461 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.001779/0.001779, allocations: 187 kB / 17.34 MB, free: 5.719 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.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.23/2.23, allocations: 390.3 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 71.88 kB / 0.9515 GB, free: 7.617 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8494/0.8509, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions): time 0.002389/0.8533, allocations: 1.289 MB / 1.09 GB, free: 4.613 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009743/0.8543, allocations: 0.5927 MB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.742e-05/0.8543, allocations: 0 / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.706e-05/0.8543, allocations: 5.344 kB / 1.09 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.125e-05/0.8544, allocations: 5.203 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005468/0.855, allocations: 148.2 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.21e-05/0.855, allocations: 27.31 kB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.248e-05/0.8551, allocations: 2.703 kB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.507e-05/0.8551, allocations: 5.609 kB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.683e-05/0.8552, allocations: 18.59 kB / 1.091 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.573e-05/0.8552, allocations: 1.031 kB / 1.091 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000606/0.8558, allocations: 344.9 kB / 1.091 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.641e-05/0.8559, allocations: 2.656 kB / 1.091 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.661e-05/0.8559, allocations: 8 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003086/0.8562, allocations: 146.3 kB / 1.091 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.8562, allocations: 3.938 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.526e-06/0.8562, allocations: 1.828 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.102e-06/0.8562, allocations: 4 kB / 1.091 GB, free: 3.945 MB / 0.8575 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.0003948/0.8566, allocations: 354.7 kB / 1.091 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.8567, allocations: 9.828 kB / 1.091 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.149e-05/0.8567, allocations: 3.031 kB / 1.091 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.223e-05/0.8568, allocations: 170.5 kB / 1.092 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.8568, allocations: 5.5 kB / 1.092 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.293e-05/0.8568, allocations: 1.656 kB / 1.092 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001069/0.8569, allocations: 40.5 kB / 1.092 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.857, allocations: 9.125 kB / 1.092 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.857, allocations: 3.938 kB / 1.092 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.857, allocations: 0.7812 kB / 1.092 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.074e-05/0.857, allocations: 20.47 kB / 1.092 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002901/0.8573, allocations: 244.8 kB / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002082/0.8576, allocations: 54.27 kB / 1.092 GB, free: 3 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.435e-05/0.8576, allocations: 22.5 kB / 1.092 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.8576, allocations: 1.438 kB / 1.092 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.817e-05/0.8577, allocations: 32.23 kB / 1.092 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.8577, allocations: 0 / 1.092 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0001872/0.8579, allocations: 59.7 kB / 1.092 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.368e-05/0.8579, allocations: 52.22 kB / 1.092 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.383e-05/0.858, allocations: 100.3 kB / 1.092 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.886e-06/0.858, allocations: 25.7 kB / 1.092 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.106e-05/0.858, allocations: 93.92 kB / 1.092 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.053e-05/0.858, allocations: 6.578 kB / 1.092 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.291e-05/0.8581, allocations: 20 kB / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.034e-05/0.8581, allocations: 316.9 kB / 1.093 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.515e-05/0.8581, allocations: 4.594 kB / 1.093 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.201e-05/0.8582, allocations: 21.23 kB / 1.093 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.056e-05/0.8582, allocations: 34.5 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.8582, allocations: 0 / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.938e-05/0.8583, allocations: 63.55 kB / 1.093 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.8584, allocations: 6.609 kB / 1.093 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.8584, allocations: 3.938 kB / 1.093 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.8584, allocations: 4.75 kB / 1.093 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.039e-05/0.8584, allocations: 8.609 kB / 1.093 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.8585, allocations: 0.7812 kB / 1.093 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.6e-05/0.8585, allocations: 6.141 kB / 1.093 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.8585, allocations: 5.562 kB / 1.093 GB, free: 2.164 MB / 0.8575 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 5.01e-05/0.8586, allocations: 116.8 kB / 1.093 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.554e-05/0.8586, allocations: 1.578 kB / 1.093 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000138/0.8587, allocations: 62.47 kB / 1.093 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.8587, allocations: 0.75 kB / 1.093 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.8587, allocations: 0 / 1.093 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.8588, allocations: 1.625 kB / 1.093 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001232/0.8589, allocations: 162.1 kB / 1.093 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.8589, allocations: 5.359 kB / 1.093 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.567e-05/0.8589, allocations: 6.078 kB / 1.093 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.8589, allocations: 0.7812 kB / 1.093 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.8589, allocations: 1.922 kB / 1.093 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.859, allocations: 0.7812 kB / 1.093 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.859, allocations: 128 / 1.093 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.794e-05/0.8591, allocations: 156.5 kB / 1.093 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.354e-05/0.8591, allocations: 82.75 kB / 1.093 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.8591, allocations: 0.8125 kB / 1.093 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.326e-05/0.8592, allocations: 9.125 kB / 1.093 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.261e-05/0.8592, allocations: 6.5 kB / 1.093 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.356e-06/0.8592, allocations: 1.031 kB / 1.093 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.48e-05/0.8592, allocations: 79.2 kB / 1.094 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8592, allocations: 3.938 kB / 1.094 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000244/0.8595, allocations: 18.44 kB / 1.094 GB, free: 1.449 MB / 0.8575 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.0001819/0.8597, allocations: 123 kB / 1.094 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001096/0.8598, allocations: 26.69 kB / 1.094 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.8598, allocations: 0 / 1.094 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.379e-05/0.8598, allocations: 13.66 kB / 1.094 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000223/0.8601, allocations: 11.33 kB / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002947/0.8604, allocations: 134.9 kB / 1.094 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001069/0.8605, allocations: 0.6757 MB / 1.095 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.034e-05/0.8605, allocations: 10.25 kB / 1.095 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.8605, allocations: 0.6562 kB / 1.095 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of Templates: time 0.002397/0.8629, allocations: 0.702 MB / 1.095 GB, free: 448 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches