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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001174/0.001174, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00117/0.00117, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.272/1.272, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.223/2.223, allocations: 390.2 MB / 0.6643 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 68.14 kB / 0.812 GB, free: 14.81 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.497/0.4984, allocations: 140.4 MB / 0.9491 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001909/0.5003, allocations: 1.307 MB / 0.9503 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007744/0.5011, allocations: 0.5967 MB / 0.9509 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.213e-05/0.5011, allocations: 0 / 0.9509 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.59e-05/0.5011, allocations: 0 / 0.9509 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.685e-05/0.5012, allocations: 3.938 kB / 0.9509 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003499/0.5015, allocations: 122.5 kB / 0.951 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.359e-05/0.5016, allocations: 12.77 kB / 0.951 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.425e-05/0.5016, allocations: 2.594 kB / 0.9511 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.424e-05/0.5016, allocations: 1.5 kB / 0.9511 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.427e-05/0.5017, allocations: 10.75 kB / 0.9511 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.586e-06/0.5017, allocations: 4 kB / 0.9511 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000405/0.5021, allocations: 341.2 kB / 0.9514 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.564e-06/0.5021, allocations: 0 / 0.9514 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.704e-05/0.5021, allocations: 5.625 kB / 0.9514 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002026/0.5023, allocations: 141.8 kB / 0.9515 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.5024, allocations: 0 / 0.9515 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.51e-07/0.5024, allocations: 0 / 0.9515 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.076e-06/0.5024, allocations: 0 / 0.9515 GB, free: 7.27 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.0002516/0.5026, allocations: 351.6 kB / 0.9519 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.5027, allocations: 13.5 kB / 0.9519 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.102e-05/0.5027, allocations: 36.06 kB / 0.9519 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.938e-05/0.5027, allocations: 4.938 kB / 0.9519 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.571e-05/0.5028, allocations: 161.8 kB / 0.9521 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.786e-06/0.5028, allocations: 1.75 kB / 0.9521 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.184e-06/0.5028, allocations: 384 / 0.9521 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.658e-05/0.5029, allocations: 38.38 kB / 0.9521 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.5029, allocations: 3.938 kB / 0.9521 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.73e-06/0.5029, allocations: 3.938 kB / 0.9521 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.5029, allocations: 0 / 0.9521 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.145e-05/0.5029, allocations: 8.125 kB / 0.9521 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.038e-05/0.503, allocations: 156.4 kB / 0.9523 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.725e-05/0.5031, allocations: 28.02 kB / 0.9523 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.483e-05/0.5031, allocations: 10.23 kB / 0.9523 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.663e-05/0.5031, allocations: 1.375 kB / 0.9523 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.222e-05/0.5031, allocations: 31.94 kB / 0.9523 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.5031, allocations: 4 kB / 0.9524 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001028/0.5032, allocations: 43.25 kB / 0.9524 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.8e-05/0.5033, allocations: 59.34 kB / 0.9524 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.501e-05/0.5033, allocations: 92.36 kB / 0.9525 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.222e-06/0.5033, allocations: 26.7 kB / 0.9526 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.108e-05/0.5033, allocations: 80.14 kB / 0.9526 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.845e-05/0.5033, allocations: 8.906 kB / 0.9526 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.309e-05/0.5034, allocations: 20.31 kB / 0.9527 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.425e-05/0.5034, allocations: 315.9 kB / 0.953 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.077e-05/0.5034, allocations: 2.188 kB / 0.953 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.086e-06/0.5034, allocations: 2.156 kB / 0.953 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.417e-05/0.5035, allocations: 13.42 kB / 0.953 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.5035, allocations: 0.9375 kB / 0.953 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.947e-05/0.5035, allocations: 37.61 kB / 0.953 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.5035, allocations: 13.39 kB / 0.953 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.125e-06/0.5036, allocations: 4.094 kB / 0.953 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.177e-06/0.5036, allocations: 5.094 kB / 0.953 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.5037, allocations: 7.594 kB / 0.953 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002031/0.5039, allocations: 0.5898 MB / 0.9536 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.812e-05/0.5039, allocations: 1.312 kB / 0.9536 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.504, allocations: 3.984 kB / 0.9536 GB, free: 4.969 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.083e-05/0.504, allocations: 116.6 kB / 0.9537 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.753e-06/0.504, allocations: 0 / 0.9537 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.148e-05/0.5041, allocations: 49.31 kB / 0.9538 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.5041, allocations: 0 / 0.9538 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.5041, allocations: 1.875 kB / 0.9538 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.5041, allocations: 0 / 0.9538 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.95e-05/0.5042, allocations: 151.8 kB / 0.9539 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.5042, allocations: 3.938 kB / 0.9539 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.965e-05/0.5043, allocations: 12.77 kB / 0.954 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.5043, allocations: 8.016 kB / 0.954 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.5043, allocations: 0 / 0.954 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001543/0.5044, allocations: 0.579 MB / 0.9545 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.5045, allocations: 9.5 kB / 0.9545 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.939e-05/0.5045, allocations: 69.5 kB / 0.9546 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.286e-05/0.5045, allocations: 78.55 kB / 0.9547 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.207e-06/0.5045, allocations: 0 / 0.9547 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.515e-05/0.5046, allocations: 1.688 kB / 0.9547 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.078e-05/0.5046, allocations: 7.922 kB / 0.9547 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-06/0.5046, allocations: 1.438 kB / 0.9547 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.528e-05/0.5046, allocations: 76.59 kB / 0.9548 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5046, allocations: 0 / 0.9548 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001895/0.5048, allocations: 15.34 kB / 0.9548 GB, free: 3.73 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.0002192/0.505, allocations: 0.6105 MB / 0.9554 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001415/0.5052, allocations: 21.95 kB / 0.9554 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.5052, allocations: 0 / 0.9554 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.096e-05/0.5053, allocations: 21.17 kB / 0.9554 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.5054, allocations: 6.781 kB / 0.9554 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003332/0.5058, allocations: 148.9 kB / 0.9556 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.234e-05/0.5058, allocations: 0.6756 MB / 0.9562 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.398e-05/0.5059, allocations: 0 / 0.9562 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.717e-05/0.5059, allocations: 9.094 kB / 0.9562 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.5059, allocations: 7.938 kB / 0.9562 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.515/1.021, allocations: 1.212 MB / 0.9574 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002474/1.021, allocations: 272.3 kB / 0.9577 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.661/2.682, allocations: 1.188 kB / 0.9577 GB, free: 1.293 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