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.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.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.0009236/0.0009236, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005669/0.005669, allocations: 171.1 kB / 16.26 MB, free: 6.676 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.271/1.271, allocations: 223.3 MB / 240.3 MB, free: 5.352 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.166/2.166, allocations: 390.9 MB / 0.6664 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000317/0.0003171, allocations: 8 kB / 0.8161 GB, free: 13.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5803/0.5806, allocations: 142.4 MB / 0.9552 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal): time 0.2286/0.8093, allocations: 243.4 MB / 1.193 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.02301/0.8323, allocations: 21.99 MB / 1.214 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001463/0.8338, allocations: 51.62 kB / 1.214 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002041/0.8359, allocations: 0.7924 MB / 1.215 GB, free: 4.258 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.003202/0.8391, allocations: 1.385 MB / 1.216 GB, free: 2.867 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003869/0.843, allocations: 1.77 MB / 1.218 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003489/0.8465, allocations: 3.532 MB / 1.222 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001333/0.8478, allocations: 1.085 MB / 1.223 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001938/0.8498, allocations: 1.136 MB / 1.224 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009832/0.8507, allocations: 0.8439 MB / 1.225 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 7.439e-05/0.8508, allocations: 40 kB / 1.225 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003002/0.8538, allocations: 1.862 MB / 1.227 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002719/0.8541, allocations: 283 kB / 1.227 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0005121/0.8546, allocations: 0.5728 MB / 1.227 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002372/0.857, allocations: 2.251 MB / 1.23 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.857, allocations: 4 kB / 1.23 GB, free: 5.418 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.703e-06/0.857, allocations: 4 kB / 1.23 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.152e-05/0.8571, allocations: 0 / 1.23 GB, free: 5.414 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.001534/0.8586, allocations: 1.227 MB / 1.231 GB, free: 4.133 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.8586, allocations: 8.031 kB / 1.231 GB, free: 4.125 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001461/0.8588, allocations: 143.5 kB / 1.231 GB, free: 3.977 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009743/0.8598, allocations: 230.4 kB / 1.231 GB, free: 3.75 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/0.8608, allocations: 0.8531 MB / 1.232 GB, free: 2.855 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001448/0.861, allocations: 188.8 kB / 1.232 GB, free: 2.645 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.8611, allocations: 99.81 kB / 1.232 GB, free: 2.547 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.8625, allocations: 0.9324 MB / 1.233 GB, free: 1.582 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.8625, allocations: 0 / 1.233 GB, free: 1.582 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.994e-05/0.8626, allocations: 36 kB / 1.233 GB, free: 1.547 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.02e-05/0.8626, allocations: 24 kB / 1.233 GB, free: 1.523 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009901/0.8636, allocations: 0.6363 MB / 1.234 GB, free: 0.8828 MB / 0.9825 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.00378/0.8674, allocations: 4.439 MB / 1.238 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003237/0.8677, allocations: 190.7 kB / 1.238 GB, free: 11.86 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001845/0.8679, allocations: 140.9 kB / 1.238 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008483/0.8688, allocations: 1.021 MB / 1.239 GB, free: 10.47 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.979e-05/0.8688, allocations: 34.5 kB / 1.239 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=24): time 1.362e-06/0.8688, allocations: 0 / 1.239 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of matching and sorting (n=24): time 0.0008895/0.8697, allocations: 470.4 kB / 1.24 GB, free: 9.965 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.508e-05/0.8697, allocations: 63.28 kB / 1.24 GB, free: 9.891 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001232/0.871, allocations: 1.106 MB / 1.241 GB, free: 8.77 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.584e-05/0.871, allocations: 33.7 kB / 1.241 GB, free: 8.73 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003551/0.8714, allocations: 0.5079 MB / 1.242 GB, free: 8.219 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.748e-05/0.8714, allocations: 86.75 kB / 1.242 GB, free: 8.133 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.305e-05/0.8715, allocations: 37.69 kB / 1.242 GB, free: 8.09 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001019/0.8716, allocations: 326 kB / 1.242 GB, free: 7.766 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.8718, allocations: 124.8 kB / 1.242 GB, free: 7.645 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000381/0.8722, allocations: 391.1 kB / 1.243 GB, free: 7.152 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000512/0.8727, allocations: 463.6 kB / 1.243 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.8727, allocations: 3.938 kB / 1.243 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007839/0.8735, allocations: 0.5352 MB / 1.244 GB, free: 6.066 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.8736, allocations: 11.94 kB / 1.244 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.8736, allocations: 8 kB / 1.244 GB, free: 6.047 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.8736, allocations: 8 kB / 1.244 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003237/0.8739, allocations: 91.83 kB / 1.244 GB, free: 5.949 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/0.8739, allocations: 15.92 kB / 1.244 GB, free: 5.934 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007034/0.8746, allocations: 134.5 kB / 1.244 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.827e-05/0.8747, allocations: 23.98 kB / 1.244 GB, free: 5.781 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.0003172/0.875, allocations: 285.6 kB / 1.244 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.8751, allocations: 106.6 kB / 1.244 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006454/0.8758, allocations: 431.6 kB / 1.245 GB, free: 4.957 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.8758, allocations: 4 kB / 1.245 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.8758, allocations: 0 / 1.245 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.371e-06/0.8758, allocations: 3.984 kB / 1.245 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001836/0.8777, allocations: 1.542 MB / 1.246 GB, free: 3.297 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.8777, allocations: 11.94 kB / 1.246 GB, free: 3.285 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.8779, allocations: 39.92 kB / 1.246 GB, free: 3.246 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.8779, allocations: 8 kB / 1.246 GB, free: 3.238 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.244e-05/0.8779, allocations: 15.98 kB / 1.246 GB, free: 3.223 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.8779, allocations: 4 kB / 1.246 GB, free: 3.219 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.8779, allocations: 7.938 kB / 1.246 GB, free: 3.211 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005276/0.8785, allocations: 0.5705 MB / 1.247 GB, free: 2.57 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002732/0.8787, allocations: 243.6 kB / 1.247 GB, free: 2.312 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.8789, allocations: 24.03 kB / 1.247 GB, free: 2.289 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00044/0.8793, allocations: 27.89 kB / 1.247 GB, free: 2.262 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.289e-05/0.8793, allocations: 31.84 kB / 1.247 GB, free: 2.23 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/0.8794, allocations: 16 kB / 1.247 GB, free: 2.215 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008943/0.8803, allocations: 0.7783 MB / 1.248 GB, free: 1.43 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8803, allocations: 0 / 1.248 GB, free: 1.43 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0007612/0.881, allocations: 287.5 kB / 1.248 GB, free: 1.148 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.3859/1.267, allocations: 1.333 MB / 1.249 GB, free: 288.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0007251/1.268, allocations: 331 kB / 1.25 GB, free: 288.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/1.268, allocations: 0.7812 kB / 1.25 GB, free: 288.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002116/1.268, allocations: 141.4 kB / 1.25 GB, free: 288.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003182/1.271, allocations: 0.5232 MB / 1.25 GB, free: 288.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01046/1.282, allocations: 8.221 MB / 1.258 GB, free: 283.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000594/1.282, allocations: 1.065 MB / 1.259 GB, free: 282.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0009375/1.283, allocations: 202.6 kB / 1.26 GB, free: 282.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004374/1.284, allocations: 374.7 kB / 1.26 GB, free: 282.3 MB / 0.9981 GB Notification: Performance of SimCode: time 5.81e-07/1.284, allocations: 2.781 kB / 1.26 GB, free: 282.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7333/2.017, allocations: 29.38 MB / 1.289 GB, free: 265.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001808/2.017, allocations: 271.8 kB / 1.289 GB, free: 265.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.968/4.986, allocations: 0 / 1.289 GB, free: 265.2 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_FMI_Conversion_Validation_AirToOutletFlowReversal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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