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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Utilities.Math.Examples.VectorFunctions,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_VectorFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.VectorFunctions,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_VectorFunctions",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.007922/0.007922, allocations: 101.3 kB / 15.73 MB, free: 6.016 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.001746/0.001746, allocations: 188.1 kB / 16.67 MB, free: 5.949 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.874/2.874, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 64.05 kB / 1.054 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2992, allocations: 157.4 MB / 1.207 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.VectorFunctions): time 0.003137/0.3023, allocations: 1.585 MB / 1.209 GB, free: 8.574 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001101/0.3035, allocations: 0.507 MB / 1.209 GB, free: 8.062 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.743e-05/0.3036, allocations: 0 / 1.209 GB, free: 8.062 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001334/0.3037, allocations: 11.86 kB / 1.209 GB, free: 8.051 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.272e-05/0.3038, allocations: 15.88 kB / 1.209 GB, free: 8.035 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000318/0.3042, allocations: 43.88 kB / 1.209 GB, free: 7.992 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001456/0.3043, allocations: 75.77 kB / 1.209 GB, free: 7.918 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.3045, allocations: 48.02 kB / 1.21 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.3046, allocations: 35.91 kB / 1.21 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.934e-05/0.3047, allocations: 39.83 kB / 1.21 GB, free: 7.797 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/0.3048, allocations: 8 kB / 1.21 GB, free: 7.789 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.797e-05/0.3048, allocations: 12 kB / 1.21 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.045e-05/0.3049, allocations: 31.84 kB / 1.21 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.497e-05/0.305, allocations: 43.67 kB / 1.21 GB, free: 7.703 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001697/0.3051, allocations: 87.92 kB / 1.21 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3052, allocations: 4 kB / 1.21 GB, free: 7.613 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.793e-06/0.3052, allocations: 0 / 1.21 GB, free: 7.613 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.378e-06/0.3052, allocations: 0 / 1.21 GB, free: 7.613 MB / 0.9669 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.0005648/0.3057, allocations: 407 kB / 1.21 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.3058, allocations: 8.625 kB / 1.21 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.025e-05/0.3058, allocations: 38.75 kB / 1.21 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.959e-05/0.3059, allocations: 8.844 kB / 1.21 GB, free: 7.105 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001909/0.3061, allocations: 201.3 kB / 1.21 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.3061, allocations: 4.375 kB / 1.21 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.847e-05/0.3061, allocations: 8.375 kB / 1.21 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.3064, allocations: 111.6 kB / 1.211 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.3064, allocations: 0 / 1.211 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.3064, allocations: 4 kB / 1.211 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.3064, allocations: 0 / 1.211 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002373/0.3067, allocations: 91.94 kB / 1.211 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006568/0.3074, allocations: 384.5 kB / 1.211 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001574/0.3075, allocations: 62.53 kB / 1.211 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.3076, allocations: 52.89 kB / 1.211 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.471e-05/0.3077, allocations: 4 kB / 1.211 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.3077, allocations: 38.56 kB / 1.211 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.302e-06/0.3077, allocations: 0 / 1.211 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0005613/0.3083, allocations: 165.5 kB / 1.211 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/0.3084, allocations: 59.33 kB / 1.211 GB, free: 5.812 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.3085, allocations: 127.4 kB / 1.211 GB, free: 5.68 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.3085, allocations: 29.7 kB / 1.211 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.327e-05/0.3086, allocations: 104 kB / 1.212 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.1e-05/0.3086, allocations: 23.78 kB / 1.212 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.197e-05/0.3087, allocations: 25.7 kB / 1.212 GB, free: 5.484 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001155/0.3088, allocations: 310.8 kB / 1.212 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.3089, allocations: 47.84 kB / 1.212 GB, free: 5.125 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001062/0.309, allocations: 39.97 kB / 1.212 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002143/0.3092, allocations: 92.8 kB / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3093, allocations: 0 / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002694/0.3095, allocations: 125.5 kB / 1.212 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.3096, allocations: 8 kB / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.3096, allocations: 0 / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.3096, allocations: 3.938 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.3097, allocations: 23.92 kB / 1.212 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.3098, allocations: 0 / 1.212 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.134e-05/0.3098, allocations: 11.98 kB / 1.212 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.3099, allocations: 3.938 kB / 1.212 GB, free: 4.812 MB / 0.9669 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 8.283e-05/0.3099, allocations: 117.8 kB / 1.212 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.435e-05/0.31, allocations: 11.89 kB / 1.212 GB, free: 4.676 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003487/0.3103, allocations: 142.3 kB / 1.213 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.3104, allocations: 3.938 kB / 1.213 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3104, allocations: 4.5 kB / 1.213 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.3104, allocations: 0 / 1.213 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002073/0.3106, allocations: 205.5 kB / 1.213 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.3106, allocations: 4 kB / 1.213 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.3107, allocations: 23.91 kB / 1.213 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.3107, allocations: 0 / 1.213 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.3107, allocations: 7.984 kB / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.3108, allocations: 7.938 kB / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3108, allocations: 4 kB / 1.213 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003119/0.3111, allocations: 215.4 kB / 1.213 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.619e-05/0.3111, allocations: 85.02 kB / 1.213 GB, free: 3.895 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.3112, allocations: 0 / 1.213 GB, free: 3.895 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.3113, allocations: 15.92 kB / 1.213 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.958e-05/0.3113, allocations: 11.98 kB / 1.213 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.3113, allocations: 4 kB / 1.213 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.195e-05/0.3114, allocations: 100.7 kB / 1.213 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.334e-06/0.3114, allocations: 0 / 1.213 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002465/0.3117, allocations: 19.84 kB / 1.213 GB, free: 3.746 MB / 0.9669 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.0006416/0.3123, allocations: 0.7626 MB / 1.214 GB, free: 2.961 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002833/0.3126, allocations: 111.8 kB / 1.214 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3126, allocations: 0 / 1.214 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001227/0.3127, allocations: 47.97 kB / 1.214 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.313, allocations: 11.89 kB / 1.214 GB, free: 2.793 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001776/0.3148, allocations: 1.607 MB / 1.216 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/0.315, allocations: 0.7002 MB / 1.216 GB, free: 384 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001288/0.3152, allocations: 23.97 kB / 1.216 GB, free: 360 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.527e-05/0.3152, allocations: 27.42 kB / 1.216 GB, free: 332 kB / 0.9669 GB Notification: Performance of SimCode: time 3.5e-07/0.3152, allocations: 0 / 1.216 GB, free: 332 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01826/0.3335, allocations: 2.02 MB / 1.218 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.721/8.055, allocations: 8.531 kB / 1.218 GB, free: 14.39 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_VectorFunctions_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_VectorFunctions.fmu > 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