Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.VectorFunctions,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_VectorFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.VectorFunctions,fileNamePrefix="Buildings_10_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.00101/0.00101, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009796/0.0009796, allocations: 191.5 kB / 16.25 MB, free: 6.633 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.423/1.423, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.579/2.579, allocations: 437 MB / 0.7101 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 59.91 kB / 0.8689 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7219/0.7233, allocations: 151.6 MB / 1.017 GB, free: 2.715 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.VectorFunctions): time 0.002789/0.7261, allocations: 1.655 MB / 1.019 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008102/0.727, allocations: 0.5152 MB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.886e-05/0.727, allocations: 0 / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001144/0.7271, allocations: 7.922 kB / 1.019 GB, free: 0.5195 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.576e-05/0.7272, allocations: 15.88 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000252/0.7274, allocations: 31.95 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001045/0.7276, allocations: 71.78 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.7277, allocations: 44.16 kB / 1.019 GB, free: 364 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.65e-05/0.7278, allocations: 43.89 kB / 1.019 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.467e-05/0.7279, allocations: 39.84 kB / 1.019 GB, free: 280 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.902e-05/0.7279, allocations: 4 kB / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.096e-05/0.728, allocations: 12 kB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.836e-05/0.7281, allocations: 23.86 kB / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.073e-05/0.7281, allocations: 47.72 kB / 1.019 GB, free: 192 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.7283, allocations: 85.95 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.7283, allocations: 0 / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.933e-06/0.7283, allocations: 0 / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.7283, allocations: 0 / 1.019 GB, free: 108 kB / 0.7637 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.0005408/0.7288, allocations: 403 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.7289, allocations: 8.031 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.771e-05/0.7289, allocations: 38.75 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.398e-05/0.729, allocations: 8.844 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001766/0.7291, allocations: 196.1 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.7292, allocations: 12.31 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.649e-05/0.7292, allocations: 8.312 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002616/0.7295, allocations: 119.7 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.7295, allocations: 0 / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.7295, allocations: 0 / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.7295, allocations: 0 / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002261/0.7297, allocations: 103.9 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005772/0.7303, allocations: 376.6 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001385/0.7305, allocations: 62.55 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.7306, allocations: 48.95 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.016e-05/0.7306, allocations: 4 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.793e-05/0.7307, allocations: 30.56 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.323e-06/0.7307, allocations: 0 / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0004493/0.7311, allocations: 181.6 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.718e-05/0.7312, allocations: 55.34 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.625e-05/0.7313, allocations: 132.2 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.7313, allocations: 29.7 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.631e-05/0.7314, allocations: 108.1 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.809e-05/0.7314, allocations: 15.66 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.392e-05/0.7314, allocations: 25.7 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.7316, allocations: 318.8 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.7317, allocations: 43.97 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.408e-05/0.7318, allocations: 35.97 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001998/0.732, allocations: 88.75 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.732, allocations: 4 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002508/0.7322, allocations: 129.5 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.7323, allocations: 4 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.7323, allocations: 0 / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.7323, allocations: 3.938 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/0.7324, allocations: 15.98 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.7324, allocations: 0 / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.903e-05/0.7325, allocations: 11.98 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.275e-05/0.7325, allocations: 4 kB / 1.022 GB, free: 13.3 MB / 0.7794 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.094e-05/0.7326, allocations: 126.4 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.943e-05/0.7327, allocations: 7.906 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003254/0.733, allocations: 138.3 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.733, allocations: 7.875 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.733, allocations: 4 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.733, allocations: 0 / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001911/0.7332, allocations: 205.9 kB / 1.022 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.7332, allocations: 4 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.886e-05/0.7333, allocations: 19.98 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.7334, allocations: 0 / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.7334, allocations: 7.938 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.7334, allocations: 3.938 kB / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.7334, allocations: 0 / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002965/0.7337, allocations: 227.3 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.524e-05/0.7337, allocations: 85.02 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.006e-05/0.7338, allocations: 3.984 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.544e-05/0.7339, allocations: 7.938 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.7339, allocations: 11.98 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.7339, allocations: 4 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.058e-05/0.734, allocations: 100.6 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.734, allocations: 0 / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002271/0.7342, allocations: 19.94 kB / 1.023 GB, free: 12.24 MB / 0.7794 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.000565/0.7348, allocations: 0.7709 MB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002697/0.7351, allocations: 103.9 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.7351, allocations: 0 / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.7352, allocations: 55.91 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002311/0.7355, allocations: 15.92 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.7371, allocations: 1.61 MB / 1.025 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002275/0.7374, allocations: 0.6963 MB / 1.026 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001124/0.7375, allocations: 20.42 kB / 1.026 GB, free: 8.836 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.926e-05/0.7375, allocations: 23.42 kB / 1.026 GB, free: 8.816 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.7375, allocations: 3.938 kB / 1.026 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.045/2.782, allocations: 1.824 MB / 1.028 GB, free: 7.098 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001931/2.783, allocations: 199.4 kB / 1.028 GB, free: 6.848 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.267/5.05, allocations: 5.188 kB / 1.028 GB, free: 6.844 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.VectorFunctions.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.VectorFunctions.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.VectorFunctions.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.VectorFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.VectorFunctions_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_VectorFunctions_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_VectorFunctions.fmu > Buildings_10_Buildings.Utilities.Math.Examples.VectorFunctions.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.VectorFunctions_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_VectorFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.VectorFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches