Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.Average.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001395/0.001395, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.57/2.57, allocations: 390.9 MB / 0.666 GB, free: 2.488 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000333/0.0003332, allocations: 8 kB / 0.8153 GB, free: 13.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9254/0.9258, allocations: 142.4 MB / 0.9544 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001967/0.9278, allocations: 1.234 MB / 0.9556 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003839/0.9282, allocations: 112.2 kB / 0.9557 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.666e-05/0.9283, allocations: 5.094 kB / 0.9557 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.9284, allocations: 3.938 kB / 0.9558 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.888e-05/0.9285, allocations: 13.47 kB / 0.9558 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.9288, allocations: 19.11 kB / 0.9558 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.9289, allocations: 47.31 kB / 0.9558 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.929, allocations: 26.56 kB / 0.9559 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.545e-05/0.9291, allocations: 15.98 kB / 0.9559 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.768e-05/0.9292, allocations: 31.52 kB / 0.9559 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.075e-05/0.9292, allocations: 2.031 kB / 0.9559 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.099e-05/0.9293, allocations: 5.344 kB / 0.9559 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.912e-05/0.9293, allocations: 14.86 kB / 0.9559 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.791e-05/0.9294, allocations: 29.3 kB / 0.9559 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001234/0.9295, allocations: 39.56 kB / 0.956 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.847e-06/0.9295, allocations: 5.312 kB / 0.956 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.773e-06/0.9295, allocations: 0 / 0.956 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.511e-06/0.9296, allocations: 0 / 0.956 GB, free: 6.484 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000562/0.9301, allocations: 385.4 kB / 0.9564 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.549e-05/0.9302, allocations: 13 kB / 0.9564 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.88e-05/0.9303, allocations: 6.906 kB / 0.9564 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001801/0.9304, allocations: 186.8 kB / 0.9566 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.9305, allocations: 1.344 kB / 0.9566 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.9305, allocations: 6.625 kB / 0.9566 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002993/0.9308, allocations: 102.4 kB / 0.9567 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.9308, allocations: 0 / 0.9567 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.9308, allocations: 1.25 kB / 0.9567 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.9308, allocations: 5.141 kB / 0.9567 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000307/0.9312, allocations: 107.9 kB / 0.9568 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005444/0.9317, allocations: 334.7 kB / 0.9571 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002165/0.9319, allocations: 75.3 kB / 0.9572 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001487/0.9321, allocations: 50.61 kB / 0.9572 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.178e-05/0.9321, allocations: 5.422 kB / 0.9572 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.99e-05/0.9322, allocations: 31.91 kB / 0.9572 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.333e-06/0.9322, allocations: 7.938 kB / 0.9573 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005715/0.9328, allocations: 176.2 kB / 0.9574 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.9328, allocations: 51.41 kB / 0.9575 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.899e-05/0.9329, allocations: 115 kB / 0.9576 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.124e-05/0.9329, allocations: 29.7 kB / 0.9576 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.257e-05/0.9329, allocations: 94.88 kB / 0.9577 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.175e-05/0.933, allocations: 14.84 kB / 0.9577 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-06/0.933, allocations: 0 / 0.9577 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.457e-05/0.9331, allocations: 320.2 kB / 0.958 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.9332, allocations: 43.17 kB / 0.9581 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.9333, allocations: 49.8 kB / 0.9581 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001399/0.9335, allocations: 43.19 kB / 0.9581 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.9335, allocations: 0 / 0.9581 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003255/0.9338, allocations: 128.2 kB / 0.9583 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.9339, allocations: 5.781 kB / 0.9583 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.9339, allocations: 0 / 0.9583 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.9339, allocations: 0 / 0.9583 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.934, allocations: 23.3 kB / 0.9583 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.934, allocations: 1.688 kB / 0.9583 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.712e-05/0.9341, allocations: 26.72 kB / 0.9583 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.57e-05/0.9342, allocations: 5.859 kB / 0.9583 GB, free: 4.438 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.583e-05/0.9342, allocations: 113.6 kB / 0.9584 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.037e-05/0.9343, allocations: 11.45 kB / 0.9584 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003554/0.9346, allocations: 134.3 kB / 0.9586 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.9346, allocations: 0 / 0.9586 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.9347, allocations: 1.344 kB / 0.9586 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.9347, allocations: 4 kB / 0.9586 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000154/0.9348, allocations: 174.7 kB / 0.9587 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.9348, allocations: 0 / 0.9587 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.937e-05/0.9349, allocations: 23.11 kB / 0.9588 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.349e-06/0.9349, allocations: 9.266 kB / 0.9588 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.9349, allocations: 0 / 0.9588 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.935, allocations: 5.312 kB / 0.9588 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.935, allocations: 3.938 kB / 0.9588 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00032/0.9353, allocations: 228.1 kB / 0.959 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.177e-05/0.9353, allocations: 78.48 kB / 0.9591 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.832e-05/0.9353, allocations: 9.328 kB / 0.9591 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.765e-05/0.9354, allocations: 18.97 kB / 0.9591 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.898e-05/0.9355, allocations: 1.375 kB / 0.9591 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/0.9355, allocations: 1.375 kB / 0.9591 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.508e-05/0.9355, allocations: 99.89 kB / 0.9592 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.9356, allocations: 1.375 kB / 0.9592 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002273/0.9358, allocations: 8.25 kB / 0.9592 GB, free: 3.617 MB / 0.7169 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001514/0.9359, allocations: 100.9 kB / 0.9593 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003294/0.9363, allocations: 105.7 kB / 0.9594 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.9363, allocations: 1.375 kB / 0.9594 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001425/0.9364, allocations: 52.58 kB / 0.9595 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/0.9367, allocations: 9.516 kB / 0.9595 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003336/0.9371, allocations: 161.1 kB / 0.9596 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001229/0.9372, allocations: 0.6885 MB / 0.9603 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.617e-05/0.9373, allocations: 8.938 kB / 0.9603 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.308e-05/0.9373, allocations: 9.344 kB / 0.9603 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of SimCode: time 8.01e-07/0.9373, allocations: 0.8438 kB / 0.9603 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of Templates: time 0.003227/0.9405, allocations: 0.617 MB / 0.9609 GB, free: 2.27 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches