Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Utilities.Math.Examples.VectorFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sine.y|sine1.y|sine2.y|minVec.y|maxVec.y|aveVec.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions") translateModel(Buildings.Utilities.Math.Examples.VectorFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sine.y|sine1.y|sine2.y|minVec.y|maxVec.y|aveVec.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 100.1 kB / 15.88 MB, free: 12 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.001692/0.001692, allocations: 200.5 kB / 16.79 MB, free: 6.809 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.382/1.382, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.635/2.635, allocations: 461.9 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 66.25 kB / 0.899 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3229, allocations: 157.4 MB / 1.053 GB, free: 8.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.VectorFunctions): time 0.0031/0.3261, allocations: 1.654 MB / 1.054 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009065/0.327, allocations: 0.5104 MB / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.015e-05/0.3271, allocations: 3.938 kB / 1.055 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001073/0.3272, allocations: 3.938 kB / 1.055 GB, free: 6.117 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.068e-05/0.3273, allocations: 7.875 kB / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002171/0.3275, allocations: 35.89 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001382/0.3277, allocations: 83.7 kB / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.3278, allocations: 36.22 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.827e-05/0.3279, allocations: 39.91 kB / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.041e-05/0.328, allocations: 39.78 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.118e-05/0.328, allocations: 8 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.971e-05/0.3281, allocations: 7.984 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.112e-05/0.3282, allocations: 31.91 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.212e-05/0.3282, allocations: 27.81 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001315/0.3284, allocations: 68.11 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.3284, allocations: 0 / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.61e-07/0.3284, allocations: 0 / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.602e-06/0.3284, allocations: 0 / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005954/0.329, allocations: 399.1 kB / 1.056 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.329, allocations: 12.03 kB / 1.056 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.682e-05/0.3291, allocations: 12.83 kB / 1.056 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001878/0.3293, allocations: 192.1 kB / 1.056 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-06/0.3293, allocations: 4.375 kB / 1.056 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.788e-05/0.3293, allocations: 8.375 kB / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002702/0.3296, allocations: 109.9 kB / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.415e-06/0.3296, allocations: 0 / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.3296, allocations: 8 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.3296, allocations: 0 / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002375/0.3299, allocations: 99.86 kB / 1.056 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005953/0.3305, allocations: 376.6 kB / 1.056 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000154/0.3307, allocations: 62.48 kB / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.3308, allocations: 44.95 kB / 1.057 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.818e-05/0.3308, allocations: 11.98 kB / 1.057 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/0.3308, allocations: 34.56 kB / 1.057 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 2.465e-06/0.3309, allocations: 3.984 kB / 1.057 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0005071/0.3314, allocations: 165.5 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/0.3314, allocations: 55.34 kB / 1.057 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.3315, allocations: 136.6 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.3315, allocations: 29.7 kB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.552e-05/0.3316, allocations: 104 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.927e-05/0.3317, allocations: 19.8 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.476e-05/0.3317, allocations: 29.64 kB / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.3318, allocations: 318.8 kB / 1.057 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.332, allocations: 39.97 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.562e-05/0.3321, allocations: 36.22 kB / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002139/0.3323, allocations: 96.88 kB / 1.058 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3323, allocations: 4 kB / 1.058 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002634/0.3326, allocations: 129.5 kB / 1.058 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.3326, allocations: 4 kB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.3326, allocations: 0 / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.3326, allocations: 0 / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.3328, allocations: 19.92 kB / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.523e-06/0.3328, allocations: 4 kB / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.124e-05/0.3329, allocations: 11.98 kB / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.199e-05/0.3329, allocations: 0 / 1.058 GB, free: 2.988 MB / 0.8106 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 (6): * Single equations (assignments): 6 * 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 9.467e-05/0.333, allocations: 125.8 kB / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.185e-05/0.333, allocations: 7.906 kB / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003473/0.3334, allocations: 138.3 kB / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.3334, allocations: 7.938 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3334, allocations: 4 kB / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3334, allocations: 0 / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002238/0.3336, allocations: 209.5 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3336, allocations: 0 / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.3338, allocations: 19.98 kB / 1.058 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.3338, allocations: 0 / 1.058 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.3338, allocations: 4 kB / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.3338, allocations: 4.062 kB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3338, allocations: 7.984 kB / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003238/0.3341, allocations: 219.3 kB / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.575e-05/0.3342, allocations: 89 kB / 1.059 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.3342, allocations: 4 kB / 1.059 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.3343, allocations: 7.938 kB / 1.059 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.082e-05/0.3344, allocations: 7.984 kB / 1.059 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.3344, allocations: 8 kB / 1.059 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.595e-05/0.3345, allocations: 105.3 kB / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3345, allocations: 0 / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002403/0.3347, allocations: 12 kB / 1.059 GB, free: 1.93 MB / 0.8106 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 (6): * Single equations (assignments): 6 * 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.0001528/0.3349, allocations: 107.2 kB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002857/0.3352, allocations: 91.94 kB / 1.059 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3352, allocations: 4 kB / 1.059 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.3353, allocations: 59.89 kB / 1.059 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/0.3355, allocations: 4 kB / 1.059 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005012/0.3361, allocations: 266.7 kB / 1.059 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.3364, allocations: 0.7022 MB / 1.06 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.142e-05/0.3364, allocations: 15.42 kB / 1.06 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of SimCode: time 3.11e-07/0.3364, allocations: 0 / 1.06 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of Templates: time 0.003136/0.3396, allocations: 1.109 MB / 1.061 GB, free: 15.52 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_VectorFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches