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.00839/0.00839, allocations: 101.4 kB / 15.73 MB, free: 6.012 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.002073/0.002074, allocations: 194.9 kB / 16.67 MB, free: 5.949 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.447/1.447, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.845/2.845, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 67.89 kB / 1.054 GB, free: 7.629 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3772/0.3788, allocations: 157.4 MB / 1.207 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.003541/0.3824, allocations: 1.253 MB / 1.208 GB, free: 8.859 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001249/0.3837, allocations: 0.5877 MB / 1.209 GB, free: 8.27 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.83e-05/0.3837, allocations: 3.938 kB / 1.209 GB, free: 8.266 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.524e-05/0.3838, allocations: 0 / 1.209 GB, free: 8.266 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.626e-05/0.3839, allocations: 0 / 1.209 GB, free: 8.266 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009214/0.3848, allocations: 144.4 kB / 1.209 GB, free: 8.125 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.663e-05/0.3849, allocations: 11.94 kB / 1.209 GB, free: 8.113 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 6.17e-05/0.385, allocations: 4 kB / 1.209 GB, free: 8.109 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.009e-05/0.385, allocations: 7.969 kB / 1.209 GB, free: 8.102 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.98e-05/0.3851, allocations: 7.938 kB / 1.209 GB, free: 8.094 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.431e-05/0.3851, allocations: 0 / 1.209 GB, free: 8.094 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007497/0.3859, allocations: 339.3 kB / 1.21 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.081e-05/0.3859, allocations: 7.984 kB / 1.21 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.381e-05/0.3859, allocations: 0 / 1.21 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004174/0.3864, allocations: 143.9 kB / 1.21 GB, free: 7.613 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.3864, allocations: 4 kB / 1.21 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.825e-06/0.3864, allocations: 0 / 1.21 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.023e-06/0.3864, allocations: 0 / 1.21 GB, free: 7.609 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.0006514/0.3871, allocations: 347.5 kB / 1.21 GB, free: 7.219 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 6.582e-05/0.3871, allocations: 12.62 kB / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.341e-05/0.3872, allocations: 30.75 kB / 1.21 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.967e-05/0.3872, allocations: 8.828 kB / 1.21 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001863/0.3874, allocations: 160.4 kB / 1.21 GB, free: 6.965 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.3875, allocations: 384 / 1.21 GB, free: 6.965 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.177e-05/0.3875, allocations: 8.375 kB / 1.21 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001472/0.3876, allocations: 30.27 kB / 1.21 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.3877, allocations: 3.938 kB / 1.21 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.3877, allocations: 4 kB / 1.21 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.3877, allocations: 0 / 1.21 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.308e-05/0.3877, allocations: 11.91 kB / 1.21 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002497/0.388, allocations: 149.7 kB / 1.21 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 7.205e-05/0.3881, allocations: 30.48 kB / 1.21 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.41e-05/0.3881, allocations: 12.91 kB / 1.21 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.077e-05/0.3882, allocations: 0 / 1.21 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.27e-05/0.3882, allocations: 34.56 kB / 1.211 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.3882, allocations: 4 kB / 1.211 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001995/0.3884, allocations: 41.58 kB / 1.211 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.732e-05/0.3885, allocations: 51.41 kB / 1.211 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.3886, allocations: 106 kB / 1.211 GB, free: 6.383 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.3886, allocations: 25.7 kB / 1.211 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.645e-05/0.3887, allocations: 80.14 kB / 1.211 GB, free: 6.27 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.629e-05/0.3887, allocations: 3.906 kB / 1.211 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.49e-05/0.3888, allocations: 13.72 kB / 1.211 GB, free: 6.246 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001833/0.389, allocations: 314.8 kB / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.972e-05/0.389, allocations: 4 kB / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.068e-05/0.389, allocations: 0 / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.135e-05/0.3891, allocations: 21.03 kB / 1.211 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.3891, allocations: 4 kB / 1.211 GB, free: 5.898 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.179e-05/0.3892, allocations: 41.64 kB / 1.211 GB, free: 5.852 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.3892, allocations: 7.938 kB / 1.211 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.3892, allocations: 0 / 1.211 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.3892, allocations: 0 / 1.211 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001887/0.3894, allocations: 11.98 kB / 1.211 GB, free: 5.832 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004844/0.3899, allocations: 0.5822 MB / 1.212 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.213e-05/0.39, allocations: 0 / 1.212 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.864e-06/0.39, allocations: 32 / 1.212 GB, free: 5.227 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 0.0001027/0.3901, allocations: 121.7 kB / 1.212 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.139e-05/0.3901, allocations: 3.906 kB / 1.212 GB, free: 5.094 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001202/0.3902, allocations: 44.81 kB / 1.212 GB, free: 5.047 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3902, allocations: 128 / 1.212 GB, free: 5.047 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3903, allocations: 4 kB / 1.212 GB, free: 5.043 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3903, allocations: 4 kB / 1.212 GB, free: 5.039 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001286/0.3904, allocations: 149.6 kB / 1.212 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.3904, allocations: 0 / 1.212 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.818e-05/0.3905, allocations: 11.98 kB / 1.212 GB, free: 4.832 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.3905, allocations: 0 / 1.212 GB, free: 4.832 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.3905, allocations: 4 kB / 1.212 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003888/0.3909, allocations: 0.5937 MB / 1.213 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3909, allocations: 3.938 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.833e-05/0.391, allocations: 61.16 kB / 1.213 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.226e-05/0.3911, allocations: 77.11 kB / 1.213 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.3911, allocations: 4 kB / 1.213 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.53e-05/0.3911, allocations: 0 / 1.213 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.118e-05/0.3911, allocations: 7.875 kB / 1.213 GB, free: 4.023 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.3911, allocations: 128 / 1.213 GB, free: 4.023 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.746e-05/0.3912, allocations: 83.28 kB / 1.213 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3912, allocations: 0 / 1.213 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002329/0.3914, allocations: 11.94 kB / 1.213 GB, free: 3.93 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.0004985/0.3919, allocations: 0.6203 MB / 1.214 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001824/0.3921, allocations: 15.98 kB / 1.214 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3922, allocations: 0 / 1.214 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.459e-05/0.3922, allocations: 19.92 kB / 1.214 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001608/0.3924, allocations: 7.938 kB / 1.214 GB, free: 3.234 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006329/0.3931, allocations: 139 kB / 1.214 GB, free: 3.059 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003889/0.3935, allocations: 0.6769 MB / 1.214 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.179e-05/0.3935, allocations: 0 / 1.214 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.809e-05/0.3935, allocations: 15.42 kB / 1.214 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of SimCode: time 3.81e-07/0.3936, allocations: 0 / 1.214 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02257/0.4161, allocations: 1.413 MB / 1.216 GB, free: 1.156 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.73, allocations: 11.36 kB / 1.216 GB, free: 1.152 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