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.001859/0.001859, 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.002227/0.002227, allocations: 196.8 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.354/1.354, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.751/2.751, allocations: 469.4 MB / 0.742 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 66.7 kB / 0.9083 GB, free: 34.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2819, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.QuadraticLinear): time 0.003014/0.285, allocations: 1.486 MB / 1.065 GB, free: 13 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003518/0.2854, allocations: 103.7 kB / 1.065 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.667e-05/0.2854, allocations: 0 / 1.065 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.107e-05/0.2855, allocations: 7.922 kB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.076e-05/0.2856, allocations: 7.938 kB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002398/0.2858, allocations: 23.91 kB / 1.065 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.331e-05/0.2859, allocations: 47.84 kB / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.239e-05/0.286, allocations: 15.98 kB / 1.065 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.913e-05/0.2861, allocations: 19.92 kB / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.809e-05/0.2861, allocations: 23.91 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.2862, allocations: 4 kB / 1.065 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.906e-05/0.2862, allocations: 23.92 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.977e-05/0.2863, allocations: 11.98 kB / 1.065 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.099e-05/0.2863, allocations: 23.81 kB / 1.065 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001318/0.2865, allocations: 51.86 kB / 1.065 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.2865, allocations: 7.984 kB / 1.065 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2865, allocations: 4 kB / 1.065 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.6e-06/0.2865, allocations: 0 / 1.065 GB, free: 12.63 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005223/0.287, allocations: 371.5 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.2871, allocations: 8.031 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.734e-05/0.2871, allocations: 38.75 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.414e-05/0.2872, allocations: 12.83 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.2873, allocations: 168.3 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.596e-06/0.2873, allocations: 4.375 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.279e-05/0.2873, allocations: 4.375 kB / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000256/0.2876, allocations: 78.14 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.2876, allocations: 15.81 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.2876, allocations: 0 / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.2876, allocations: 0 / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003017/0.2879, allocations: 79.92 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003722/0.2883, allocations: 280.8 kB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000204/0.2885, allocations: 62.53 kB / 1.067 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.2887, allocations: 52.84 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002583/0.289, allocations: 109.1 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/0.289, allocations: 34.56 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.289, allocations: 0 / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0005829/0.2896, allocations: 145.5 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.2896, allocations: 51.41 kB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.2898, allocations: 129.8 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/0.2898, allocations: 25.7 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.525e-05/0.2898, allocations: 92.12 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.19e-05/0.2899, allocations: 15.8 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.454e-05/0.2899, allocations: 17.72 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001011/0.29, allocations: 318.8 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.2902, allocations: 39.91 kB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.2903, allocations: 35.95 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002801/0.2906, allocations: 84.72 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2906, allocations: 0 / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003343/0.2909, allocations: 105.6 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.291, allocations: 7.984 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.291, allocations: 0 / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.291, allocations: 0 / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.2911, allocations: 19.98 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.2912, allocations: 0 / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.226e-05/0.2912, allocations: 15.89 kB / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.2913, allocations: 4.266 kB / 1.068 GB, free: 10 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 (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 7.651e-05/0.2913, allocations: 121.8 kB / 1.068 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.89e-05/0.2914, allocations: 4 kB / 1.068 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003708/0.2917, allocations: 121.5 kB / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.2918, allocations: 0 / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.2918, allocations: 0 / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2918, allocations: 0 / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001664/0.2919, allocations: 189.5 kB / 1.068 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.292, allocations: 0 / 1.068 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.433e-05/0.2921, allocations: 15.97 kB / 1.068 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.2921, allocations: 8 kB / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.2921, allocations: 4 kB / 1.068 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2921, allocations: 3.938 kB / 1.068 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.2921, allocations: 3.938 kB / 1.068 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003655/0.2925, allocations: 209 kB / 1.068 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.924e-05/0.2925, allocations: 89.02 kB / 1.069 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/0.2925, allocations: 0 / 1.069 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.2926, allocations: 11.98 kB / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.424e-05/0.2927, allocations: 3.984 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.2927, allocations: 4 kB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.641e-05/0.2928, allocations: 102.3 kB / 1.069 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2928, allocations: 0 / 1.069 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002439/0.293, allocations: 8 kB / 1.069 GB, free: 9.02 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 (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.0006649/0.2937, allocations: 0.7518 MB / 1.069 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003584/0.2941, allocations: 83.91 kB / 1.069 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2941, allocations: 0 / 1.069 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001553/0.2943, allocations: 35.97 kB / 1.07 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002436/0.2945, allocations: 19.86 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004579/0.295, allocations: 179.1 kB / 1.07 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.2952, allocations: 0.6885 MB / 1.07 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.084e-05/0.2952, allocations: 7.984 kB / 1.07 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.784e-05/0.2953, allocations: 15.42 kB / 1.07 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of SimCode: time 4.11e-07/0.2953, allocations: 0 / 1.07 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01554/0.3108, allocations: 1.86 MB / 1.072 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.342/7.653, allocations: 10.36 kB / 1.072 GB, free: 5.363 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear_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_QuadraticLinear.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear_res.csv","/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