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.001155/0.001155, allocations: 108 kB / 15.61 MB, free: 152 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.001266/0.001266, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.326/1.326, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.724/2.724, allocations: 469.4 MB / 0.742 GB, free: 7.727 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 65.92 kB / 0.9083 GB, free: 34.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2827, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.VectorFunctions): time 0.00301/0.2858, allocations: 1.601 MB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009073/0.2867, allocations: 0.5083 MB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.576e-05/0.2868, allocations: 0 / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.287, allocations: 15.88 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.932e-05/0.287, allocations: 15.8 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.2873, allocations: 31.95 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.2874, allocations: 87.7 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.2876, allocations: 36.22 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.2877, allocations: 39.84 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.336e-05/0.2878, allocations: 35.84 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.311e-05/0.2878, allocations: 7.938 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.323e-05/0.2879, allocations: 19.98 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.675e-05/0.2879, allocations: 19.92 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.467e-05/0.288, allocations: 47.72 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001575/0.2882, allocations: 91.92 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.2882, allocations: 0 / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2882, allocations: 0 / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.2882, allocations: 0 / 1.066 GB, free: 11.96 MB / 0.8262 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.0005982/0.2888, allocations: 395.1 kB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.2889, allocations: 8.031 kB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.001e-05/0.2889, allocations: 42.73 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.287e-05/0.289, allocations: 12.75 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002066/0.2892, allocations: 204.1 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.2892, allocations: 384 / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.75e-05/0.2892, allocations: 8.375 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002891/0.2895, allocations: 107.2 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.2895, allocations: 0 / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.2896, allocations: 0 / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.2896, allocations: 0 / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002426/0.2898, allocations: 103.9 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006365/0.2905, allocations: 384.4 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001573/0.2906, allocations: 62.48 kB / 1.067 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.2908, allocations: 48.95 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.075e-05/0.2908, allocations: 7.984 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.382e-05/0.2909, allocations: 30.56 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.373e-06/0.2909, allocations: 0 / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0004817/0.2914, allocations: 161.8 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.2914, allocations: 55.34 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.2915, allocations: 139.3 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.2915, allocations: 25.7 kB / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.652e-05/0.2916, allocations: 104 kB / 1.068 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.762e-05/0.2916, allocations: 27.81 kB / 1.068 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.991e-05/0.2917, allocations: 13.72 kB / 1.068 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.769e-05/0.2918, allocations: 318.8 kB / 1.068 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.2919, allocations: 48.03 kB / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.943e-05/0.292, allocations: 39.97 kB / 1.068 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002099/0.2922, allocations: 88.8 kB / 1.068 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2922, allocations: 0 / 1.068 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002699/0.2925, allocations: 125.5 kB / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.2925, allocations: 4 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.2926, allocations: 0 / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.2926, allocations: 3.938 kB / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.2927, allocations: 31.84 kB / 1.069 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.2927, allocations: 4 kB / 1.069 GB, free: 9.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.355e-05/0.2928, allocations: 7.906 kB / 1.069 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.231e-05/0.2928, allocations: 11.92 kB / 1.069 GB, free: 9.16 MB / 0.8262 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.536e-05/0.2929, allocations: 119.6 kB / 1.069 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.281e-05/0.293, allocations: 4 kB / 1.069 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003422/0.2933, allocations: 146.2 kB / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.2933, allocations: 7.938 kB / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.2933, allocations: 0 / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2934, allocations: 0 / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.2936, allocations: 205.5 kB / 1.069 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2936, allocations: 4.25 kB / 1.069 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.2937, allocations: 19.98 kB / 1.069 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.2937, allocations: 7.969 kB / 1.069 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-06/0.2937, allocations: 4 kB / 1.069 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.2937, allocations: 3.938 kB / 1.069 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2937, allocations: 0 / 1.069 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003155/0.294, allocations: 223.4 kB / 1.069 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.561e-05/0.2941, allocations: 85.02 kB / 1.069 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/0.2941, allocations: 0 / 1.069 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.2942, allocations: 11.92 kB / 1.069 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.137e-05/0.2943, allocations: 8 kB / 1.069 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.2943, allocations: 11.92 kB / 1.069 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.659e-05/0.2944, allocations: 101.1 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.01e-07/0.2944, allocations: 0 / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002519/0.2947, allocations: 16 kB / 1.07 GB, free: 8.105 MB / 0.8262 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.0006474/0.2953, allocations: 0.7637 MB / 1.07 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000288/0.2956, allocations: 111.9 kB / 1.07 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2956, allocations: 0 / 1.07 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001209/0.2957, allocations: 47.97 kB / 1.07 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.296, allocations: 11.94 kB / 1.071 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001786/0.2978, allocations: 1.589 MB / 1.072 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002705/0.2981, allocations: 0.7002 MB / 1.073 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001304/0.2982, allocations: 20.41 kB / 1.073 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.05e-05/0.2983, allocations: 35.36 kB / 1.073 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2983, allocations: 0 / 1.073 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01878/0.3171, allocations: 1.96 MB / 1.075 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.257/7.574, allocations: 23.11 kB / 1.075 GB, free: 2.789 MB / 0.8262 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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