Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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_m_flow,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",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.005686/0.005686, allocations: 99.14 kB / 15.73 MB, free: 6.062 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.001216/0.001216, allocations: 192 kB / 16.67 MB, free: 5.969 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.628/2.628, allocations: 469.4 MB / 0.7422 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 67.89 kB / 1.064 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7433/0.7447, allocations: 159.1 MB / 1.22 GB, free: 2.293 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002186/0.7469, allocations: 1.256 MB / 1.221 GB, free: 1.027 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009173/0.7479, allocations: 0.5877 MB / 1.222 GB, free: 448 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.092e-05/0.7479, allocations: 0 / 1.222 GB, free: 448 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.745e-05/0.7479, allocations: 0 / 1.222 GB, free: 448 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.424e-05/0.748, allocations: 3.938 kB / 1.222 GB, free: 444 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005356/0.7485, allocations: 147.3 kB / 1.222 GB, free: 296 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 4.525e-05/0.7486, allocations: 11.98 kB / 1.222 GB, free: 284 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 3.478e-05/0.7486, allocations: 0 / 1.222 GB, free: 284 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 1.714e-05/0.7486, allocations: 8 kB / 1.222 GB, free: 276 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.099e-05/0.7487, allocations: 7.938 kB / 1.222 GB, free: 268 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 9.748e-06/0.7487, allocations: 0 / 1.222 GB, free: 268 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004902/0.7492, allocations: 343.4 kB / 1.222 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 9.497e-06/0.7492, allocations: 0 / 1.222 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.232e-05/0.7492, allocations: 4 kB / 1.222 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002432/0.7495, allocations: 143.1 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.7495, allocations: 0 / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.232e-06/0.7495, allocations: 0 / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.389e-06/0.7495, allocations: 0 / 1.222 GB, free: 15.79 MB / 0.9512 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.0003579/0.7499, allocations: 363.1 kB / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.7499, allocations: 8.625 kB / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.035e-05/0.75, allocations: 30.75 kB / 1.223 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.411e-05/0.75, allocations: 4.938 kB / 1.223 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.65e-05/0.7501, allocations: 160.4 kB / 1.223 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.7501, allocations: 4.312 kB / 1.223 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.573e-06/0.7501, allocations: 384 / 1.223 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.633e-05/0.7502, allocations: 38.25 kB / 1.223 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.7502, allocations: 3.938 kB / 1.223 GB, free: 15.08 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.243e-06/0.7502, allocations: 4 kB / 1.223 GB, free: 15.08 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.7502, allocations: 0 / 1.223 GB, free: 15.08 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.493e-05/0.7503, allocations: 4 kB / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001457/0.7504, allocations: 149.7 kB / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 4.908e-05/0.7505, allocations: 30.47 kB / 1.223 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.936e-05/0.7505, allocations: 8.922 kB / 1.223 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.7505, allocations: 3.984 kB / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.7506, allocations: 38.56 kB / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.7506, allocations: 0 / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0001312/0.7507, allocations: 45.59 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.367e-05/0.7508, allocations: 55.39 kB / 1.223 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.211e-05/0.7508, allocations: 93.86 kB / 1.223 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.052e-05/0.7508, allocations: 29.7 kB / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 2.492e-05/0.7509, allocations: 80.39 kB / 1.223 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.062e-05/0.7509, allocations: 4 kB / 1.223 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.884e-05/0.7509, allocations: 13.72 kB / 1.223 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.063e-05/0.751, allocations: 322.8 kB / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.232e-05/0.751, allocations: 0 / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.425e-05/0.7511, allocations: 4 kB / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.981e-05/0.7511, allocations: 12.86 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.7511, allocations: 3.938 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.099e-05/0.7512, allocations: 41.72 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.7512, allocations: 13.81 kB / 1.224 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.7512, allocations: 0 / 1.224 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.7512, allocations: 4 kB / 1.224 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.7514, allocations: 11.98 kB / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000319/0.7517, allocations: 0.5821 MB / 1.224 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.805e-05/0.7517, allocations: 0 / 1.224 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.139e-06/0.7517, allocations: 4.125 kB / 1.224 GB, free: 13.39 MB / 0.9512 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 7.197e-05/0.7518, allocations: 121.8 kB / 1.224 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.695e-06/0.7518, allocations: 0 / 1.224 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.164e-05/0.7519, allocations: 44.77 kB / 1.224 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.7519, allocations: 3.984 kB / 1.224 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.7519, allocations: 3.984 kB / 1.224 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.752, allocations: 0 / 1.224 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.727e-05/0.752, allocations: 149.6 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.7521, allocations: 4.031 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.991e-05/0.7521, allocations: 11.98 kB / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.7522, allocations: 0 / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.7522, allocations: 0 / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002796/0.7524, allocations: 0.5898 MB / 1.225 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.7525, allocations: 7.969 kB / 1.225 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.679e-05/0.7525, allocations: 69.16 kB / 1.225 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 2.786e-05/0.7526, allocations: 77.11 kB / 1.225 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.969e-06/0.7526, allocations: 0 / 1.225 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.429e-05/0.7526, allocations: 0 / 1.225 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.88e-05/0.7526, allocations: 7.938 kB / 1.225 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.7526, allocations: 0 / 1.225 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 2.865e-05/0.7527, allocations: 79.27 kB / 1.225 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7527, allocations: 0 / 1.225 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001973/0.7529, allocations: 16.06 kB / 1.225 GB, free: 12.09 MB / 0.9512 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.000354/0.7532, allocations: 0.6085 MB / 1.226 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001594/0.7534, allocations: 19.92 kB / 1.226 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.7534, allocations: 4.094 kB / 1.226 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 8.714e-05/0.7535, allocations: 15.98 kB / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001371/0.7537, allocations: 7.938 kB / 1.226 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004101/0.7541, allocations: 135.5 kB / 1.226 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001904/0.7543, allocations: 0.6768 MB / 1.227 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 1.717e-05/0.7543, allocations: 64 / 1.227 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.471e-05/0.7543, allocations: 23.38 kB / 1.227 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of SimCode: time 3.41e-07/0.7543, allocations: 0 / 1.227 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03237/0.7867, allocations: 1.399 MB / 1.228 GB, free: 9.328 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.91, allocations: 10.2 kB / 1.228 GB, free: 9.32 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches