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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001935/0.001935, allocations: 108.6 kB / 15.73 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.002089/0.002089, allocations: 190.4 kB / 16.66 MB, free: 6.59 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.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.924/2.924, allocations: 482.4 MB / 0.7548 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 68.12 kB / 1.083 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2804, allocations: 162.2 MB / 1.241 GB, free: 10.19 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.002357/0.2828, allocations: 1.259 MB / 1.243 GB, free: 8.918 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001003/0.2839, allocations: 0.5838 MB / 1.243 GB, free: 8.332 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.37e-05/0.2839, allocations: 0 / 1.243 GB, free: 8.332 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.345e-05/0.2839, allocations: 0 / 1.243 GB, free: 8.332 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.824e-05/0.284, allocations: 3.938 kB / 1.243 GB, free: 8.328 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005481/0.2845, allocations: 145.8 kB / 1.243 GB, free: 8.188 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 4.497e-05/0.2846, allocations: 4 kB / 1.243 GB, free: 8.184 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.669e-05/0.2846, allocations: 11.98 kB / 1.243 GB, free: 8.172 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.729e-05/0.2846, allocations: 0 / 1.243 GB, free: 8.172 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.198e-05/0.2847, allocations: 15.86 kB / 1.243 GB, free: 8.156 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.337e-06/0.2847, allocations: 0 / 1.243 GB, free: 8.156 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005644/0.2853, allocations: 339.4 kB / 1.244 GB, free: 7.824 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 9.138e-06/0.2853, allocations: 0 / 1.244 GB, free: 7.824 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 1.56e-05/0.2853, allocations: 0 / 1.244 GB, free: 7.824 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002749/0.2856, allocations: 147.5 kB / 1.244 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.2856, allocations: 0 / 1.244 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of FrontEnd: time 9.52e-07/0.2856, allocations: 4 kB / 1.244 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.2856, allocations: 3.938 kB / 1.244 GB, free: 7.672 MB / 0.9981 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.0003975/0.286, allocations: 351.2 kB / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.2861, allocations: 12.03 kB / 1.244 GB, free: 7.266 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.221e-05/0.2861, allocations: 38.72 kB / 1.244 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.808e-05/0.2861, allocations: 0.9375 kB / 1.244 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.2863, allocations: 168.3 kB / 1.244 GB, free: 7.016 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.2863, allocations: 4.375 kB / 1.244 GB, free: 7.012 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-06/0.2863, allocations: 384 / 1.244 GB, free: 7.012 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.064e-05/0.2864, allocations: 34.27 kB / 1.244 GB, free: 6.973 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.2864, allocations: 3.938 kB / 1.244 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.701e-06/0.2864, allocations: 0 / 1.244 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.337e-06/0.2864, allocations: 0 / 1.244 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.997e-05/0.2864, allocations: 11.98 kB / 1.244 GB, free: 6.957 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001638/0.2866, allocations: 149.6 kB / 1.245 GB, free: 6.762 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.663e-05/0.2867, allocations: 30.55 kB / 1.245 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.141e-05/0.2867, allocations: 12.84 kB / 1.245 GB, free: 6.707 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.2867, allocations: 0 / 1.245 GB, free: 6.707 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.2868, allocations: 34.62 kB / 1.245 GB, free: 6.664 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 8.11e-07/0.2868, allocations: 0 / 1.245 GB, free: 6.664 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0001245/0.2869, allocations: 41.64 kB / 1.245 GB, free: 6.617 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.2869, allocations: 51.41 kB / 1.245 GB, free: 6.555 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.628e-05/0.287, allocations: 106 kB / 1.245 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.2871, allocations: 29.73 kB / 1.245 GB, free: 6.406 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.188e-05/0.2871, allocations: 80.14 kB / 1.245 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.816e-05/0.2871, allocations: 3.953 kB / 1.245 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.929e-05/0.2872, allocations: 13.72 kB / 1.245 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.2873, allocations: 314.8 kB / 1.245 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.332e-05/0.2873, allocations: 4 kB / 1.245 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.002e-05/0.2873, allocations: 3.984 kB / 1.245 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.448e-05/0.2874, allocations: 16.92 kB / 1.245 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.2874, allocations: 0 / 1.245 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.964e-05/0.2875, allocations: 41.66 kB / 1.245 GB, free: 5.91 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.2875, allocations: 7.938 kB / 1.245 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.2875, allocations: 0 / 1.245 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.2875, allocations: 3.938 kB / 1.245 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.2876, allocations: 11.98 kB / 1.245 GB, free: 5.887 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004151/0.2881, allocations: 0.5822 MB / 1.246 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.138e-05/0.2881, allocations: 4.031 kB / 1.246 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-06/0.2881, allocations: 0 / 1.246 GB, free: 5.277 MB / 0.9981 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 8.226e-05/0.2882, allocations: 113.8 kB / 1.246 GB, free: 5.156 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.504e-06/0.2882, allocations: 0 / 1.246 GB, free: 5.156 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.2883, allocations: 48.75 kB / 1.246 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.2883, allocations: 7.938 kB / 1.246 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.2883, allocations: 4.125 kB / 1.246 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.2883, allocations: 0 / 1.246 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001167/0.2885, allocations: 149.6 kB / 1.246 GB, free: 4.895 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.2885, allocations: 4 kB / 1.246 GB, free: 4.891 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.619e-05/0.2886, allocations: 7.984 kB / 1.246 GB, free: 4.883 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.2886, allocations: 4 kB / 1.246 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-06/0.2886, allocations: 3.938 kB / 1.246 GB, free: 4.875 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003811/0.289, allocations: 0.5821 MB / 1.247 GB, free: 4.27 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.696e-06/0.289, allocations: 8.031 kB / 1.247 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.395e-05/0.2891, allocations: 69.09 kB / 1.247 GB, free: 4.176 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.875e-05/0.2892, allocations: 81.11 kB / 1.247 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.588e-06/0.2892, allocations: 0 / 1.247 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.366e-05/0.2892, allocations: 0 / 1.247 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.21e-05/0.2892, allocations: 3.938 kB / 1.247 GB, free: 4.074 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.2892, allocations: 0 / 1.247 GB, free: 4.074 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.075e-05/0.2893, allocations: 83.31 kB / 1.247 GB, free: 3.992 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2893, allocations: 0 / 1.247 GB, free: 3.992 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001968/0.2895, allocations: 11.94 kB / 1.247 GB, free: 3.98 MB / 0.9981 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.0004728/0.2899, allocations: 0.6203 MB / 1.248 GB, free: 3.328 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001532/0.2901, allocations: 19.98 kB / 1.248 GB, free: 3.309 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2901, allocations: 0 / 1.248 GB, free: 3.309 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.053e-05/0.2902, allocations: 15.98 kB / 1.248 GB, free: 3.293 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001361/0.2904, allocations: 3.938 kB / 1.248 GB, free: 3.289 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004024/0.2908, allocations: 143.5 kB / 1.248 GB, free: 3.105 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.2911, allocations: 0.6769 MB / 1.249 GB, free: 2.402 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.511e-05/0.2911, allocations: 3.984 kB / 1.249 GB, free: 2.398 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.937e-05/0.2911, allocations: 7.438 kB / 1.249 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of SimCode: time 2.41e-07/0.2911, allocations: 0 / 1.249 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02275/0.3139, allocations: 1.38 MB / 1.25 GB, free: 1.234 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.31, allocations: 13.86 kB / 1.25 GB, free: 1.223 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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