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.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_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.001548/0.001548, allocations: 108 kB / 15.6 MB, free: 124 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.001122/0.001121, allocations: 195.6 kB / 16.54 MB, free: 6.668 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.132/1.132, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.314/2.314, allocations: 461.9 MB / 0.7346 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 63.97 kB / 0.8992 GB, free: 36.92 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2163, allocations: 157.4 MB / 1.053 GB, free: 8.324 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001951/0.2183, allocations: 1.265 MB / 1.054 GB, free: 7.043 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007923/0.2191, allocations: 0.5838 MB / 1.055 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.871e-05/0.2191, allocations: 0 / 1.055 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.108e-05/0.2191, allocations: 4 kB / 1.055 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.414e-05/0.2192, allocations: 3.938 kB / 1.055 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000425/0.2196, allocations: 143.4 kB / 1.055 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.294e-05/0.2196, allocations: 7.938 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.179e-05/0.2197, allocations: 4 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.582e-05/0.2197, allocations: 7.984 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.173e-05/0.2197, allocations: 7.938 kB / 1.055 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.135e-06/0.2197, allocations: 0 / 1.055 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004638/0.2202, allocations: 343.4 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.127e-06/0.2202, allocations: 4 kB / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.608e-05/0.2203, allocations: 0 / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002101/0.2205, allocations: 139.9 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2205, allocations: 0 / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.253e-06/0.2205, allocations: 0 / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.236e-06/0.2205, allocations: 0 / 1.055 GB, free: 5.805 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.0002986/0.2208, allocations: 351.5 kB / 1.056 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.059e-05/0.2208, allocations: 12.61 kB / 1.056 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.428e-05/0.2209, allocations: 38.69 kB / 1.056 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.678e-05/0.2209, allocations: 4.938 kB / 1.056 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.254e-05/0.221, allocations: 160.4 kB / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.015e-06/0.221, allocations: 384 / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.236e-06/0.221, allocations: 4.375 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.489e-05/0.2211, allocations: 26.27 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.2211, allocations: 3.938 kB / 1.056 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.2211, allocations: 7.984 kB / 1.056 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.2211, allocations: 7.938 kB / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.871e-05/0.2211, allocations: 3.938 kB / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001157/0.2212, allocations: 149.7 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.679e-05/0.2213, allocations: 34.53 kB / 1.056 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.95e-05/0.2213, allocations: 8.922 kB / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.502e-05/0.2213, allocations: 0 / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.772e-05/0.2214, allocations: 30.56 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 7.62e-07/0.2214, allocations: 0 / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001041/0.2215, allocations: 53.55 kB / 1.056 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.537e-05/0.2215, allocations: 55.34 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.036e-05/0.2216, allocations: 101.8 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.2216, allocations: 25.7 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.654e-05/0.2216, allocations: 84.12 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.488e-05/0.2216, allocations: 0 / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.467e-05/0.2217, allocations: 13.72 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001014/0.2218, allocations: 319.1 kB / 1.057 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.171e-05/0.2218, allocations: 3.984 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.763e-06/0.2218, allocations: 4 kB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.475e-05/0.2218, allocations: 8.859 kB / 1.057 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.2218, allocations: 0 / 1.057 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.882e-05/0.2219, allocations: 49.55 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.2219, allocations: 7.938 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.2219, allocations: 0 / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.127e-06/0.2219, allocations: 96 / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.2221, allocations: 19.98 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003112/0.2224, allocations: 0.5782 MB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.534e-05/0.2224, allocations: 0 / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.309e-06/0.2224, allocations: 0 / 1.057 GB, free: 3.41 MB / 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 7.311e-05/0.2225, allocations: 119.3 kB / 1.058 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.466e-06/0.2225, allocations: 8.078 kB / 1.058 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.319e-05/0.2226, allocations: 44.77 kB / 1.058 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.2226, allocations: 0 / 1.058 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2226, allocations: 0 / 1.058 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.2226, allocations: 0 / 1.058 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001178/0.2227, allocations: 153.6 kB / 1.058 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.2228, allocations: 0 / 1.058 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.27e-05/0.2228, allocations: 15.92 kB / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.2228, allocations: 0 / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.378e-06/0.2228, allocations: 0 / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002675/0.2231, allocations: 0.5861 MB / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.2231, allocations: 3.938 kB / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.986e-05/0.2232, allocations: 73 kB / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.703e-05/0.2232, allocations: 77.11 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.277e-06/0.2233, allocations: 8.062 kB / 1.058 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.442e-05/0.2233, allocations: 7.984 kB / 1.058 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.998e-06/0.2233, allocations: 3.938 kB / 1.058 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-06/0.2233, allocations: 0 / 1.058 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.679e-05/0.2233, allocations: 83.27 kB / 1.059 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2233, allocations: 0 / 1.059 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001758/0.2235, allocations: 11.94 kB / 1.059 GB, free: 2.105 MB / 0.8106 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.0003323/0.2239, allocations: 0.6142 MB / 1.059 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001485/0.224, allocations: 15.98 kB / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.224, allocations: 0 / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.931e-05/0.2241, allocations: 15.98 kB / 1.059 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001192/0.2242, allocations: 6.906 kB / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000344/0.2246, allocations: 143.8 kB / 1.059 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001882/0.2248, allocations: 0.6806 MB / 1.06 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.237e-05/0.2248, allocations: 0 / 1.06 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.874e-05/0.2248, allocations: 11.44 kB / 1.06 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of SimCode: time 2.11e-07/0.2248, allocations: 0 / 1.06 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.957/3.182, allocations: 1.353 MB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.01/17.2, allocations: 5.125 kB / 1.061 GB, free: 15.38 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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