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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.002235/0.002235, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002201/0.002201, allocations: 192.2 kB / 16.25 MB, free: 6.633 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.223/1.223, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.472/2.472, allocations: 482.4 MB / 0.7544 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 67.17 kB / 0.9235 GB, free: 29.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2443, allocations: 162.2 MB / 1.082 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002251/0.2466, allocations: 1.313 MB / 1.083 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008276/0.2474, allocations: 0.5916 MB / 1.084 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.597e-05/0.2474, allocations: 0 / 1.084 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.282e-05/0.2475, allocations: 4 kB / 1.084 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 3.423e-05/0.2475, allocations: 4 kB / 1.084 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000397/0.2479, allocations: 126.7 kB / 1.084 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 3.504e-05/0.2479, allocations: 11.94 kB / 1.084 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 3.13e-05/0.248, allocations: 0 / 1.084 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.421e-05/0.248, allocations: 4 kB / 1.084 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 2.808e-05/0.248, allocations: 3.938 kB / 1.084 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 7.494e-06/0.248, allocations: 0 / 1.084 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004271/0.2485, allocations: 355.3 kB / 1.084 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.542e-06/0.2485, allocations: 0 / 1.084 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 1.511e-05/0.2485, allocations: 4 kB / 1.084 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002083/0.2487, allocations: 139.9 kB / 1.084 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2487, allocations: 4 kB / 1.084 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.213e-06/0.2487, allocations: 0 / 1.084 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.873e-06/0.2488, allocations: 0 / 1.084 GB, free: 10.96 MB / 0.8419 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.0003351/0.2491, allocations: 351.5 kB / 1.085 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.005e-05/0.2491, allocations: 8.031 kB / 1.085 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.889e-05/0.2492, allocations: 30.75 kB / 1.085 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.782e-05/0.2492, allocations: 8.844 kB / 1.085 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001078/0.2493, allocations: 168.4 kB / 1.085 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.491e-06/0.2493, allocations: 384 / 1.085 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.454e-06/0.2493, allocations: 384 / 1.085 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.846e-05/0.2494, allocations: 34.27 kB / 1.085 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.2494, allocations: 3.938 kB / 1.085 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.779e-06/0.2494, allocations: 3.938 kB / 1.085 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.2494, allocations: 0 / 1.085 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.916e-05/0.2494, allocations: 7.938 kB / 1.085 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001403/0.2496, allocations: 165.7 kB / 1.085 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 4.022e-05/0.2496, allocations: 18.58 kB / 1.085 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.601e-05/0.2497, allocations: 8.922 kB / 1.085 GB, free: 10 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.2497, allocations: 3.984 kB / 1.085 GB, free: 10 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.2497, allocations: 38.55 kB / 1.085 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 8.11e-07/0.2497, allocations: 0 / 1.085 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.00011/0.2498, allocations: 45.58 kB / 1.085 GB, free: 9.902 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.013e-05/0.2499, allocations: 55.41 kB / 1.085 GB, free: 9.836 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.869e-05/0.2499, allocations: 97.8 kB / 1.085 GB, free: 9.73 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.25, allocations: 25.7 kB / 1.085 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 3.197e-05/0.25, allocations: 88.12 kB / 1.085 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/0.25, allocations: 3.906 kB / 1.085 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.616e-05/0.25, allocations: 9.719 kB / 1.085 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001105/0.2502, allocations: 323.1 kB / 1.086 GB, free: 9.266 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.967e-06/0.2502, allocations: 0 / 1.086 GB, free: 9.266 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.616e-06/0.2502, allocations: 4 kB / 1.086 GB, free: 9.262 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.803e-05/0.2502, allocations: 16.8 kB / 1.086 GB, free: 9.242 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.2502, allocations: 0 / 1.086 GB, free: 9.242 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.639e-05/0.2503, allocations: 37.69 kB / 1.086 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.2503, allocations: 7.938 kB / 1.086 GB, free: 9.191 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.2503, allocations: 4 kB / 1.086 GB, free: 9.188 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.2503, allocations: 96 / 1.086 GB, free: 9.188 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.2504, allocations: 15.98 kB / 1.086 GB, free: 9.172 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003309/0.2508, allocations: 0.5782 MB / 1.086 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.503e-05/0.2508, allocations: 3.938 kB / 1.086 GB, free: 8.566 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-06/0.2508, allocations: 0 / 1.086 GB, free: 8.566 MB / 0.8419 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 6.865e-05/0.2509, allocations: 113.8 kB / 1.087 GB, free: 8.445 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.895e-06/0.2509, allocations: 12.03 kB / 1.087 GB, free: 8.434 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.195e-05/0.251, allocations: 44.81 kB / 1.087 GB, free: 8.387 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.251, allocations: 0 / 1.087 GB, free: 8.387 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.251, allocations: 0 / 1.087 GB, free: 8.387 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-06/0.251, allocations: 0 / 1.087 GB, free: 8.387 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001025/0.2511, allocations: 157.6 kB / 1.087 GB, free: 8.184 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.2511, allocations: 3.938 kB / 1.087 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.372e-05/0.2512, allocations: 8 kB / 1.087 GB, free: 8.172 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.2512, allocations: 0 / 1.087 GB, free: 8.172 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.2512, allocations: 3.984 kB / 1.087 GB, free: 8.168 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002997/0.2515, allocations: 0.5899 MB / 1.087 GB, free: 7.555 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.2515, allocations: 3.938 kB / 1.087 GB, free: 7.551 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.317e-05/0.2516, allocations: 61.17 kB / 1.087 GB, free: 7.473 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.464e-05/0.2516, allocations: 81.09 kB / 1.087 GB, free: 7.375 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.025e-06/0.2516, allocations: 4.125 kB / 1.087 GB, free: 7.371 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.273e-05/0.2517, allocations: 0 / 1.087 GB, free: 7.371 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.293e-05/0.2517, allocations: 3.938 kB / 1.087 GB, free: 7.367 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.2517, allocations: 8 kB / 1.088 GB, free: 7.359 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.525e-05/0.2517, allocations: 79.22 kB / 1.088 GB, free: 7.281 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2517, allocations: 0 / 1.088 GB, free: 7.281 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001673/0.2519, allocations: 11.94 kB / 1.088 GB, free: 7.27 MB / 0.8419 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.0003594/0.2523, allocations: 0.6193 MB / 1.088 GB, free: 6.621 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001358/0.2524, allocations: 19.98 kB / 1.088 GB, free: 6.602 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2524, allocations: 0 / 1.088 GB, free: 6.602 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 7.589e-05/0.2525, allocations: 15.92 kB / 1.088 GB, free: 6.586 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001181/0.2526, allocations: 11.94 kB / 1.088 GB, free: 6.574 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003298/0.253, allocations: 143.8 kB / 1.088 GB, free: 6.391 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002401/0.2532, allocations: 0.6729 MB / 1.089 GB, free: 5.691 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 1.113e-05/0.2532, allocations: 0 / 1.089 GB, free: 5.691 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.668e-05/0.2533, allocations: 7.438 kB / 1.089 GB, free: 5.684 MB / 0.8419 GB Notification: Performance of SimCode: time 2.11e-07/0.2533, allocations: 0 / 1.089 GB, free: 5.684 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7259/0.9792, allocations: 1.271 MB / 1.09 GB, free: 4.664 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003305/0.9796, allocations: 287.8 kB / 1.091 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.686/2.665, allocations: 3.75 kB / 1.091 GB, free: 4.273 MB / 0.8419 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=400 --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