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: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007992/0.007992, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.363/1.363, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.679/2.679, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004783/0.0004784, allocations: 9 kB / 0.9029 GB, free: 36.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2629, allocations: 159.6 MB / 1.059 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.001257/0.2642, allocations: 0.979 MB / 1.06 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009243/0.2651, allocations: 0.5956 MB / 1.06 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.599e-05/0.2652, allocations: 0 / 1.06 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.568e-05/0.2652, allocations: 0 / 1.06 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.889e-05/0.2652, allocations: 4 kB / 1.06 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004625/0.2657, allocations: 111.6 kB / 1.06 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.191e-05/0.2657, allocations: 23.91 kB / 1.06 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.078e-05/0.2658, allocations: 0 / 1.06 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.749e-05/0.2658, allocations: 3.938 kB / 1.06 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.849e-05/0.2659, allocations: 8 kB / 1.06 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.117e-06/0.2659, allocations: 0 / 1.06 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000468/0.2664, allocations: 343.3 kB / 1.061 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.498e-06/0.2664, allocations: 0 / 1.061 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.855e-05/0.2664, allocations: 33.64 kB / 1.061 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.2667, allocations: 136 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.2667, allocations: 0 / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of FrontEnd: time 4.198e-06/0.2667, allocations: 3.984 kB / 1.061 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.306e-06/0.2667, allocations: 0 / 1.061 GB, free: 2.621 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.0003302/0.267, allocations: 351.5 kB / 1.061 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.2671, allocations: 12.03 kB / 1.061 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.955e-05/0.2671, allocations: 34.69 kB / 1.061 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.028e-05/0.2671, allocations: 4.922 kB / 1.061 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.682e-05/0.2672, allocations: 164.4 kB / 1.062 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.173e-06/0.2672, allocations: 384 / 1.062 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.117e-06/0.2673, allocations: 384 / 1.062 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.872e-05/0.2673, allocations: 34.25 kB / 1.062 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.2674, allocations: 7.875 kB / 1.062 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.2674, allocations: 4 kB / 1.062 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.2674, allocations: 4 kB / 1.062 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.508e-05/0.2674, allocations: 4 kB / 1.062 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001307/0.2675, allocations: 149.7 kB / 1.062 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.632e-05/0.2676, allocations: 26.61 kB / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.655e-05/0.2676, allocations: 4.859 kB / 1.062 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.2677, allocations: 4.062 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.2677, allocations: 34.56 kB / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.2677, allocations: 0 / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001251/0.2678, allocations: 49.56 kB / 1.062 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.052e-05/0.2679, allocations: 51.41 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.056e-05/0.2679, allocations: 97.86 kB / 1.062 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.052e-05/0.2679, allocations: 25.7 kB / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.803e-05/0.268, allocations: 80.14 kB / 1.062 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.22e-05/0.268, allocations: 11.84 kB / 1.062 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.107e-05/0.268, allocations: 13.97 kB / 1.062 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.68e-05/0.2681, allocations: 314.8 kB / 1.062 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.168e-05/0.2681, allocations: 4 kB / 1.062 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.003e-06/0.2681, allocations: 4 kB / 1.062 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.721e-05/0.2682, allocations: 12.8 kB / 1.062 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2682, allocations: 0 / 1.062 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.049e-05/0.2682, allocations: 37.7 kB / 1.062 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.2683, allocations: 11.94 kB / 1.062 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.2683, allocations: 4.094 kB / 1.062 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.057e-06/0.2683, allocations: 0 / 1.062 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001457/0.2684, allocations: 15.98 kB / 1.062 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003129/0.2688, allocations: 0.5859 MB / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.787e-05/0.2688, allocations: 0 / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.2688, allocations: 4.031 kB / 1.063 GB, free: 236 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.967e-05/0.2689, allocations: 121.8 kB / 1.063 GB, free: 104 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.333e-06/0.2689, allocations: 0 / 1.063 GB, free: 104 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.971e-05/0.269, allocations: 44.83 kB / 1.063 GB, free: 56 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.269, allocations: 0 / 1.063 GB, free: 56 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.269, allocations: 3.984 kB / 1.063 GB, free: 52 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.269, allocations: 4 kB / 1.063 GB, free: 48 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.666e-05/0.2691, allocations: 145.6 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2691, allocations: 0 / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.982e-05/0.2692, allocations: 11.98 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.2692, allocations: 4.031 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.2692, allocations: 4 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002596/0.2695, allocations: 0.5821 MB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.2695, allocations: 3.938 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.921e-05/0.2696, allocations: 69.16 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.693e-05/0.2696, allocations: 77.11 kB / 1.064 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.247e-06/0.2696, allocations: 4 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.527e-05/0.2697, allocations: 4 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.363e-05/0.2697, allocations: 7.875 kB / 1.064 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-06/0.2697, allocations: 0 / 1.064 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.827e-05/0.2697, allocations: 83.27 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2697, allocations: 0 / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001972/0.2699, allocations: 15.94 kB / 1.064 GB, free: 14.93 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.0003325/0.2703, allocations: 0.6048 MB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001477/0.2704, allocations: 19.98 kB / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.2704, allocations: 0 / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.661e-05/0.2705, allocations: 27.95 kB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001348/0.2707, allocations: 6.188 kB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003664/0.2711, allocations: 144.8 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001923/0.2713, allocations: 0.6731 MB / 1.066 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.451e-05/0.2713, allocations: 0 / 1.066 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.841e-05/0.2713, allocations: 11.5 kB / 1.066 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of SimCode: time 3.4e-07/0.2713, allocations: 0 / 1.066 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0164/0.2877, allocations: 1.143 MB / 1.067 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002071/0.2879, allocations: 274.3 kB / 1.067 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.786/2.074, allocations: 0 / 1.067 GB, free: 12.11 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.fmu > 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