Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001423/0.001423, 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.00214/0.00214, allocations: 190.9 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.406/1.406, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.362/2.362, allocations: 390.2 MB / 0.6644 GB, free: 0.5352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 67.89 kB / 0.8122 GB, free: 14.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.509/0.5103, allocations: 140.4 MB / 0.9492 GB, free: 9.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002141/0.5125, allocations: 1.307 MB / 0.9505 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007386/0.5133, allocations: 0.5892 MB / 0.9511 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.809e-05/0.5133, allocations: 0 / 0.9511 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.547e-05/0.5133, allocations: 0 / 0.9511 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.579e-05/0.5134, allocations: 8.922 kB / 0.9511 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005137/0.5139, allocations: 118.8 kB / 0.9512 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.258e-05/0.514, allocations: 13.84 kB / 0.9512 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.792e-05/0.514, allocations: 5.453 kB / 0.9512 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.701e-05/0.514, allocations: 6.688 kB / 0.9512 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.452e-05/0.5141, allocations: 1.094 kB / 0.9512 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.611e-05/0.5141, allocations: 1.031 kB / 0.9512 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004128/0.5145, allocations: 345.2 kB / 0.9516 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.017e-05/0.5145, allocations: 5.406 kB / 0.9516 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.796e-05/0.5145, allocations: 1.094 kB / 0.9516 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002198/0.5148, allocations: 141.2 kB / 0.9517 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.5148, allocations: 1.062 kB / 0.9517 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.162e-06/0.5148, allocations: 0 / 0.9517 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.5148, allocations: 0 / 0.9517 GB, free: 7.195 MB / 0.7169 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.0002751/0.5151, allocations: 360.5 kB / 0.9521 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.5151, allocations: 8.844 kB / 0.9521 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.983e-05/0.5151, allocations: 34.69 kB / 0.9521 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.036e-05/0.5152, allocations: 2.188 kB / 0.9521 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.898e-05/0.5152, allocations: 161.8 kB / 0.9523 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-06/0.5153, allocations: 384 / 0.9523 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.226e-06/0.5153, allocations: 1.688 kB / 0.9523 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.23e-05/0.5153, allocations: 38.25 kB / 0.9523 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.5154, allocations: 7.938 kB / 0.9523 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.542e-06/0.5154, allocations: 0 / 0.9523 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.5154, allocations: 0 / 0.9523 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.2e-05/0.5154, allocations: 4.25 kB / 0.9523 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.23e-05/0.5155, allocations: 148.3 kB / 0.9524 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.119e-05/0.5155, allocations: 27.69 kB / 0.9525 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.643e-05/0.5156, allocations: 15.52 kB / 0.9525 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.5156, allocations: 3.938 kB / 0.9525 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.39e-05/0.5156, allocations: 39.78 kB / 0.9525 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.5156, allocations: 0 / 0.9525 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001121/0.5157, allocations: 43.17 kB / 0.9526 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.721e-05/0.5158, allocations: 56.52 kB / 0.9526 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.219e-05/0.5158, allocations: 96.77 kB / 0.9527 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.241e-06/0.5158, allocations: 25.7 kB / 0.9527 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.157e-05/0.5158, allocations: 84.33 kB / 0.9528 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.955e-05/0.5159, allocations: 13.31 kB / 0.9528 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.421e-05/0.5159, allocations: 11.94 kB / 0.9528 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.469e-05/0.5159, allocations: 316 kB / 0.9531 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.253e-05/0.5159, allocations: 6.297 kB / 0.9532 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.626e-06/0.516, allocations: 2 kB / 0.9532 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.431e-05/0.516, allocations: 13.42 kB / 0.9532 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.516, allocations: 0 / 0.9532 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.126e-05/0.516, allocations: 42.36 kB / 0.9532 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.5161, allocations: 9.656 kB / 0.9532 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.5161, allocations: 0 / 0.9532 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.5161, allocations: 1.156 kB / 0.9532 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.5162, allocations: 10.58 kB / 0.9532 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002045/0.5164, allocations: 0.5826 MB / 0.9538 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.698e-05/0.5165, allocations: 1 kB / 0.9538 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.5165, allocations: 5.625 kB / 0.9538 GB, free: 4.902 MB / 0.7169 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 4.382e-05/0.5165, allocations: 119.1 kB / 0.9539 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.314e-06/0.5165, allocations: 1.562 kB / 0.9539 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.304e-05/0.5166, allocations: 47.66 kB / 0.954 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.5166, allocations: 1.312 kB / 0.954 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.5166, allocations: 0 / 0.954 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.5167, allocations: 3.984 kB / 0.954 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.941e-05/0.5167, allocations: 149.2 kB / 0.9541 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.5167, allocations: 4.031 kB / 0.9541 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.278e-05/0.5168, allocations: 15.61 kB / 0.9541 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.135e-06/0.5168, allocations: 1.281 kB / 0.9541 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.45e-06/0.5168, allocations: 0 / 0.9541 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001549/0.517, allocations: 0.5868 MB / 0.9547 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.517, allocations: 3.938 kB / 0.9547 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.856e-05/0.517, allocations: 66.47 kB / 0.9548 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.468e-05/0.5171, allocations: 78.52 kB / 0.9548 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.042e-05/0.5171, allocations: 0 / 0.9548 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.418e-05/0.5171, allocations: 1.531 kB / 0.9548 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.017e-05/0.5171, allocations: 3.938 kB / 0.9549 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.5171, allocations: 1.438 kB / 0.9549 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.569e-05/0.5171, allocations: 84.39 kB / 0.9549 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5171, allocations: 9.188 kB / 0.9549 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001995/0.5173, allocations: 6.25 kB / 0.9549 GB, free: 3.66 MB / 0.7169 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.0002363/0.5176, allocations: 0.6152 MB / 0.9555 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001478/0.5177, allocations: 16.98 kB / 0.9556 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.5178, allocations: 4.062 kB / 0.9556 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.842e-05/0.5178, allocations: 14.67 kB / 0.9556 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001354/0.518, allocations: 8.906 kB / 0.9556 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003574/0.5183, allocations: 150.1 kB / 0.9557 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.098e-05/0.5184, allocations: 0.6756 MB / 0.9564 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.459e-05/0.5184, allocations: 4.062 kB / 0.9564 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.865e-05/0.5185, allocations: 8.812 kB / 0.9564 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.5185, allocations: 0 / 0.9564 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.247/2.765, allocations: 1.267 MB / 0.9576 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001837/2.766, allocations: 272.4 kB / 0.9579 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.748/5.514, allocations: 0 / 0.9579 GB, free: 1.207 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches