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.00159/0.00159, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001872/0.001872, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.331/1.331, allocations: 222.9 MB / 240.2 MB, free: 4.434 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.477/2.477, allocations: 390.2 MB / 0.6647 GB, free: 392 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001787, allocations: 67.89 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6584/0.6602, allocations: 140.4 MB / 0.9497 GB, free: 9.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002071/0.6623, allocations: 1.255 MB / 0.9509 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008143/0.6631, allocations: 0.5839 MB / 0.9515 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.441e-05/0.6632, allocations: 3.938 kB / 0.9515 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.727e-05/0.6632, allocations: 0 / 0.9515 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.177e-05/0.6632, allocations: 5.234 kB / 0.9515 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004468/0.6637, allocations: 146.9 kB / 0.9517 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.236e-05/0.6637, allocations: 12.8 kB / 0.9517 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.498e-05/0.6638, allocations: 1.625 kB / 0.9517 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.494e-05/0.6638, allocations: 1.312 kB / 0.9517 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.594e-05/0.6638, allocations: 6.812 kB / 0.9517 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.728e-06/0.6639, allocations: 0 / 0.9517 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004388/0.6643, allocations: 346.3 kB / 0.952 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.248e-06/0.6643, allocations: 7.922 kB / 0.952 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.71e-05/0.6643, allocations: 2.562 kB / 0.952 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002165/0.6646, allocations: 144.9 kB / 0.9522 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.6646, allocations: 4 kB / 0.9522 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.132e-06/0.6646, allocations: 0 / 0.9522 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.419e-06/0.6646, allocations: 5.031 kB / 0.9522 GB, free: 7.223 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.0002707/0.6649, allocations: 342.7 kB / 0.9525 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.6649, allocations: 9.688 kB / 0.9525 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.368e-05/0.6649, allocations: 36.28 kB / 0.9525 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.91e-05/0.665, allocations: 0.9375 kB / 0.9525 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.114e-05/0.665, allocations: 161.8 kB / 0.9527 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.665, allocations: 10.23 kB / 0.9527 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.47e-06/0.665, allocations: 384 / 0.9527 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.893e-05/0.6651, allocations: 29.3 kB / 0.9527 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.122e-06/0.6651, allocations: 3.938 kB / 0.9527 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.143e-06/0.6651, allocations: 1.344 kB / 0.9527 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.6652, allocations: 3.938 kB / 0.9527 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.489e-05/0.6652, allocations: 2.625 kB / 0.9527 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001003/0.6653, allocations: 152.8 kB / 0.9529 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.092e-05/0.6653, allocations: 27.89 kB / 0.9529 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.536e-05/0.6654, allocations: 7.016 kB / 0.9529 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.6654, allocations: 1.031 kB / 0.9529 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.264e-05/0.6654, allocations: 31.44 kB / 0.953 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.343e-06/0.6654, allocations: 0 / 0.953 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001148/0.6655, allocations: 51.34 kB / 0.953 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.938e-05/0.6656, allocations: 53.22 kB / 0.9531 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.898e-05/0.6656, allocations: 95.2 kB / 0.9531 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.472e-06/0.6656, allocations: 27.05 kB / 0.9532 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.183e-05/0.6656, allocations: 84.12 kB / 0.9533 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.165e-05/0.6656, allocations: 17.11 kB / 0.9533 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.364e-05/0.6657, allocations: 16.38 kB / 0.9533 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.54e-05/0.6657, allocations: 310.8 kB / 0.9536 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.122e-05/0.6657, allocations: 1.625 kB / 0.9536 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.786e-06/0.6657, allocations: 7.406 kB / 0.9536 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.483e-05/0.6658, allocations: 17.86 kB / 0.9536 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.6658, allocations: 0 / 0.9536 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.084e-05/0.6658, allocations: 41.75 kB / 0.9536 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.6659, allocations: 9.875 kB / 0.9537 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.586e-06/0.6659, allocations: 0 / 0.9537 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.6659, allocations: 0 / 0.9537 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.666, allocations: 8.531 kB / 0.9537 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002099/0.6662, allocations: 0.5943 MB / 0.9542 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.696e-05/0.6663, allocations: 0 / 0.9542 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.179e-06/0.6663, allocations: 1.5 kB / 0.9542 GB, free: 4.945 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.231e-05/0.6663, allocations: 111.2 kB / 0.9544 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.494e-06/0.6663, allocations: 1.375 kB / 0.9544 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.191e-05/0.6664, allocations: 43.81 kB / 0.9544 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.6664, allocations: 9.469 kB / 0.9544 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.6664, allocations: 0 / 0.9544 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.6664, allocations: 4 kB / 0.9544 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.355e-05/0.6665, allocations: 157.2 kB / 0.9546 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.6665, allocations: 0 / 0.9546 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.505e-05/0.6666, allocations: 8.5 kB / 0.9546 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.6666, allocations: 3.984 kB / 0.9546 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-06/0.6666, allocations: 0 / 0.9546 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001607/0.6668, allocations: 0.5903 MB / 0.9551 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.6668, allocations: 5.375 kB / 0.9551 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.735e-05/0.6668, allocations: 58.05 kB / 0.9552 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.395e-05/0.6669, allocations: 78.33 kB / 0.9553 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.728e-06/0.6669, allocations: 3.984 kB / 0.9553 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.404e-05/0.6669, allocations: 1.281 kB / 0.9553 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.124e-05/0.6669, allocations: 9.344 kB / 0.9553 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-06/0.6669, allocations: 4 kB / 0.9553 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.548e-05/0.6669, allocations: 81.38 kB / 0.9554 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6669, allocations: 0 / 0.9554 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001907/0.6671, allocations: 10.81 kB / 0.9554 GB, free: 3.707 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.0002268/0.6674, allocations: 0.615 MB / 0.956 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001525/0.6675, allocations: 21.95 kB / 0.956 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.6675, allocations: 1.438 kB / 0.956 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.249e-05/0.6676, allocations: 14 kB / 0.956 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001336/0.6678, allocations: 11.61 kB / 0.956 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003536/0.6681, allocations: 143.8 kB / 0.9562 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.447e-05/0.6682, allocations: 0.6718 MB / 0.9568 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.437e-05/0.6682, allocations: 0 / 0.9568 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.815e-05/0.6683, allocations: 8.938 kB / 0.9568 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.6683, allocations: 0 / 0.9568 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01629/0.6846, allocations: 1.333 MB / 0.9581 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11.37, allocations: 13.25 kB / 0.9581 GB, free: 1.496 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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