Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.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: translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hANatCyl.hA",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hANatCyl.hA",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 104 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001599/0.001599, allocations: 195.5 kB / 16.53 MB, free: 6.684 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.346/1.346, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.347/2.347, allocations: 390.2 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 75.86 kB / 0.8125 GB, free: 14.47 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6865/0.6877, allocations: 140.4 MB / 0.9496 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.005388/0.6931, allocations: 4.581 MB / 0.9541 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000966/0.6941, allocations: 0.8243 MB / 0.9549 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.922e-05/0.6942, allocations: 1.156 kB / 0.9549 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001778/0.6944, allocations: 32.58 kB / 0.9549 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.242e-05/0.6945, allocations: 31.95 kB / 0.9549 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004827/0.695, allocations: 170.8 kB / 0.9551 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001626/0.6952, allocations: 176.1 kB / 0.9553 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.787e-05/0.6953, allocations: 16.69 kB / 0.9553 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.6955, allocations: 84.75 kB / 0.9554 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.764e-05/0.6956, allocations: 77.14 kB / 0.9554 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.883e-05/0.6956, allocations: 17.36 kB / 0.9554 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003151/0.6959, allocations: 153.8 kB / 0.9556 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.631e-05/0.696, allocations: 27.53 kB / 0.9556 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.561e-05/0.696, allocations: 71.86 kB / 0.9557 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003066/0.6963, allocations: 237.6 kB / 0.9559 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.6964, allocations: 0 / 0.9559 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.582e-06/0.6964, allocations: 0 / 0.9559 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.461e-06/0.6964, allocations: 0 / 0.9559 GB, free: 4.012 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008289/0.6972, allocations: 485.3 kB / 0.9564 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.6973, allocations: 12.47 kB / 0.9564 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.722e-05/0.6973, allocations: 15.31 kB / 0.9564 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.657e-05/0.6974, allocations: 187 kB / 0.9566 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.6974, allocations: 8.562 kB / 0.9566 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.541e-05/0.6975, allocations: 15.19 kB / 0.9566 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003217/0.6978, allocations: 118.3 kB / 0.9567 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.6978, allocations: 0 / 0.9567 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.6978, allocations: 5.312 kB / 0.9567 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.6979, allocations: 1.25 kB / 0.9567 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003886/0.6983, allocations: 141.7 kB / 0.9569 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009084/0.6992, allocations: 472.8 kB / 0.9573 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002847/0.6995, allocations: 123.1 kB / 0.9574 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000199/0.6997, allocations: 74.36 kB / 0.9575 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001201/0.7009, allocations: 0.9602 MB / 0.9584 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.067e-05/0.7009, allocations: 39.5 kB / 0.9585 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.513e-06/0.7009, allocations: 0 / 0.9585 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0006811/0.7016, allocations: 215.1 kB / 0.9587 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.628e-05/0.7017, allocations: 52.94 kB / 0.9587 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.7018, allocations: 162 kB / 0.9589 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.7018, allocations: 25.7 kB / 0.9589 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.593e-05/0.7019, allocations: 113.1 kB / 0.959 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.428e-05/0.7019, allocations: 45.33 kB / 0.9591 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.777e-05/0.702, allocations: 50.7 kB / 0.9591 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.106e-05/0.702, allocations: 323.7 kB / 0.9594 GB, free: 0.7461 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/0.7023, allocations: 79.28 kB / 0.9595 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002225/0.7025, allocations: 116.5 kB / 0.9596 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000386/0.7029, allocations: 176.4 kB / 0.9598 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.7029, allocations: 5.375 kB / 0.9598 GB, free: 0.5195 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005206/0.7034, allocations: 235.5 kB / 0.96 GB, free: 408 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.7034, allocations: 13.38 kB / 0.96 GB, free: 400 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.7035, allocations: 7.969 kB / 0.96 GB, free: 392 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.7035, allocations: 2.75 kB / 0.96 GB, free: 392 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002793/0.7038, allocations: 57.25 kB / 0.9601 GB, free: 376 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.7038, allocations: 1.312 kB / 0.9601 GB, free: 376 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001586/0.7039, allocations: 30.45 kB / 0.9601 GB, free: 356 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.771e-05/0.704, allocations: 14.38 kB / 0.9601 GB, free: 348 kB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (26): * Single equations (assignments): 26 * 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 8.066e-05/0.7041, allocations: 127.4 kB / 0.9602 GB, free: 216 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.523e-05/0.7041, allocations: 12.91 kB / 0.9603 GB, free: 208 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004681/0.7046, allocations: 177 kB / 0.9604 GB, free: 96 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.7046, allocations: 1.656 kB / 0.9604 GB, free: 96 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.7046, allocations: 0 / 0.9604 GB, free: 96 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.7046, allocations: 0.7812 kB / 0.9604 GB, free: 96 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002384/0.7049, allocations: 217.7 kB / 0.9606 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.7049, allocations: 0.9688 kB / 0.9606 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001674/0.705, allocations: 33.16 kB / 0.9607 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.7051, allocations: 12.97 kB / 0.9607 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.7051, allocations: 5.156 kB / 0.9607 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.7051, allocations: 1.062 kB / 0.9607 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.7051, allocations: 0 / 0.9607 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004903/0.7056, allocations: 244.1 kB / 0.9609 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.839e-05/0.7057, allocations: 113.9 kB / 0.961 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.774e-05/0.7057, allocations: 5.469 kB / 0.961 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.7059, allocations: 11.42 kB / 0.961 GB, free: 15.51 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.301e-05/0.7059, allocations: 8.328 kB / 0.9611 GB, free: 15.51 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.7059, allocations: 6.188 kB / 0.9611 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.431e-05/0.706, allocations: 112.5 kB / 0.9612 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.706, allocations: 0 / 0.9612 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003792/0.7064, allocations: 57.38 kB / 0.9612 GB, free: 15.4 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (12): * Single equations (assignments): 12 * 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 Backend phase and start with SimCode phase: time 0.0003506/0.7068, allocations: 168.7 kB / 0.9614 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005611/0.7074, allocations: 175.9 kB / 0.9615 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.7074, allocations: 0 / 0.9615 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002108/0.7076, allocations: 67.64 kB / 0.9616 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004156/0.708, allocations: 20.77 kB / 0.9616 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005495/0.7086, allocations: 254.8 kB / 0.9619 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003023/0.7089, allocations: 0.7063 MB / 0.9626 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001077/0.709, allocations: 25.58 kB / 0.9626 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.144e-05/0.7091, allocations: 15.44 kB / 0.9626 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of SimCode: time 1.633e-06/0.7091, allocations: 0 / 0.9626 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of Templates: time 0.00626/0.7153, allocations: 2.727 MB / 0.9653 GB, free: 12.84 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches