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.007736/0.007736, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.00189/0.00189, allocations: 191.3 kB / 16.67 MB, free: 5.52 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: 15.18 MB / 206.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.348/2.348, allocations: 437 MB / 0.7105 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 67.83 kB / 1.018 GB, free: 9.926 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6382/0.6396, allocations: 151.6 MB / 1.166 GB, free: 3.809 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal): time 0.2249/0.8645, allocations: 249 MB / 1.409 GB, free: 9.922 MB / 1.139 GB Notification: Performance of NFInst.instExpressions: time 0.02344/0.888, allocations: 22.28 MB / 1.431 GB, free: 3.57 MB / 1.154 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001247/0.8892, allocations: 55.62 kB / 1.431 GB, free: 3.516 MB / 1.154 GB Notification: Performance of NFTyping.typeComponents: time 0.002432/0.8917, allocations: 0.982 MB / 1.432 GB, free: 2.527 MB / 1.154 GB Notification: Performance of NFTyping.typeBindings: time 0.00343/0.8951, allocations: 1.463 MB / 1.433 GB, free: 1.059 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.004421/0.8996, allocations: 1.93 MB / 1.435 GB, free: 15.13 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 0.003095/0.9027, allocations: 2.69 MB / 1.438 GB, free: 12.43 MB / 1.17 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001673/0.9044, allocations: 1.32 MB / 1.439 GB, free: 11.07 MB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002261/0.9066, allocations: 1.343 MB / 1.441 GB, free: 9.727 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001227/0.9079, allocations: 0.9105 MB / 1.442 GB, free: 8.812 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 0.0001367/0.908, allocations: 108 kB / 1.442 GB, free: 8.707 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002742/0.9108, allocations: 1.687 MB / 1.443 GB, free: 7.016 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 0.0003139/0.9111, allocations: 374.9 kB / 1.444 GB, free: 6.648 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 0.000645/0.9118, allocations: 0.6337 MB / 1.444 GB, free: 6.012 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.002511/0.9143, allocations: 2.278 MB / 1.446 GB, free: 3.727 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.9143, allocations: 0 / 1.446 GB, free: 3.727 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.403e-06/0.9143, allocations: 0 / 1.446 GB, free: 3.727 MB / 1.17 GB Notification: Performance of Transformations before backend: time 3.668e-05/0.9143, allocations: 0 / 1.446 GB, free: 3.727 MB / 1.17 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.001943/0.9163, allocations: 1.468 MB / 1.448 GB, free: 2.207 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.9163, allocations: 12.92 kB / 1.448 GB, free: 2.195 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001415/0.9165, allocations: 143.5 kB / 1.448 GB, free: 2.047 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001076/0.9176, allocations: 230.4 kB / 1.448 GB, free: 1.82 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001357/0.9189, allocations: 0.9154 MB / 1.449 GB, free: 0.8594 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/0.9191, allocations: 184.8 kB / 1.449 GB, free: 0.6562 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.9192, allocations: 99.94 kB / 1.449 GB, free: 0.5586 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/0.9206, allocations: 0.9285 MB / 1.45 GB, free: 15.59 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.9206, allocations: 3.938 kB / 1.45 GB, free: 15.59 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.972e-05/0.9207, allocations: 36 kB / 1.45 GB, free: 15.55 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.9207, allocations: 24 kB / 1.45 GB, free: 15.53 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.9218, allocations: 0.6284 MB / 1.451 GB, free: 14.91 MB / 1.186 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.004068/0.9259, allocations: 4.427 MB / 1.455 GB, free: 10.08 MB / 1.186 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003511/0.9263, allocations: 186.7 kB / 1.456 GB, free: 9.887 MB / 1.186 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002058/0.9265, allocations: 144.8 kB / 1.456 GB, free: 9.742 MB / 1.186 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008681/0.9274, allocations: 1.025 MB / 1.457 GB, free: 8.496 MB / 1.186 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.9274, allocations: 38.53 kB / 1.457 GB, free: 8.449 MB / 1.186 GB Notification: Performance of pre-optimization done (n=24): time 1.353e-06/0.9274, allocations: 0 / 1.457 GB, free: 8.449 MB / 1.186 GB Notification: Performance of matching and sorting (n=24): time 0.0009749/0.9284, allocations: 466.5 kB / 1.457 GB, free: 7.988 MB / 1.186 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.933e-05/0.9284, allocations: 55.41 kB / 1.457 GB, free: 7.922 MB / 1.186 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/0.9297, allocations: 1.114 MB / 1.458 GB, free: 6.793 MB / 1.186 GB Notification: Performance of collectPreVariables (initialization): time 3.422e-05/0.9298, allocations: 29.7 kB / 1.458 GB, free: 6.758 MB / 1.186 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003714/0.9301, allocations: 0.5079 MB / 1.459 GB, free: 6.246 MB / 1.186 GB Notification: Performance of collectInitialBindings (initialization): time 6.527e-05/0.9302, allocations: 90.73 kB / 1.459 GB, free: 6.156 MB / 1.186 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.9304, allocations: 94.03 kB / 1.459 GB, free: 6.059 MB / 1.186 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.9305, allocations: 322 kB / 1.459 GB, free: 5.738 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002353/0.9307, allocations: 128.8 kB / 1.459 GB, free: 5.609 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004031/0.9311, allocations: 387 kB / 1.46 GB, free: 5.125 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005549/0.9317, allocations: 471.5 kB / 1.46 GB, free: 4.578 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.9317, allocations: 4 kB / 1.46 GB, free: 4.574 MB / 1.186 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008693/0.9326, allocations: 0.5426 MB / 1.461 GB, free: 4.023 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.9326, allocations: 12.62 kB / 1.461 GB, free: 4.012 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.9326, allocations: 4 kB / 1.461 GB, free: 4.008 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.9326, allocations: 12.28 kB / 1.461 GB, free: 3.996 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003618/0.933, allocations: 87.83 kB / 1.461 GB, free: 3.91 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.933, allocations: 12 kB / 1.461 GB, free: 3.898 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006121/0.9336, allocations: 94.94 kB / 1.461 GB, free: 3.805 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.198e-05/0.9337, allocations: 24 kB / 1.461 GB, free: 3.781 MB / 1.186 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.0003256/0.934, allocations: 289.6 kB / 1.461 GB, free: 3.488 MB / 1.186 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001386/0.9342, allocations: 110.6 kB / 1.461 GB, free: 3.379 MB / 1.186 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006924/0.9349, allocations: 421.7 kB / 1.462 GB, free: 2.953 MB / 1.186 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.253e-06/0.9349, allocations: 4 kB / 1.462 GB, free: 2.949 MB / 1.186 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.9349, allocations: 4 kB / 1.462 GB, free: 2.945 MB / 1.186 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.9349, allocations: 0 / 1.462 GB, free: 2.945 MB / 1.186 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001977/0.9369, allocations: 1.55 MB / 1.463 GB, free: 1.285 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/0.9369, allocations: 7.938 kB / 1.463 GB, free: 1.277 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001756/0.9371, allocations: 43.86 kB / 1.463 GB, free: 1.234 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.9371, allocations: 7.938 kB / 1.463 GB, free: 1.227 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.9371, allocations: 12.56 kB / 1.463 GB, free: 1.215 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/0.9372, allocations: 11.94 kB / 1.463 GB, free: 1.203 MB / 1.186 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.9372, allocations: 8 kB / 1.463 GB, free: 1.195 MB / 1.186 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005737/0.9377, allocations: 0.5797 MB / 1.464 GB, free: 0.5469 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003084/0.9381, allocations: 235.8 kB / 1.464 GB, free: 304 kB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.9382, allocations: 7.984 kB / 1.464 GB, free: 296 kB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004498/0.9386, allocations: 15.98 kB / 1.464 GB, free: 280 kB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.917e-05/0.9387, allocations: 31.86 kB / 1.464 GB, free: 248 kB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/0.9387, allocations: 16 kB / 1.464 GB, free: 232 kB / 1.186 GB Notification: Performance of sorting global known variables: time 0.0009593/0.9397, allocations: 0.7822 MB / 1.465 GB, free: 15.44 MB / 1.201 GB Notification: Performance of sort global known variables: time 2e-07/0.9397, allocations: 0 / 1.465 GB, free: 15.44 MB / 1.201 GB Notification: Performance of remove unused functions: time 0.0007682/0.9405, allocations: 275.5 kB / 1.465 GB, free: 15.17 MB / 1.201 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.001278/0.9418, allocations: 1.352 MB / 1.467 GB, free: 13.74 MB / 1.201 GB Notification: Performance of simCode: created initialization part: time 0.000563/0.9423, allocations: 344.8 kB / 1.467 GB, free: 13.41 MB / 1.201 GB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.9423, allocations: 4 kB / 1.467 GB, free: 13.41 MB / 1.201 GB Notification: Performance of simCode: created simulation system equations: time 0.0002096/0.9426, allocations: 137.9 kB / 1.467 GB, free: 13.27 MB / 1.201 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002257/0.9448, allocations: 0.5137 MB / 1.468 GB, free: 12.77 MB / 1.201 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008746/0.9536, allocations: 7.396 MB / 1.475 GB, free: 4.961 MB / 1.201 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005736/0.9542, allocations: 1.063 MB / 1.476 GB, free: 3.871 MB / 1.201 GB Notification: Performance of simCode: alias equations: time 0.0006072/0.9548, allocations: 201.1 kB / 1.476 GB, free: 3.68 MB / 1.201 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004239/0.9552, allocations: 367.3 kB / 1.476 GB, free: 3.324 MB / 1.201 GB Notification: Performance of SimCode: time 2.8e-07/0.9552, allocations: 0 / 1.476 GB, free: 3.324 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04746/1.003, allocations: 28.03 MB / 1.504 GB, free: 7.574 MB / 1.232 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.509/10.51, allocations: 7.891 kB / 1.504 GB, free: 7.57 MB / 1.232 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