Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_FMI_Conversion_Validation_AirToOutletFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal,fileNamePrefix="Buildings_10_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.006025/0.006025, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.00112/0.00112, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 4.152 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.517/2.517, allocations: 437 MB / 0.7105 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 71.88 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/0.2353, allocations: 151.6 MB / 1.166 GB, free: 7.277 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal): time 0.7429/0.9782, allocations: 249 MB / 1.409 GB, free: 5.895 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.02434/1.003, allocations: 22.26 MB / 1.431 GB, free: 3.848 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001407/1.004, allocations: 56.47 kB / 1.431 GB, free: 3.824 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.002508/1.007, allocations: 0.9849 MB / 1.432 GB, free: 2.965 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.003615/1.01, allocations: 1.522 MB / 1.434 GB, free: 1.77 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.004196/1.014, allocations: 1.96 MB / 1.435 GB, free: 304 kB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.003064/1.018, allocations: 2.702 MB / 1.438 GB, free: 14.23 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001698/1.019, allocations: 1.335 MB / 1.439 GB, free: 12.87 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002411/1.022, allocations: 1.354 MB / 1.441 GB, free: 11.51 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001277/1.023, allocations: 0.9183 MB / 1.442 GB, free: 10.59 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0001743/1.023, allocations: 108 kB / 1.442 GB, free: 10.48 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002891/1.026, allocations: 1.691 MB / 1.443 GB, free: 8.785 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0003564/1.026, allocations: 374.9 kB / 1.444 GB, free: 8.418 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0006899/1.027, allocations: 0.6376 MB / 1.444 GB, free: 7.777 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.002999/1.03, allocations: 2.293 MB / 1.447 GB, free: 5.477 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/1.03, allocations: 0 / 1.447 GB, free: 5.477 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.282e-06/1.03, allocations: 0 / 1.447 GB, free: 5.477 MB / 1.107 GB Notification: Performance of Transformations before backend: time 3.323e-05/1.03, allocations: 0 / 1.447 GB, free: 5.477 MB / 1.107 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.002062/1.032, allocations: 1.501 MB / 1.448 GB, free: 3.922 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/1.032, allocations: 12.03 kB / 1.448 GB, free: 3.91 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001581/1.032, allocations: 147.5 kB / 1.448 GB, free: 3.758 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001121/1.034, allocations: 235 kB / 1.448 GB, free: 3.527 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001484/1.035, allocations: 0.9202 MB / 1.449 GB, free: 2.562 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001531/1.035, allocations: 188.8 kB / 1.45 GB, free: 2.355 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/1.035, allocations: 91.94 kB / 1.45 GB, free: 2.266 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/1.037, allocations: 0.9324 MB / 1.451 GB, free: 1.297 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/1.037, allocations: 3.938 kB / 1.451 GB, free: 1.293 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.309e-05/1.037, allocations: 36 kB / 1.451 GB, free: 1.258 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.708e-05/1.037, allocations: 23.94 kB / 1.451 GB, free: 1.234 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/1.038, allocations: 0.6285 MB / 1.451 GB, free: 0.6094 MB / 1.107 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.004329/1.042, allocations: 4.448 MB / 1.456 GB, free: 11.77 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003598/1.043, allocations: 182.7 kB / 1.456 GB, free: 11.58 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000202/1.043, allocations: 144.8 kB / 1.456 GB, free: 11.43 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009042/1.044, allocations: 1.017 MB / 1.457 GB, free: 10.2 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.61e-05/1.044, allocations: 42.59 kB / 1.457 GB, free: 10.14 MB / 1.123 GB Notification: Performance of pre-optimization done (n=24): time 1.382e-06/1.044, allocations: 0 / 1.457 GB, free: 10.14 MB / 1.123 GB Notification: Performance of matching and sorting (n=24): time 0.00102/1.045, allocations: 481.7 kB / 1.457 GB, free: 9.668 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/1.045, allocations: 55.41 kB / 1.457 GB, free: 9.602 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001402/1.046, allocations: 1.098 MB / 1.458 GB, free: 8.488 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 3.505e-05/1.047, allocations: 33.7 kB / 1.459 GB, free: 8.449 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004099/1.047, allocations: 0.5204 MB / 1.459 GB, free: 7.926 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 7.589e-05/1.047, allocations: 95.19 kB / 1.459 GB, free: 7.832 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001751/1.047, allocations: 106 kB / 1.459 GB, free: 7.723 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001095/1.047, allocations: 322 kB / 1.46 GB, free: 7.402 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002384/1.048, allocations: 124.8 kB / 1.46 GB, free: 7.277 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004162/1.048, allocations: 387.1 kB / 1.46 GB, free: 6.789 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005646/1.049, allocations: 471.5 kB / 1.46 GB, free: 6.242 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/1.049, allocations: 0 / 1.46 GB, free: 6.242 MB / 1.123 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009039/1.049, allocations: 0.5475 MB / 1.461 GB, free: 5.688 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/1.049, allocations: 7.938 kB / 1.461 GB, free: 5.68 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/1.05, allocations: 8 kB / 1.461 GB, free: 5.672 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/1.05, allocations: 12.03 kB / 1.461 GB, free: 5.66 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003631/1.05, allocations: 91.83 kB / 1.461 GB, free: 5.57 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/1.05, allocations: 8 kB / 1.461 GB, free: 5.562 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006335/1.051, allocations: 103.7 kB / 1.461 GB, free: 5.461 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.506e-05/1.051, allocations: 24 kB / 1.461 GB, free: 5.438 MB / 1.123 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.0003287/1.051, allocations: 289.5 kB / 1.462 GB, free: 5.145 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/1.051, allocations: 111.2 kB / 1.462 GB, free: 5.035 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006754/1.052, allocations: 422.9 kB / 1.462 GB, free: 4.613 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/1.052, allocations: 4 kB / 1.462 GB, free: 4.609 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/1.052, allocations: 0 / 1.462 GB, free: 4.609 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/1.052, allocations: 0 / 1.462 GB, free: 4.609 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002074/1.054, allocations: 1.554 MB / 1.464 GB, free: 2.945 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/1.054, allocations: 4.062 kB / 1.464 GB, free: 2.941 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001825/1.054, allocations: 51.8 kB / 1.464 GB, free: 2.891 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.161e-06/1.054, allocations: 4 kB / 1.464 GB, free: 2.887 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/1.054, allocations: 12 kB / 1.464 GB, free: 2.875 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/1.054, allocations: 7.938 kB / 1.464 GB, free: 2.867 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/1.054, allocations: 8 kB / 1.464 GB, free: 2.859 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006013/1.055, allocations: 0.5846 MB / 1.464 GB, free: 2.207 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003278/1.055, allocations: 236.3 kB / 1.464 GB, free: 1.957 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/1.055, allocations: 12 kB / 1.464 GB, free: 1.945 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004614/1.056, allocations: 19.97 kB / 1.464 GB, free: 1.926 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/1.056, allocations: 27.86 kB / 1.464 GB, free: 1.898 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.236e-05/1.056, allocations: 16 kB / 1.464 GB, free: 1.883 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.001014/1.057, allocations: 0.7783 MB / 1.465 GB, free: 1.098 MB / 1.123 GB Notification: Performance of sort global known variables: time 1.4e-07/1.057, allocations: 4 kB / 1.465 GB, free: 1.094 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.0008055/1.058, allocations: 283.4 kB / 1.466 GB, free: 0.8164 MB / 1.123 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.00139/1.059, allocations: 1.357 MB / 1.467 GB, free: 15.39 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.0005807/1.06, allocations: 340.8 kB / 1.467 GB, free: 15.05 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/1.06, allocations: 4.062 kB / 1.467 GB, free: 15.05 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.0001993/1.06, allocations: 143.7 kB / 1.467 GB, free: 14.91 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002304/1.062, allocations: 0.5101 MB / 1.468 GB, free: 14.41 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009481/1.072, allocations: 7.425 MB / 1.475 GB, free: 6.574 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006367/1.072, allocations: 1.063 MB / 1.476 GB, free: 5.484 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.0006887/1.073, allocations: 194.7 kB / 1.476 GB, free: 5.297 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005872/1.074, allocations: 371.3 kB / 1.477 GB, free: 4.934 MB / 1.139 GB Notification: Performance of SimCode: time 2.61e-07/1.074, allocations: 0 / 1.477 GB, free: 4.934 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04712/1.121, allocations: 28.03 MB / 1.504 GB, free: 9.297 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.499/10.62, allocations: 15.97 kB / 1.504 GB, free: 9.281 MB / 1.17 GB (rm -f Buildings_10_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.pipe ; mkfifo Buildings_10_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.pipe >> ../files/Buildings_10_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_FMI_Conversion_Validation_AirToOutletFlowReversal.fmu > Buildings_10_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_FMI_Conversion_Validation_AirToOutletFlowReversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches