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.003954/0.003954, allocations: 97.62 kB / 15.73 MB, free: 6.055 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.00104/0.00104, allocations: 194.8 kB / 16.67 MB, free: 5.977 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.302/1.302, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.345/2.345, allocations: 390.3 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 63.91 kB / 0.9504 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2212/0.2225, allocations: 140.4 MB / 1.087 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal): time 0.7116/0.9341, allocations: 249 MB / 1.331 GB, free: 2.398 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01976/0.9539, allocations: 22.27 MB / 1.352 GB, free: 1.758 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001277/0.9552, allocations: 55.03 kB / 1.352 GB, free: 1.758 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.002013/0.9572, allocations: 0.9929 MB / 1.353 GB, free: 1.523 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.002925/0.9602, allocations: 1.511 MB / 1.355 GB, free: 1.215 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.003833/0.964, allocations: 1.968 MB / 1.357 GB, free: 0.6133 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.002169/0.9662, allocations: 2.698 MB / 1.359 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001412/0.9676, allocations: 1.327 MB / 1.361 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001949/0.9696, allocations: 1.361 MB / 1.362 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009031/0.9705, allocations: 0.9102 MB / 1.363 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.9706, allocations: 113.3 kB / 1.363 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002562/0.9732, allocations: 1.691 MB / 1.365 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0003197/0.9735, allocations: 373.8 kB / 1.365 GB, free: 14.07 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0005502/0.9741, allocations: 0.639 MB / 1.366 GB, free: 13.69 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.002249/0.9764, allocations: 2.279 MB / 1.368 GB, free: 13 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.9764, allocations: 0 / 1.368 GB, free: 13 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.343e-06/0.9764, allocations: 3.281 kB / 1.368 GB, free: 13 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.368e-05/0.9764, allocations: 0 / 1.368 GB, free: 13 MB / 1.029 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.001802/0.9782, allocations: 1.517 MB / 1.369 GB, free: 11.95 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.9782, allocations: 8.875 kB / 1.369 GB, free: 11.95 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001432/0.9784, allocations: 138.9 kB / 1.37 GB, free: 11.86 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001052/0.9795, allocations: 237.6 kB / 1.37 GB, free: 11.77 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001336/0.9808, allocations: 0.92 MB / 1.371 GB, free: 11.26 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001557/0.981, allocations: 187.1 kB / 1.371 GB, free: 11.1 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.9811, allocations: 93.34 kB / 1.371 GB, free: 11.07 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.9825, allocations: 0.9334 MB / 1.372 GB, free: 10.64 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.9825, allocations: 6.375 kB / 1.372 GB, free: 10.63 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.084e-05/0.9826, allocations: 36.16 kB / 1.372 GB, free: 10.61 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/0.9826, allocations: 24.44 kB / 1.372 GB, free: 10.61 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.9836, allocations: 0.6285 MB / 1.373 GB, free: 10.38 MB / 1.029 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.004078/0.9877, allocations: 4.445 MB / 1.377 GB, free: 6.953 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003348/0.988, allocations: 189.5 kB / 1.377 GB, free: 6.871 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001839/0.9882, allocations: 148.1 kB / 1.377 GB, free: 6.812 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009225/0.9892, allocations: 1.018 MB / 1.378 GB, free: 5.672 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.9892, allocations: 40.81 kB / 1.378 GB, free: 5.625 MB / 1.029 GB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.9892, allocations: 0 / 1.378 GB, free: 5.625 MB / 1.029 GB Notification: Performance of matching and sorting (n=24): time 0.0009561/0.9902, allocations: 476.2 kB / 1.379 GB, free: 5.426 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.05e-05/0.9902, allocations: 55 kB / 1.379 GB, free: 5.363 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/0.9915, allocations: 1.106 MB / 1.38 GB, free: 4.922 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.194e-05/0.9915, allocations: 32.8 kB / 1.38 GB, free: 4.887 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003901/0.9919, allocations: 0.5144 MB / 1.38 GB, free: 4.48 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.42e-05/0.992, allocations: 92.52 kB / 1.38 GB, free: 4.41 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001514/0.9921, allocations: 101.9 kB / 1.381 GB, free: 4.355 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.9922, allocations: 321.6 kB / 1.381 GB, free: 4.043 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002213/0.9925, allocations: 132.1 kB / 1.381 GB, free: 3.996 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004169/0.9929, allocations: 380.8 kB / 1.381 GB, free: 3.648 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005372/0.9934, allocations: 475.7 kB / 1.382 GB, free: 3.297 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.9934, allocations: 6.5 kB / 1.382 GB, free: 3.293 MB / 1.029 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008288/0.9943, allocations: 0.5419 MB / 1.382 GB, free: 3.09 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.9943, allocations: 12.88 kB / 1.382 GB, free: 3.086 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.9943, allocations: 4.406 kB / 1.382 GB, free: 3.086 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.9943, allocations: 11.06 kB / 1.382 GB, free: 3.086 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000346/0.9947, allocations: 90.27 kB / 1.382 GB, free: 3.082 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.9947, allocations: 14.11 kB / 1.382 GB, free: 3.082 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006133/0.9953, allocations: 95.83 kB / 1.383 GB, free: 3.023 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.458e-05/0.9954, allocations: 27.86 kB / 1.383 GB, free: 3.02 MB / 1.029 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.0003114/0.9957, allocations: 290.4 kB / 1.383 GB, free: 2.816 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001398/0.9959, allocations: 111.4 kB / 1.383 GB, free: 2.754 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006506/0.9965, allocations: 418.9 kB / 1.383 GB, free: 2.555 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.9965, allocations: 8.453 kB / 1.383 GB, free: 2.551 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.9965, allocations: 0 / 1.383 GB, free: 2.551 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.9965, allocations: 1.359 kB / 1.383 GB, free: 2.551 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001951/0.9985, allocations: 1.554 MB / 1.385 GB, free: 1.676 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.333e-06/0.9985, allocations: 8.938 kB / 1.385 GB, free: 1.672 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001722/0.9987, allocations: 47.52 kB / 1.385 GB, free: 1.668 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.9987, allocations: 4.656 kB / 1.385 GB, free: 1.668 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.056e-05/0.9987, allocations: 12.72 kB / 1.385 GB, free: 1.664 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.9988, allocations: 5.281 kB / 1.385 GB, free: 1.664 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.9988, allocations: 8.031 kB / 1.385 GB, free: 1.664 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005677/0.9993, allocations: 0.5732 MB / 1.385 GB, free: 1.223 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003246/0.9997, allocations: 242.8 kB / 1.386 GB, free: 1.035 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.9998, allocations: 10.67 kB / 1.386 GB, free: 1.031 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004496/1, allocations: 24.05 kB / 1.386 GB, free: 1.02 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.219e-05/1, allocations: 34.11 kB / 1.386 GB, free: 1.012 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-05/1, allocations: 10.12 kB / 1.386 GB, free: 1.012 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0009168/1.001, allocations: 0.7782 MB / 1.387 GB, free: 0.6875 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.8e-07/1.001, allocations: 0 / 1.387 GB, free: 0.6875 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0007408/1.002, allocations: 290 kB / 1.387 GB, free: 0.625 MB / 1.029 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.001295/1.003, allocations: 1.356 MB / 1.388 GB, free: 15.59 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005322/1.004, allocations: 337.5 kB / 1.388 GB, free: 15.5 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/1.004, allocations: 7.875 kB / 1.388 GB, free: 15.5 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001863/1.004, allocations: 142.3 kB / 1.389 GB, free: 15.46 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002229/1.006, allocations: 0.5101 MB / 1.389 GB, free: 15.29 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008332/1.015, allocations: 7.432 MB / 1.396 GB, free: 11.18 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005827/1.015, allocations: 1.07 MB / 1.397 GB, free: 10.3 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0005724/1.016, allocations: 196.2 kB / 1.398 GB, free: 10.21 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004422/1.016, allocations: 358.9 kB / 1.398 GB, free: 9.914 MB / 1.045 GB Notification: Performance of SimCode: time 3e-07/1.016, allocations: 0 / 1.398 GB, free: 9.914 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04702/1.063, allocations: 28.03 MB / 1.425 GB, free: 4.555 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.218/10.28, allocations: 0 / 1.425 GB, free: 4.555 MB / 1.061 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