Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.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.FMI.Conversion.Validation.AirToOutletFlowReversal,fileNamePrefix="Buildings_9_Buildings_Fluid_FMI_Conversion_Validation_AirToOutletFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal,fileNamePrefix="Buildings_9_Buildings_Fluid_FMI_Conversion_Validation_AirToOutletFlowReversal",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.001648/0.001648, 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.001775/0.001775, allocations: 194.7 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.317/1.317, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.274/2.274, allocations: 390.3 MB / 0.6647 GB, free: 260 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 63.89 kB / 0.8126 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5035/0.5048, allocations: 140.4 MB / 0.9497 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal): time 0.2298/0.7346, allocations: 249 MB / 1.193 GB, free: 7.949 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.02306/0.7577, allocations: 22.28 MB / 1.215 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001162/0.759, allocations: 59.62 kB / 1.215 GB, free: 1.539 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002131/0.7611, allocations: 0.9781 MB / 1.216 GB, free: 0.5547 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.003194/0.7643, allocations: 1.462 MB / 1.217 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.003927/0.7683, allocations: 1.931 MB / 1.219 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.002832/0.7711, allocations: 2.682 MB / 1.222 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001624/0.7727, allocations: 1.317 MB / 1.223 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00218/0.7749, allocations: 1.343 MB / 1.224 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001214/0.7762, allocations: 0.9105 MB / 1.225 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.000181/0.7763, allocations: 108 kB / 1.225 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002696/0.7791, allocations: 1.672 MB / 1.227 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003571/0.7794, allocations: 374.9 kB / 1.227 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0006636/0.7801, allocations: 0.6337 MB / 1.228 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.00246/0.7826, allocations: 2.236 MB / 1.23 GB, free: 1.824 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.7826, allocations: 0 / 1.23 GB, free: 1.824 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.022e-06/0.7826, allocations: 0 / 1.23 GB, free: 1.824 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.112e-05/0.7826, allocations: 0 / 1.23 GB, free: 1.824 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.001942/0.7846, allocations: 1.468 MB / 1.231 GB, free: 308 kB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.7846, allocations: 12.03 kB / 1.231 GB, free: 296 kB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001504/0.7848, allocations: 147.5 kB / 1.232 GB, free: 140 kB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00111/0.7859, allocations: 238.3 kB / 1.232 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001142/0.787, allocations: 0.8454 MB / 1.233 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.7872, allocations: 188.8 kB / 1.233 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.7873, allocations: 91.94 kB / 1.233 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.7887, allocations: 0.9323 MB / 1.234 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.7887, allocations: 0 / 1.234 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.367e-05/0.7888, allocations: 43.97 kB / 1.234 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.7888, allocations: 20 kB / 1.234 GB, free: 13.69 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001078/0.7899, allocations: 0.6323 MB / 1.234 GB, free: 13.05 MB / 0.9981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004085/0.794, allocations: 4.459 MB / 1.239 GB, free: 8.199 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003521/0.7944, allocations: 186.7 kB / 1.239 GB, free: 8.008 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001918/0.7946, allocations: 140.9 kB / 1.239 GB, free: 7.867 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000919/0.7955, allocations: 1.025 MB / 1.24 GB, free: 6.621 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.7956, allocations: 38.5 kB / 1.24 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.7956, allocations: 4 kB / 1.24 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of matching and sorting (n=24): time 0.0009778/0.7965, allocations: 469.7 kB / 1.241 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.7966, allocations: 51.41 kB / 1.241 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001292/0.7979, allocations: 1.106 MB / 1.242 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.7979, allocations: 33.7 kB / 1.242 GB, free: 4.883 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003691/0.7983, allocations: 0.5195 MB / 1.242 GB, free: 4.359 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 6.409e-05/0.7984, allocations: 86.83 kB / 1.242 GB, free: 4.273 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/0.7985, allocations: 97.94 kB / 1.242 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.905e-05/0.7986, allocations: 318 kB / 1.243 GB, free: 3.855 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002283/0.7989, allocations: 128.8 kB / 1.243 GB, free: 3.73 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004007/0.7993, allocations: 387.1 kB / 1.243 GB, free: 3.242 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005537/0.7998, allocations: 475.5 kB / 1.244 GB, free: 2.691 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.7998, allocations: 0 / 1.244 GB, free: 2.691 MB / 0.9981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008723/0.8007, allocations: 0.5349 MB / 1.244 GB, free: 2.148 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.8008, allocations: 11.94 kB / 1.244 GB, free: 2.137 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.8008, allocations: 8 kB / 1.244 GB, free: 2.129 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.8008, allocations: 8 kB / 1.244 GB, free: 2.121 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003581/0.8012, allocations: 92.48 kB / 1.244 GB, free: 2.031 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.404e-05/0.8012, allocations: 11.94 kB / 1.244 GB, free: 2.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006041/0.8018, allocations: 95.03 kB / 1.244 GB, free: 1.926 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.904e-05/0.8018, allocations: 24 kB / 1.244 GB, free: 1.902 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003183/0.8022, allocations: 289.6 kB / 1.245 GB, free: 1.609 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.8023, allocations: 106.6 kB / 1.245 GB, free: 1.504 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006805/0.803, allocations: 425.2 kB / 1.245 GB, free: 1.078 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.803, allocations: 4 kB / 1.245 GB, free: 1.074 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.803, allocations: 0 / 1.245 GB, free: 1.074 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.803, allocations: 0 / 1.245 GB, free: 1.074 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3528/1.156, allocations: 1.547 MB / 1.247 GB, free: 289.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/1.156, allocations: 8.938 kB / 1.247 GB, free: 289.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002095/1.156, allocations: 39.56 kB / 1.247 GB, free: 289.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.957e-06/1.156, allocations: 6.594 kB / 1.247 GB, free: 289.1 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.49e-05/1.156, allocations: 12.31 kB / 1.247 GB, free: 289.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/1.156, allocations: 14.27 kB / 1.247 GB, free: 289.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/1.156, allocations: 5.609 kB / 1.247 GB, free: 289.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000626/1.157, allocations: 0.5689 MB / 1.247 GB, free: 288.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000326/1.157, allocations: 236.9 kB / 1.248 GB, free: 288.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001295/1.157, allocations: 12.5 kB / 1.248 GB, free: 288.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004477/1.158, allocations: 19.7 kB / 1.248 GB, free: 288.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.865e-05/1.158, allocations: 30.83 kB / 1.248 GB, free: 288.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.761e-05/1.158, allocations: 15.52 kB / 1.248 GB, free: 288.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0009924/1.159, allocations: 0.7789 MB / 1.248 GB, free: 288.4 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.21e-07/1.159, allocations: 1.062 kB / 1.248 GB, free: 288.4 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0008792/1.16, allocations: 284 kB / 1.249 GB, free: 288.4 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001193/1.161, allocations: 1.339 MB / 1.25 GB, free: 287.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0006047/1.161, allocations: 350 kB / 1.25 GB, free: 287.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.161, allocations: 4.719 kB / 1.25 GB, free: 287.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002066/1.162, allocations: 136.1 kB / 1.25 GB, free: 287.3 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002393/1.164, allocations: 0.5206 MB / 1.251 GB, free: 287.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009061/1.173, allocations: 7.93 MB / 1.259 GB, free: 282.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005269/1.174, allocations: 1.062 MB / 1.26 GB, free: 281.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0007102/1.174, allocations: 200.7 kB / 1.26 GB, free: 281.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003571/1.175, allocations: 366.3 kB / 1.26 GB, free: 281.5 MB / 0.9981 GB Notification: Performance of SimCode: time 3.3e-07/1.175, allocations: 3.938 kB / 1.26 GB, free: 281.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04213/1.217, allocations: 27.74 MB / 1.287 GB, free: 265.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.539/8.756, allocations: 11.67 kB / 1.287 GB, free: 265.9 MB / 0.9981 GB (rm -f Buildings_9_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.pipe ; mkfifo Buildings_9_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.pipe >> ../files/Buildings_9_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal_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_FMI_Conversion_Validation_AirToOutletFlowReversal.fmu > Buildings_9_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_FMI_Conversion_Validation_AirToOutletFlowReversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches