Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.VectorFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sine.y|sine1.y|sine2.y|minVec.y|maxVec.y|aveVec.y",fileNamePrefix="Buildings_9_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_9_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.001108/0.001108, allocations: 90.75 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.001483/0.001483, 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.419/1.419, allocations: 223.3 MB / 240 MB, free: 5.309 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.625/2.625, allocations: 390.9 MB / 0.666 GB, free: 2.465 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003294/0.0003297, allocations: 12 kB / 0.8154 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7401/0.7405, allocations: 142.4 MB / 0.9544 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.VectorFunctions): time 0.001687/0.7422, allocations: 1.291 MB / 0.9557 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007504/0.743, allocations: 486.7 kB / 0.9562 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.25e-05/0.743, allocations: 1.406 kB / 0.9562 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.7432, allocations: 13.2 kB / 0.9562 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.604e-05/0.7432, allocations: 17.64 kB / 0.9562 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002075/0.7434, allocations: 31.59 kB / 0.9562 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001043/0.7435, allocations: 67.41 kB / 0.9563 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.7437, allocations: 43.89 kB / 0.9563 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.534e-05/0.7438, allocations: 23.39 kB / 0.9563 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.991e-05/0.7439, allocations: 27.23 kB / 0.9564 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.656e-05/0.7439, allocations: 1.188 kB / 0.9564 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.147e-05/0.744, allocations: 9.547 kB / 0.9564 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.684e-05/0.744, allocations: 20.97 kB / 0.9564 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.027e-05/0.7441, allocations: 38.77 kB / 0.9564 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.7442, allocations: 50.94 kB / 0.9565 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.7442, allocations: 5.281 kB / 0.9565 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.463e-06/0.7442, allocations: 0 / 0.9565 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.14e-06/0.7442, allocations: 4 kB / 0.9565 GB, free: 6.094 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004802/0.7447, allocations: 385 kB / 0.9569 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.7448, allocations: 9.281 kB / 0.9569 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.267e-05/0.7448, allocations: 12.33 kB / 0.9569 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001626/0.745, allocations: 200.8 kB / 0.9571 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.745, allocations: 7.5 kB / 0.9571 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.745, allocations: 12.22 kB / 0.9571 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002659/0.7453, allocations: 108.9 kB / 0.9572 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.7453, allocations: 1.125 kB / 0.9572 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.7453, allocations: 4 kB / 0.9572 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.7453, allocations: 2.188 kB / 0.9572 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002407/0.7456, allocations: 113.7 kB / 0.9573 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005865/0.7462, allocations: 385.3 kB / 0.9577 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001507/0.7463, allocations: 73.69 kB / 0.9577 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.7465, allocations: 54.17 kB / 0.9578 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.487e-05/0.7465, allocations: 11.45 kB / 0.9578 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.781e-05/0.7465, allocations: 30.56 kB / 0.9578 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.7466, allocations: 1.188 kB / 0.9578 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004685/0.747, allocations: 184 kB / 0.958 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.004e-05/0.7471, allocations: 51.41 kB / 0.9581 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001255/0.7472, allocations: 137.5 kB / 0.9582 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.243e-05/0.7472, allocations: 25.7 kB / 0.9582 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.747e-05/0.7473, allocations: 108.5 kB / 0.9583 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.615e-05/0.7473, allocations: 15.34 kB / 0.9583 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.233e-06/0.7473, allocations: 0 / 0.9583 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.737e-05/0.7474, allocations: 325.8 kB / 0.9586 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.7475, allocations: 42.97 kB / 0.9587 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.7476, allocations: 48.69 kB / 0.9587 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001162/0.7477, allocations: 49.94 kB / 0.9588 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.7478, allocations: 0 / 0.9588 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002503/0.748, allocations: 139.8 kB / 0.9589 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.748, allocations: 5.094 kB / 0.9589 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.748, allocations: 0 / 0.9589 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.7481, allocations: 0 / 0.9589 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.7482, allocations: 24.78 kB / 0.9589 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.523e-06/0.7482, allocations: 0 / 0.9589 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.651e-05/0.7483, allocations: 20.09 kB / 0.959 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.762e-05/0.7483, allocations: 6.734 kB / 0.959 GB, free: 3.957 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 (6): * Single equations (assignments): 6 * 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.769e-05/0.7484, allocations: 119.3 kB / 0.9591 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.973e-05/0.7484, allocations: 15.92 kB / 0.9591 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003207/0.7488, allocations: 155.5 kB / 0.9592 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.7488, allocations: 0 / 0.9592 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.7488, allocations: 9.406 kB / 0.9593 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.7488, allocations: 4 kB / 0.9593 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.749, allocations: 198.4 kB / 0.9594 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.749, allocations: 0 / 0.9594 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.83e-05/0.7491, allocations: 27.05 kB / 0.9595 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.7491, allocations: 5.328 kB / 0.9595 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.7491, allocations: 9.359 kB / 0.9595 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.7491, allocations: 0 / 0.9595 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.7491, allocations: 0 / 0.9595 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002713/0.7494, allocations: 232.1 kB / 0.9597 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.456e-05/0.7494, allocations: 83.77 kB / 0.9598 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.839e-05/0.7495, allocations: 3.953 kB / 0.9598 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.472e-05/0.7496, allocations: 16.23 kB / 0.9598 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.874e-05/0.7496, allocations: 2.75 kB / 0.9598 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.7496, allocations: 6.734 kB / 0.9598 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.19e-05/0.7497, allocations: 107.7 kB / 0.9599 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7497, allocations: 0 / 0.9599 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002349/0.7499, allocations: 20.31 kB / 0.9599 GB, free: 3.094 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 (6): * Single equations (assignments): 6 * 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.0001352/0.7501, allocations: 104.8 kB / 0.96 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000278/0.7504, allocations: 116.8 kB / 0.9602 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.7504, allocations: 3.938 kB / 0.9602 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000119/0.7505, allocations: 53.56 kB / 0.9602 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002367/0.7507, allocations: 5.281 kB / 0.9602 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004672/0.7512, allocations: 253.3 kB / 0.9605 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001328/0.7514, allocations: 0.6998 MB / 0.9611 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001001/0.7515, allocations: 15.67 kB / 0.9612 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.891e-05/0.7515, allocations: 11.38 kB / 0.9612 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.7515, allocations: 0 / 0.9612 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of Templates: time 0.003134/0.7547, allocations: 0.5961 MB / 0.9617 GB, free: 1.691 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_VectorFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.VectorFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches