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.009233/0.009232, allocations: 102.4 kB / 15.73 MB, free: 6.031 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.001692/0.001691, allocations: 193.7 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.817/2.817, allocations: 461.9 MB / 0.7348 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 63.91 kB / 1.054 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3439, allocations: 157.4 MB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002894/0.3468, allocations: 1.259 MB / 1.209 GB, free: 8.906 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001039/0.3479, allocations: 0.5799 MB / 1.209 GB, free: 8.324 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.716e-05/0.348, allocations: 0 / 1.209 GB, free: 8.324 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.096e-05/0.348, allocations: 0 / 1.209 GB, free: 8.324 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.591e-05/0.3481, allocations: 3.938 kB / 1.209 GB, free: 8.32 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007479/0.3488, allocations: 143.4 kB / 1.209 GB, free: 8.18 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.234e-05/0.3489, allocations: 11.94 kB / 1.209 GB, free: 8.168 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.189e-05/0.349, allocations: 7.984 kB / 1.209 GB, free: 8.16 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.089e-05/0.349, allocations: 0 / 1.209 GB, free: 8.16 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.369e-05/0.349, allocations: 7.938 kB / 1.209 GB, free: 8.152 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.281e-05/0.3491, allocations: 0 / 1.209 GB, free: 8.152 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005529/0.3496, allocations: 343.3 kB / 1.21 GB, free: 7.816 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.117e-05/0.3496, allocations: 4 kB / 1.21 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.28e-05/0.3497, allocations: 0 / 1.21 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003012/0.35, allocations: 147.9 kB / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.35, allocations: 0 / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.713e-06/0.35, allocations: 0 / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.35, allocations: 0 / 1.21 GB, free: 7.668 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.0004905/0.3505, allocations: 351.4 kB / 1.21 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.3506, allocations: 12.62 kB / 1.21 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.687e-05/0.3506, allocations: 30.75 kB / 1.21 GB, free: 7.223 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.105e-05/0.3506, allocations: 4.844 kB / 1.21 GB, free: 7.219 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001305/0.3508, allocations: 164.4 kB / 1.21 GB, free: 7.02 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.3508, allocations: 4.375 kB / 1.21 GB, free: 7.016 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-06/0.3508, allocations: 4.375 kB / 1.21 GB, free: 7.012 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.3509, allocations: 38.19 kB / 1.21 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.351, allocations: 7.938 kB / 1.21 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.837e-06/0.351, allocations: 3.938 kB / 1.21 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.351, allocations: 0 / 1.21 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.784e-05/0.351, allocations: 0 / 1.21 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001786/0.3512, allocations: 153.6 kB / 1.21 GB, free: 6.758 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 6.927e-05/0.3513, allocations: 30.59 kB / 1.21 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.088e-05/0.3513, allocations: 4.859 kB / 1.21 GB, free: 6.711 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.3513, allocations: 0 / 1.21 GB, free: 6.711 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/0.3514, allocations: 42.56 kB / 1.211 GB, free: 6.66 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.3514, allocations: 0 / 1.211 GB, free: 6.66 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001643/0.3515, allocations: 37.64 kB / 1.211 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.292e-05/0.3516, allocations: 51.41 kB / 1.211 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.314e-05/0.3517, allocations: 106 kB / 1.211 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.3517, allocations: 25.7 kB / 1.211 GB, free: 6.41 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.151e-05/0.3518, allocations: 80.14 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.964e-05/0.3518, allocations: 3.906 kB / 1.211 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.162e-05/0.3518, allocations: 17.72 kB / 1.211 GB, free: 6.301 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.352, allocations: 310.8 kB / 1.211 GB, free: 5.988 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.779e-05/0.352, allocations: 7.984 kB / 1.211 GB, free: 5.98 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.236e-05/0.352, allocations: 8.062 kB / 1.211 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.314e-05/0.352, allocations: 12.86 kB / 1.211 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.3521, allocations: 4 kB / 1.211 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.247e-05/0.3521, allocations: 37.7 kB / 1.211 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.3522, allocations: 7.938 kB / 1.211 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3522, allocations: 0 / 1.211 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.3522, allocations: 0 / 1.211 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.3524, allocations: 11.98 kB / 1.211 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003928/0.3528, allocations: 0.5861 MB / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.132e-05/0.3528, allocations: 0 / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.3528, allocations: 8.031 kB / 1.212 GB, free: 5.273 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 7.924e-05/0.3529, allocations: 109.8 kB / 1.212 GB, free: 5.156 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.143e-05/0.3529, allocations: 7.891 kB / 1.212 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001166/0.353, allocations: 44.92 kB / 1.212 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3531, allocations: 0 / 1.212 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3531, allocations: 4 kB / 1.212 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.3531, allocations: 7.969 kB / 1.212 GB, free: 5.09 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000104/0.3532, allocations: 145.6 kB / 1.212 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3532, allocations: 7.875 kB / 1.212 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.942e-05/0.3533, allocations: 11.98 kB / 1.212 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.3533, allocations: 0 / 1.212 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.3533, allocations: 8 kB / 1.212 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003016/0.3536, allocations: 0.5822 MB / 1.213 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3536, allocations: 3.938 kB / 1.213 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.336e-05/0.3537, allocations: 65.09 kB / 1.213 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.211e-05/0.3537, allocations: 77.11 kB / 1.213 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.3538, allocations: 4 kB / 1.213 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.417e-05/0.3538, allocations: 3.938 kB / 1.213 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.249e-05/0.3538, allocations: 8.062 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-06/0.3538, allocations: 0 / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.771e-05/0.3539, allocations: 83.27 kB / 1.213 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.3539, allocations: 0 / 1.213 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002118/0.3541, allocations: 15.94 kB / 1.213 GB, free: 3.973 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.0004135/0.3545, allocations: 0.6048 MB / 1.214 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001741/0.3547, allocations: 19.92 kB / 1.214 GB, free: 3.316 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3547, allocations: 0 / 1.214 GB, free: 3.316 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.636e-05/0.3548, allocations: 15.98 kB / 1.214 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000149/0.3549, allocations: 7.938 kB / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005473/0.3555, allocations: 144.2 kB / 1.214 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.3558, allocations: 0.6768 MB / 1.214 GB, free: 2.406 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.741e-05/0.3558, allocations: 0 / 1.214 GB, free: 2.406 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.946e-05/0.3558, allocations: 7.438 kB / 1.214 GB, free: 2.402 MB / 0.9669 GB Notification: Performance of SimCode: time 4.51e-07/0.3558, allocations: 0 / 1.214 GB, free: 2.402 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02083/0.3767, allocations: 1.413 MB / 1.216 GB, free: 1.215 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.02, allocations: 19.48 kB / 1.216 GB, free: 1.203 MB / 0.9669 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