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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.009684/0.009684, allocations: 99.64 kB / 15.73 MB, free: 6.023 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.001964/0.001964, allocations: 187.2 kB / 16.67 MB, free: 5.957 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.46/1.46, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.006/3.006, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 67.91 kB / 1.054 GB, free: 7.637 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3839/0.3857, allocations: 157.4 MB / 1.207 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.00283/0.3886, allocations: 1.257 MB / 1.208 GB, free: 8.871 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001121/0.3898, allocations: 0.5838 MB / 1.209 GB, free: 8.285 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.649e-05/0.3898, allocations: 0 / 1.209 GB, free: 8.285 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.557e-05/0.3898, allocations: 3.984 kB / 1.209 GB, free: 8.281 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.392e-05/0.3899, allocations: 3.938 kB / 1.209 GB, free: 8.277 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006388/0.3905, allocations: 139.4 kB / 1.209 GB, free: 8.141 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.073e-05/0.3906, allocations: 11.94 kB / 1.209 GB, free: 8.129 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.349e-05/0.3907, allocations: 0 / 1.209 GB, free: 8.129 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.015e-05/0.3907, allocations: 4 kB / 1.209 GB, free: 8.125 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.942e-05/0.3908, allocations: 7.938 kB / 1.209 GB, free: 8.117 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.208e-05/0.3908, allocations: 4 kB / 1.209 GB, free: 8.113 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005457/0.3913, allocations: 343.4 kB / 1.21 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.109e-05/0.3914, allocations: 3.938 kB / 1.21 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.301e-05/0.3914, allocations: 3.984 kB / 1.21 GB, free: 7.77 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002811/0.3917, allocations: 147.9 kB / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3917, allocations: 0 / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3917, allocations: 0 / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.3917, allocations: 0 / 1.21 GB, free: 7.625 MB / 0.9669 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.000459/0.3922, allocations: 347.5 kB / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.3922, allocations: 12.62 kB / 1.21 GB, free: 7.223 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.842e-05/0.3923, allocations: 38.69 kB / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.945e-05/0.3923, allocations: 4.844 kB / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.3924, allocations: 164.4 kB / 1.21 GB, free: 6.973 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.598e-06/0.3925, allocations: 384 / 1.21 GB, free: 6.973 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.052e-05/0.3925, allocations: 384 / 1.21 GB, free: 6.973 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.8e-05/0.3926, allocations: 34.25 kB / 1.21 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.3926, allocations: 7.922 kB / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.3926, allocations: 0 / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.3926, allocations: 4 kB / 1.21 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.18e-05/0.3927, allocations: 4 kB / 1.21 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001772/0.3928, allocations: 153.6 kB / 1.21 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.612e-05/0.3929, allocations: 30.55 kB / 1.21 GB, free: 6.68 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.915e-05/0.3929, allocations: 4.859 kB / 1.21 GB, free: 6.672 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/0.393, allocations: 4.062 kB / 1.21 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.393, allocations: 34.56 kB / 1.211 GB, free: 6.625 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.393, allocations: 0 / 1.211 GB, free: 6.625 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001653/0.3932, allocations: 49.56 kB / 1.211 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.426e-05/0.3932, allocations: 51.41 kB / 1.211 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.903e-05/0.3933, allocations: 93.86 kB / 1.211 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.3933, allocations: 25.7 kB / 1.211 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.863e-05/0.3933, allocations: 80.14 kB / 1.211 GB, free: 6.293 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.871e-05/0.3934, allocations: 11.91 kB / 1.211 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.375e-05/0.3934, allocations: 17.95 kB / 1.211 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.3936, allocations: 310.8 kB / 1.211 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.532e-05/0.3936, allocations: 4 kB / 1.211 GB, free: 5.941 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.179e-05/0.3936, allocations: 8 kB / 1.211 GB, free: 5.934 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.626e-05/0.3936, allocations: 12.86 kB / 1.211 GB, free: 5.918 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3936, allocations: 0 / 1.211 GB, free: 5.918 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.009e-05/0.3937, allocations: 45.62 kB / 1.211 GB, free: 5.867 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.3938, allocations: 7.938 kB / 1.211 GB, free: 5.859 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3938, allocations: 4.094 kB / 1.211 GB, free: 5.855 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.3938, allocations: 0 / 1.211 GB, free: 5.855 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001582/0.3939, allocations: 8 kB / 1.211 GB, free: 5.848 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003815/0.3943, allocations: 0.586 MB / 1.212 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.957e-05/0.3944, allocations: 0 / 1.212 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.3944, allocations: 3.938 kB / 1.212 GB, free: 5.234 MB / 0.9669 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.702e-05/0.3945, allocations: 113.9 kB / 1.212 GB, free: 5.113 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.077e-05/0.3945, allocations: 7.906 kB / 1.212 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.3946, allocations: 48.75 kB / 1.212 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.3946, allocations: 0 / 1.212 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3946, allocations: 0 / 1.212 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.3946, allocations: 0 / 1.212 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001099/0.3948, allocations: 157.6 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.3948, allocations: 0 / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.698e-05/0.3948, allocations: 8 kB / 1.212 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.3949, allocations: 4.031 kB / 1.212 GB, free: 4.84 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.3949, allocations: 3.938 kB / 1.212 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003092/0.3952, allocations: 0.5782 MB / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.3952, allocations: 11.86 kB / 1.213 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.529e-05/0.3953, allocations: 65.27 kB / 1.213 GB, free: 4.141 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.752e-05/0.3953, allocations: 77.11 kB / 1.213 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.251e-05/0.3953, allocations: 0 / 1.213 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.664e-05/0.3954, allocations: 3.984 kB / 1.213 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.421e-05/0.3954, allocations: 3.938 kB / 1.213 GB, free: 4.039 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-06/0.3954, allocations: 8 kB / 1.213 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.496e-05/0.3954, allocations: 75.28 kB / 1.213 GB, free: 3.957 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3955, allocations: 0 / 1.213 GB, free: 3.957 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000202/0.3957, allocations: 15.94 kB / 1.213 GB, free: 3.941 MB / 0.9669 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.0004488/0.3961, allocations: 0.6086 MB / 1.214 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001764/0.3963, allocations: 19.98 kB / 1.214 GB, free: 3.281 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3963, allocations: 4 kB / 1.214 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.104e-05/0.3964, allocations: 12.09 kB / 1.214 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001515/0.3966, allocations: 6 kB / 1.214 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005323/0.3971, allocations: 148 kB / 1.214 GB, free: 3.074 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002471/0.3974, allocations: 0.6729 MB / 1.214 GB, free: 2.375 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.75e-05/0.3974, allocations: 0 / 1.214 GB, free: 2.375 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.826e-05/0.3974, allocations: 11.44 kB / 1.214 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of SimCode: time 6.21e-07/0.3974, allocations: 4.062 kB / 1.214 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02148/0.4189, allocations: 1.403 MB / 1.216 GB, free: 1.184 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.71, allocations: 12.25 kB / 1.216 GB, free: 1.172 MB / 0.9669 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