Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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.InvertingBasicFlowFunction_dp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009284/0.0009286, allocations: 98.41 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 184.3 kB / 16.92 MB, free: 6.895 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.369/1.369, allocations: 223.3 MB / 241 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.773/2.773, allocations: 462.6 MB / 0.737 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000312/0.000312, allocations: 8.531 kB / 0.9034 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3087, allocations: 159.6 MB / 1.059 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.001241/0.3099, allocations: 0.9789 MB / 1.06 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009852/0.3109, allocations: 0.5957 MB / 1.061 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.259e-05/0.311, allocations: 0 / 1.061 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.584e-05/0.311, allocations: 0 / 1.061 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.086e-05/0.311, allocations: 0 / 1.061 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005048/0.3115, allocations: 118.5 kB / 1.061 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.296e-05/0.3116, allocations: 7.984 kB / 1.061 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.942e-05/0.3116, allocations: 8 kB / 1.061 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.406e-05/0.3117, allocations: 0 / 1.061 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.944e-05/0.3117, allocations: 15.92 kB / 1.061 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.546e-06/0.3117, allocations: 0 / 1.061 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004813/0.3122, allocations: 339.3 kB / 1.061 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.876e-06/0.3122, allocations: 0 / 1.061 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.968e-05/0.3122, allocations: 33.69 kB / 1.061 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001774/0.3124, allocations: 96.05 kB / 1.061 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.3124, allocations: 0 / 1.061 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3125, allocations: 3.938 kB / 1.061 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.357e-06/0.3125, allocations: 0 / 1.061 GB, free: 2.777 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003106/0.3128, allocations: 359.4 kB / 1.062 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.3128, allocations: 11.97 kB / 1.062 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.372e-05/0.3128, allocations: 4.938 kB / 1.062 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.773e-05/0.3129, allocations: 164.3 kB / 1.062 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.676e-06/0.313, allocations: 384 / 1.062 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.442e-06/0.313, allocations: 384 / 1.062 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.929e-05/0.313, allocations: 34.25 kB / 1.062 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.1e-06/0.3131, allocations: 192 / 1.062 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.816e-06/0.3131, allocations: 11.94 kB / 1.062 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.297e-06/0.3131, allocations: 0 / 1.062 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.584e-05/0.3131, allocations: 4 kB / 1.062 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001306/0.3132, allocations: 149.7 kB / 1.062 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.941e-05/0.3133, allocations: 30.55 kB / 1.062 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.661e-05/0.3133, allocations: 8.922 kB / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.641e-05/0.3133, allocations: 0 / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.626e-05/0.3134, allocations: 34.56 kB / 1.062 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 7.91e-07/0.3134, allocations: 0 / 1.062 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001141/0.3135, allocations: 49.62 kB / 1.062 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.839e-05/0.3135, allocations: 51.41 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.105e-05/0.3136, allocations: 97.8 kB / 1.062 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/0.3136, allocations: 25.7 kB / 1.062 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.539e-05/0.3136, allocations: 84.14 kB / 1.063 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.865e-05/0.3137, allocations: 8.156 kB / 1.063 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.019e-05/0.3137, allocations: 13.66 kB / 1.063 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.663e-05/0.3138, allocations: 314.8 kB / 1.063 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.478e-05/0.3138, allocations: 8 kB / 1.063 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.993e-06/0.3138, allocations: 0 / 1.063 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.751e-05/0.3139, allocations: 12.86 kB / 1.063 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3139, allocations: 0 / 1.063 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.306e-05/0.3139, allocations: 37.7 kB / 1.063 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.314, allocations: 12.08 kB / 1.063 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.314, allocations: 3.938 kB / 1.063 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.406e-06/0.314, allocations: 3.938 kB / 1.063 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.3141, allocations: 8 kB / 1.063 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003261/0.3145, allocations: 0.582 MB / 1.063 GB, free: 444 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.808e-05/0.3145, allocations: 4.031 kB / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.366e-06/0.3145, allocations: 7.969 kB / 1.064 GB, free: 432 kB / 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 6.624e-05/0.3146, allocations: 113.9 kB / 1.064 GB, free: 308 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.704e-06/0.3146, allocations: 0 / 1.064 GB, free: 308 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.515e-05/0.3147, allocations: 48.75 kB / 1.064 GB, free: 256 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3147, allocations: 7.938 kB / 1.064 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3147, allocations: 0 / 1.064 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-06/0.3147, allocations: 0 / 1.064 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.3148, allocations: 157.6 kB / 1.064 GB, free: 40 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.3149, allocations: 32 / 1.064 GB, free: 40 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.803e-05/0.3149, allocations: 15.98 kB / 1.064 GB, free: 24 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.3149, allocations: 0 / 1.064 GB, free: 24 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.36e-06/0.315, allocations: 0 / 1.064 GB, free: 24 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003413/0.3153, allocations: 0.5782 MB / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.3153, allocations: 3.938 kB / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.604e-05/0.3154, allocations: 73.19 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.924e-05/0.3155, allocations: 81.02 kB / 1.065 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.02e-05/0.3155, allocations: 0 / 1.065 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.824e-05/0.3155, allocations: 8 kB / 1.065 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.614e-05/0.3155, allocations: 7.922 kB / 1.065 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.3155, allocations: 4 kB / 1.065 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.924e-05/0.3156, allocations: 75.28 kB / 1.065 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3156, allocations: 0 / 1.065 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001929/0.3158, allocations: 12.12 kB / 1.065 GB, free: 15.12 MB / 0.8262 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001556/0.3159, allocations: 115.1 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001448/0.3161, allocations: 23.92 kB / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3161, allocations: 0 / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.214e-05/0.3162, allocations: 12 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.3163, allocations: 3.984 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000293/0.3166, allocations: 137.1 kB / 1.065 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002582/0.3169, allocations: 0.6731 MB / 1.066 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.733e-05/0.3169, allocations: 7.438 kB / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of SimCode: time 3.6e-07/0.3169, allocations: 0 / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of Templates: time 0.002162/0.3191, allocations: 0.6815 MB / 1.066 GB, free: 13.41 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches