Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.MassExchangers.Examples.ConstantEffectiveness,fileNamePrefix="Buildings_latest_Buildings_Fluid_MassExchangers_Examples_ConstantEffectiveness",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness,fileNamePrefix="Buildings_latest_Buildings_Fluid_MassExchangers_Examples_ConstantEffectiveness",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.00738/0.00738, allocations: 103.7 kB / 15.74 MB, free: 6.449 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.001992/0.001992, allocations: 196 kB / 16.67 MB, free: 6.355 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.867/2.867, allocations: 482.4 MB / 0.7548 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 68.06 kB / 1.083 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2747, allocations: 162.2 MB / 1.241 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness): time 0.7474/1.022, allocations: 214.3 MB / 1.451 GB, free: 1.41 MB / 1.139 GB Notification: Performance of NFInst.instExpressions: time 0.01115/1.033, allocations: 7.056 MB / 1.458 GB, free: 10.34 MB / 1.154 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001303/1.035, allocations: 39.75 kB / 1.458 GB, free: 10.3 MB / 1.154 GB Notification: Performance of NFTyping.typeComponents: time 0.002049/1.037, allocations: 0.7881 MB / 1.458 GB, free: 9.504 MB / 1.154 GB Notification: Performance of NFTyping.typeBindings: time 0.006017/1.043, allocations: 2.513 MB / 1.461 GB, free: 6.984 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.002857/1.046, allocations: 1.171 MB / 1.462 GB, free: 5.824 MB / 1.154 GB Notification: Performance of NFFlatten.flatten: time 0.003714/1.049, allocations: 2.805 MB / 1.465 GB, free: 3.012 MB / 1.154 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001527/1.051, allocations: 1.097 MB / 1.466 GB, free: 1.902 MB / 1.154 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004528/1.056, allocations: 2.269 MB / 1.468 GB, free: 15.62 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001883/1.057, allocations: 0.9284 MB / 1.469 GB, free: 14.7 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 0.0002179/1.058, allocations: 120 kB / 1.469 GB, free: 14.59 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00422/1.062, allocations: 2.436 MB / 1.471 GB, free: 12.14 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 0.000461/1.062, allocations: 422.7 kB / 1.472 GB, free: 11.73 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 0.000775/1.063, allocations: 0.6843 MB / 1.472 GB, free: 11.04 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.003712/1.067, allocations: 2.496 MB / 1.475 GB, free: 8.539 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/1.067, allocations: 4 kB / 1.475 GB, free: 8.535 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.262e-06/1.067, allocations: 3.938 kB / 1.475 GB, free: 8.531 MB / 1.17 GB Notification: Performance of Transformations before backend: time 1.709e-05/1.067, allocations: 0 / 1.475 GB, free: 8.531 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: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.004366/1.071, allocations: 1.884 MB / 1.477 GB, free: 6.582 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/1.071, allocations: 12.03 kB / 1.477 GB, free: 6.57 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001758/1.072, allocations: 135.1 kB / 1.477 GB, free: 6.43 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003143/1.075, allocations: 0.5416 MB / 1.477 GB, free: 5.887 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001835/1.077, allocations: 1.012 MB / 1.478 GB, free: 4.832 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.707e-05/1.077, allocations: 65.98 kB / 1.478 GB, free: 4.77 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/1.077, allocations: 84 kB / 1.479 GB, free: 4.688 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002737/1.08, allocations: 1.229 MB / 1.48 GB, free: 3.449 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/1.08, allocations: 0 / 1.48 GB, free: 3.449 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001042/1.08, allocations: 28 kB / 1.48 GB, free: 3.422 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-05/1.08, allocations: 49.98 kB / 1.48 GB, free: 3.371 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003848/1.084, allocations: 1.53 MB / 1.481 GB, free: 1.844 MB / 1.17 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.006346/1.09, allocations: 4.044 MB / 1.485 GB, free: 13.52 MB / 1.186 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00256/1.092, allocations: 0.9739 MB / 1.486 GB, free: 12.54 MB / 1.186 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001597/1.094, allocations: 0.6522 MB / 1.487 GB, free: 11.88 MB / 1.186 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001137/1.095, allocations: 0.6125 MB / 1.487 GB, free: 11.16 MB / 1.186 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/1.095, allocations: 48.16 kB / 1.488 GB, free: 11.11 MB / 1.186 GB Notification: Performance of pre-optimization done (n=76): time 2.164e-06/1.095, allocations: 0 / 1.488 GB, free: 11.11 MB / 1.186 GB Notification: Performance of matching and sorting (n=76): time 0.005012/1.1, allocations: 1.785 MB / 1.489 GB, free: 9.312 MB / 1.186 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/1.1, allocations: 64.05 kB / 1.489 GB, free: 9.238 MB / 1.186 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/1.101, allocations: 0.8154 MB / 1.49 GB, free: 8.398 MB / 1.186 GB Notification: Performance of collectPreVariables (initialization): time 9.23e-05/1.102, allocations: 45.7 kB / 1.49 GB, free: 8.348 MB / 1.186 GB Notification: Performance of collectInitialEqns (initialization): time 0.000373/1.102, allocations: 457.1 kB / 1.491 GB, free: 7.895 MB / 1.186 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002363/1.102, allocations: 269.7 kB / 1.491 GB, free: 7.629 MB / 1.186 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003014/1.102, allocations: 154.5 kB / 1.491 GB, free: 7.473 MB / 1.186 GB Notification: Performance of setup shared object (initialization): time 0.0001436/1.103, allocations: 330 kB / 1.491 GB, free: 7.145 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001509/1.104, allocations: 0.5278 MB / 1.492 GB, free: 6.613 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001599/1.106, allocations: 0.6433 MB / 1.492 GB, free: 5.941 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002967/1.109, allocations: 1.123 MB / 1.494 GB, free: 4.797 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.109, allocations: 0 / 1.494 GB, free: 4.797 MB / 1.186 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003458/1.112, allocations: 1.322 MB / 1.495 GB, free: 3.461 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 4.69e-05/1.112, allocations: 41.69 kB / 1.495 GB, free: 3.414 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.932e-06/1.112, allocations: 0 / 1.495 GB, free: 3.414 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/1.112, allocations: 4 kB / 1.495 GB, free: 3.41 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00153/1.114, allocations: 258.3 kB / 1.495 GB, free: 3.16 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007671/1.115, allocations: 1.193 MB / 1.496 GB, free: 1.922 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/1.116, allocations: 143.5 kB / 1.496 GB, free: 1.781 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.747e-05/1.116, allocations: 31.97 kB / 1.496 GB, free: 1.75 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001804/1.118, allocations: 0.7517 MB / 1.497 GB, free: 0.9961 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001587/1.119, allocations: 0.6433 MB / 1.498 GB, free: 332 kB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002942/1.122, allocations: 1.111 MB / 1.499 GB, free: 15.19 MB / 1.201 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.324e-06/1.122, allocations: 0 / 1.499 GB, free: 15.19 MB / 1.201 GB Notification: Performance of matching and sorting (n=84) (initialization_lambda0): time 0.003416/1.126, allocations: 1.322 MB / 1.5 GB, free: 13.86 MB / 1.201 GB Notification: Performance of prepare postOptimizeDAE: time 3.733e-05/1.126, allocations: 37.64 kB / 1.5 GB, free: 13.81 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.986e-06/1.126, allocations: 0 / 1.5 GB, free: 13.81 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.482e-06/1.126, allocations: 4 kB / 1.5 GB, free: 13.81 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/1.127, allocations: 232.8 kB / 1.5 GB, free: 13.58 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/1.127, allocations: 4 kB / 1.5 GB, free: 13.58 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009969/1.128, allocations: 127.6 kB / 1.501 GB, free: 13.45 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.563e-05/1.128, allocations: 35.91 kB / 1.501 GB, free: 13.42 MB / 1.201 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (hex.i2_w,hex.i1_w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002484/1.128, allocations: 224.1 kB / 1.501 GB, free: 13.19 MB / 1.201 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/1.128, allocations: 115.2 kB / 1.501 GB, free: 13.08 MB / 1.201 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0036/1.132, allocations: 1.345 MB / 1.502 GB, free: 11.72 MB / 1.201 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/1.132, allocations: 8 kB / 1.502 GB, free: 11.71 MB / 1.201 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/1.132, allocations: 0 / 1.502 GB, free: 11.71 MB / 1.201 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/1.132, allocations: 7.969 kB / 1.502 GB, free: 11.71 MB / 1.201 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005612/1.138, allocations: 2.847 MB / 1.505 GB, free: 8.766 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/1.138, allocations: 4 kB / 1.505 GB, free: 8.762 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001219/1.139, allocations: 228.1 kB / 1.505 GB, free: 8.539 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.081e-05/1.139, allocations: 15.94 kB / 1.505 GB, free: 8.523 MB / 1.201 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.52e-05/1.139, allocations: 27.98 kB / 1.505 GB, free: 8.496 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006825/1.14, allocations: 1.184 MB / 1.506 GB, free: 7.266 MB / 1.201 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.14, allocations: 11.94 kB / 1.506 GB, free: 7.254 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003411/1.143, allocations: 1.452 MB / 1.508 GB, free: 5.738 MB / 1.201 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004656/1.144, allocations: 316 kB / 1.508 GB, free: 5.41 MB / 1.201 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001525/1.144, allocations: 20 kB / 1.508 GB, free: 5.391 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/1.145, allocations: 107.8 kB / 1.508 GB, free: 5.285 MB / 1.201 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001487/1.145, allocations: 60.44 kB / 1.508 GB, free: 5.227 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.281e-05/1.145, allocations: 39.97 kB / 1.508 GB, free: 5.188 MB / 1.201 GB Notification: Performance of sorting global known variables: time 0.0007569/1.146, allocations: 0.57 MB / 1.509 GB, free: 4.605 MB / 1.201 GB Notification: Performance of sort global known variables: time 1.2e-07/1.146, allocations: 0 / 1.509 GB, free: 4.605 MB / 1.201 GB Notification: Performance of remove unused functions: time 0.00123/1.147, allocations: 0.5381 MB / 1.51 GB, free: 4.066 MB / 1.201 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (76): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004221/1.151, allocations: 2.163 MB / 1.512 GB, free: 1.836 MB / 1.201 GB Notification: Performance of simCode: created initialization part: time 0.005444/1.157, allocations: 2.014 MB / 1.514 GB, free: 15.8 MB / 1.217 GB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/1.157, allocations: 0 / 1.514 GB, free: 15.8 MB / 1.217 GB Notification: Performance of simCode: created simulation system equations: time 0.001787/1.159, allocations: 0.6559 MB / 1.514 GB, free: 15.14 MB / 1.217 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002382/1.161, allocations: 0.4986 MB / 1.515 GB, free: 14.65 MB / 1.217 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01664/1.178, allocations: 8.674 MB / 1.523 GB, free: 5.746 MB / 1.217 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007461/1.179, allocations: 1.098 MB / 1.524 GB, free: 4.621 MB / 1.217 GB Notification: Performance of simCode: alias equations: time 0.001354/1.18, allocations: 383.5 kB / 1.525 GB, free: 4.242 MB / 1.217 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000662/1.181, allocations: 395.3 kB / 1.525 GB, free: 3.855 MB / 1.217 GB Notification: Performance of SimCode: time 3.71e-07/1.181, allocations: 0 / 1.525 GB, free: 3.855 MB / 1.217 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06016/1.241, allocations: 28.88 MB / 1.553 GB, free: 7.418 MB / 1.248 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.79/14.03, allocations: 16.59 kB / 1.553 GB, free: 7.406 MB / 1.248 GB (rm -f Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe ; mkfifo Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe >> ../files/Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness_res.csv --start-time 0 --stop-time 360 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.144 Buildings_latest_Buildings_Fluid_MassExchangers_Examples_ConstantEffectiveness.fmu > Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_MassExchangers_Examples_ConstantEffectiveness.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches