Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.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.QuadraticLinear,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_QuadraticLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.QuadraticLinear,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_QuadraticLinear",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.001245/0.001245, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001454/0.001455, allocations: 193.9 kB / 16.25 MB, free: 6.621 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.468/1.468, allocations: 222.9 MB / 239.9 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.657/2.657, allocations: 461.9 MB / 0.7343 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002209/0.002209, allocations: 62.91 kB / 0.8987 GB, free: 37.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2779, allocations: 157.4 MB / 1.052 GB, free: 8.605 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.QuadraticLinear): time 0.00256/0.2805, allocations: 1.565 MB / 1.054 GB, free: 7.023 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002699/0.2808, allocations: 107.7 kB / 1.054 GB, free: 6.918 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.158e-05/0.2808, allocations: 0 / 1.054 GB, free: 6.918 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.412e-05/0.2809, allocations: 3.984 kB / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.429e-05/0.281, allocations: 15.92 kB / 1.054 GB, free: 6.898 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001833/0.2812, allocations: 19.92 kB / 1.054 GB, free: 6.879 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.415e-05/0.2812, allocations: 47.84 kB / 1.054 GB, free: 6.832 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.312e-05/0.2813, allocations: 11.98 kB / 1.054 GB, free: 6.82 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.366e-05/0.2814, allocations: 15.92 kB / 1.054 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.188e-05/0.2814, allocations: 23.92 kB / 1.054 GB, free: 6.781 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.545e-05/0.2814, allocations: 4 kB / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.958e-05/0.2815, allocations: 19.98 kB / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.15e-05/0.2816, allocations: 15.97 kB / 1.054 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.059e-05/0.2816, allocations: 31.8 kB / 1.054 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001071/0.2817, allocations: 47.88 kB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.2817, allocations: 4 kB / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2817, allocations: 3.938 kB / 1.054 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.2817, allocations: 0 / 1.054 GB, free: 6.656 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004474/0.2822, allocations: 377 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.2822, allocations: 8.625 kB / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.513e-05/0.2823, allocations: 38.75 kB / 1.055 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.767e-05/0.2823, allocations: 8.844 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001036/0.2824, allocations: 179.4 kB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.2824, allocations: 4.375 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.516e-06/0.2824, allocations: 8.25 kB / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002339/0.2827, allocations: 70.22 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.2827, allocations: 3.938 kB / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.2827, allocations: 4 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.2827, allocations: 0 / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002582/0.283, allocations: 83.86 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003115/0.2833, allocations: 284.8 kB / 1.055 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/0.2835, allocations: 66.53 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001378/0.2836, allocations: 44.91 kB / 1.055 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002179/0.2839, allocations: 109.1 kB / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.414e-05/0.2839, allocations: 34.56 kB / 1.056 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.2839, allocations: 7.938 kB / 1.056 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004939/0.2844, allocations: 141.5 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.599e-05/0.2844, allocations: 51.41 kB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.969e-05/0.2845, allocations: 129.8 kB / 1.056 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.159e-05/0.2846, allocations: 29.7 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.213e-05/0.2846, allocations: 88.14 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.836e-05/0.2846, allocations: 11.81 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.289e-05/0.2847, allocations: 17.7 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.27e-05/0.2848, allocations: 314.8 kB / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.2849, allocations: 39.95 kB / 1.056 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.285, allocations: 35.97 kB / 1.056 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002522/0.2853, allocations: 88.64 kB / 1.056 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2853, allocations: 0 / 1.056 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002947/0.2856, allocations: 110 kB / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.2856, allocations: 5.094 kB / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.2856, allocations: 0 / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.346e-06/0.2856, allocations: 0 / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.2858, allocations: 19.97 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.2858, allocations: 0 / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.149e-05/0.2858, allocations: 11.98 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.882e-06/0.2859, allocations: 0 / 1.057 GB, free: 4.031 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 (3): * Single equations (assignments): 3 * 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 6.936e-05/0.2859, allocations: 121.8 kB / 1.057 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.698e-05/0.286, allocations: 11.89 kB / 1.057 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003264/0.2863, allocations: 121.4 kB / 1.057 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.2863, allocations: 0 / 1.057 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2863, allocations: 3.938 kB / 1.057 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.2863, allocations: 0 / 1.057 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.2865, allocations: 193.6 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2865, allocations: 0 / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.461e-05/0.2866, allocations: 11.98 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.2866, allocations: 4 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.2866, allocations: 3.938 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2866, allocations: 0 / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2866, allocations: 0 / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00033/0.287, allocations: 215.2 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.107e-05/0.287, allocations: 85.02 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.287, allocations: 3.984 kB / 1.057 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.973e-05/0.2871, allocations: 11.98 kB / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.951e-05/0.2871, allocations: 0 / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.2872, allocations: 4 kB / 1.057 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.552e-05/0.2872, allocations: 103.3 kB / 1.057 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2872, allocations: 0 / 1.057 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002161/0.2874, allocations: 11.98 kB / 1.057 GB, free: 3.039 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 (3): * Single equations (assignments): 3 * 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.0005622/0.288, allocations: 0.7436 MB / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003024/0.2883, allocations: 79.92 kB / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.2883, allocations: 0 / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.2885, allocations: 39.95 kB / 1.058 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002247/0.2887, allocations: 15.94 kB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004157/0.2891, allocations: 202.9 kB / 1.059 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001883/0.2893, allocations: 0.6924 MB / 1.059 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.852e-05/0.2894, allocations: 3.859 kB / 1.059 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.424e-05/0.2894, allocations: 15.44 kB / 1.059 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of SimCode: time 2.6e-07/0.2894, allocations: 4 kB / 1.059 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4822/0.7716, allocations: 1.685 MB / 1.061 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003306/0.772, allocations: 207.1 kB / 1.061 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.461/3.233, allocations: 3.938 kB / 1.061 GB, free: 15.32 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_QuadraticLinear_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_QuadraticLinear.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_QuadraticLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches