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.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.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.001133/0.001133, allocations: 90.67 kB / 15.06 MB, free: 1.094 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.001487/0.001487, allocations: 172.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.743/2.743, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003675/0.0003676, allocations: 6.969 kB / 0.9021 GB, free: 36.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3288, allocations: 159.6 MB / 1.058 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions): time 0.001606/0.3305, allocations: 1.006 MB / 1.059 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001093/0.3316, allocations: 0.5416 MB / 1.06 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.604e-05/0.3316, allocations: 0 / 1.06 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.02e-05/0.3317, allocations: 0 / 1.06 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.831e-05/0.3318, allocations: 11.92 kB / 1.06 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006446/0.3324, allocations: 123.6 kB / 1.06 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.387e-05/0.3325, allocations: 19.92 kB / 1.06 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.983e-05/0.3325, allocations: 0 / 1.06 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.825e-05/0.3326, allocations: 7.938 kB / 1.06 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.105e-05/0.3327, allocations: 19.92 kB / 1.06 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.263e-05/0.3327, allocations: 0 / 1.06 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005544/0.3332, allocations: 335.3 kB / 1.06 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.367e-05/0.3333, allocations: 4 kB / 1.06 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.975e-05/0.3333, allocations: 25.7 kB / 1.06 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002253/0.3335, allocations: 100.1 kB / 1.06 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3335, allocations: 0 / 1.06 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.196e-06/0.3335, allocations: 0 / 1.06 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.3336, allocations: 3.938 kB / 1.06 GB, free: 3.098 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.0004412/0.334, allocations: 359.2 kB / 1.06 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.3341, allocations: 12.03 kB / 1.06 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.741e-05/0.3341, allocations: 0 / 1.06 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001269/0.3342, allocations: 159.1 kB / 1.061 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.3342, allocations: 7.984 kB / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.3343, allocations: 3.953 kB / 1.061 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000115/0.3344, allocations: 37.7 kB / 1.061 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.3344, allocations: 4 kB / 1.061 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.3344, allocations: 0 / 1.061 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.3344, allocations: 3.984 kB / 1.061 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.21e-05/0.3345, allocations: 16 kB / 1.061 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003606/0.3349, allocations: 260.8 kB / 1.061 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002158/0.3351, allocations: 42.62 kB / 1.061 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.644e-05/0.3351, allocations: 20.84 kB / 1.061 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.3352, allocations: 0 / 1.061 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/0.3352, allocations: 46.5 kB / 1.061 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.3352, allocations: 0 / 1.061 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0001891/0.3354, allocations: 53.62 kB / 1.061 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.3354, allocations: 55.34 kB / 1.061 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.956e-05/0.3355, allocations: 101.8 kB / 1.061 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.3355, allocations: 25.7 kB / 1.061 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.508e-05/0.3356, allocations: 84.14 kB / 1.061 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.601e-05/0.3356, allocations: 15.75 kB / 1.061 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.627e-06/0.3356, allocations: 4 kB / 1.061 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.3357, allocations: 310.8 kB / 1.062 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.165e-05/0.3358, allocations: 11.98 kB / 1.062 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.966e-05/0.3358, allocations: 17.72 kB / 1.062 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.095e-05/0.3358, allocations: 11.95 kB / 1.062 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3359, allocations: 0 / 1.062 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.807e-05/0.336, allocations: 62 kB / 1.062 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.336, allocations: 4.031 kB / 1.062 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.336, allocations: 4 kB / 1.062 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.336, allocations: 0 / 1.062 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.144e-05/0.3361, allocations: 11.98 kB / 1.062 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.3361, allocations: 0 / 1.062 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.892e-05/0.3361, allocations: 7.906 kB / 1.062 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.68e-06/0.3361, allocations: 48 / 1.062 GB, free: 1.156 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.566e-05/0.3362, allocations: 121.7 kB / 1.062 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.509e-05/0.3362, allocations: 3.984 kB / 1.062 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001413/0.3364, allocations: 65.17 kB / 1.062 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.3364, allocations: 0 / 1.062 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.3364, allocations: 0 / 1.062 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3364, allocations: 0 / 1.062 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001592/0.3366, allocations: 153.7 kB / 1.062 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.3366, allocations: 7.953 kB / 1.062 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.648e-05/0.3366, allocations: 4 kB / 1.062 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3366, allocations: 0 / 1.062 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.3366, allocations: 0 / 1.062 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3367, allocations: 3.938 kB / 1.062 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.3367, allocations: 8 kB / 1.062 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001221/0.3368, allocations: 139.5 kB / 1.062 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.854e-05/0.3368, allocations: 92.91 kB / 1.062 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.489e-05/0.3369, allocations: 3.984 kB / 1.062 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.704e-05/0.3369, allocations: 0 / 1.062 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.64e-05/0.3369, allocations: 128 / 1.062 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/0.3369, allocations: 12 kB / 1.062 GB, free: 464 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.995e-05/0.337, allocations: 79.28 kB / 1.062 GB, free: 384 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.337, allocations: 0 / 1.062 GB, free: 384 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002496/0.3372, allocations: 23.94 kB / 1.063 GB, free: 360 kB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001946/0.3374, allocations: 123.2 kB / 1.063 GB, free: 224 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 9.793e-05/0.3376, allocations: 23.88 kB / 1.063 GB, free: 200 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3376, allocations: 0 / 1.063 GB, free: 200 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.445e-05/0.3376, allocations: 15.98 kB / 1.063 GB, free: 184 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002254/0.3378, allocations: 11.12 kB / 1.063 GB, free: 176 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003039/0.3381, allocations: 136.6 kB / 1.063 GB, free: 8 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002728/0.3384, allocations: 0.677 MB / 1.063 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.642e-05/0.3385, allocations: 7.984 kB / 1.063 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.01e-05/0.3385, allocations: 7.438 kB / 1.063 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of SimCode: time 3.7e-07/0.3385, allocations: 4 kB / 1.063 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of Templates: time 0.002803/0.3413, allocations: 492.4 kB / 1.064 GB, free: 14.81 MB / 0.8262 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