Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",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.005444/0.005444, allocations: 99.8 kB / 15.73 MB, free: 6.004 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.001152/0.001152, allocations: 191 kB / 16.67 MB, free: 5.934 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.76/2.76, allocations: 469.4 MB / 0.7422 GB, free: 7.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 68.12 kB / 1.064 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2736, allocations: 159.1 MB / 1.22 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002284/0.2759, allocations: 1.077 MB / 1.221 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001259/0.2772, allocations: 0.987 MB / 1.222 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.2773, allocations: 7.938 kB / 1.222 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.2775, allocations: 15.8 kB / 1.222 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.87e-05/0.2775, allocations: 19.75 kB / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002837/0.2778, allocations: 79.78 kB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001887/0.278, allocations: 176 kB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001681/0.2782, allocations: 84.02 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.2783, allocations: 67.78 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.2784, allocations: 83.59 kB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.181e-05/0.2785, allocations: 16 kB / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 2.264e-05/0.2785, allocations: 20 kB / 1.222 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.075e-05/0.2785, allocations: 35.91 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.727e-05/0.2786, allocations: 75.53 kB / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002194/0.2788, allocations: 191.1 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2788, allocations: 0 / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2789, allocations: 0 / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.2789, allocations: 4 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0008074/0.2797, allocations: 482.6 kB / 1.223 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.2797, allocations: 12.02 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.024e-05/0.2798, allocations: 50.69 kB / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.423e-05/0.2798, allocations: 24.83 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.2801, allocations: 222.7 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.2802, allocations: 16.38 kB / 1.223 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.553e-05/0.2802, allocations: 12.38 kB / 1.223 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003085/0.2805, allocations: 158 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.2805, allocations: 0 / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.2806, allocations: 4 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.2806, allocations: 4 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000283/0.2809, allocations: 108.5 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/0.2819, allocations: 0.5314 MB / 1.224 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003623/0.2823, allocations: 138.7 kB / 1.224 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.2825, allocations: 96.7 kB / 1.224 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.2825, allocations: 0 / 1.224 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002259/0.2827, allocations: 121.2 kB / 1.225 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=19): time 2.826e-06/0.2828, allocations: 0 / 1.225 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19): time 0.0005221/0.2833, allocations: 229.4 kB / 1.225 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.076e-05/0.2833, allocations: 51.41 kB / 1.225 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.2834, allocations: 167 kB / 1.225 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.847e-05/0.2835, allocations: 33.7 kB / 1.225 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.349e-05/0.2835, allocations: 116.5 kB / 1.225 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.752e-05/0.2836, allocations: 67.42 kB / 1.225 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.237e-05/0.2837, allocations: 45.64 kB / 1.225 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.509e-05/0.2838, allocations: 322.8 kB / 1.226 GB, free: 8.48 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.284, allocations: 75.89 kB / 1.226 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/0.2842, allocations: 88.31 kB / 1.226 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003388/0.2845, allocations: 143 kB / 1.226 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2846, allocations: 4 kB / 1.226 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000479/0.285, allocations: 218.9 kB / 1.226 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.2851, allocations: 9.562 kB / 1.226 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.2851, allocations: 0 / 1.226 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.2851, allocations: 0 / 1.226 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000204/0.2853, allocations: 39.98 kB / 1.226 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.2853, allocations: 3.984 kB / 1.226 GB, free: 7.898 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/0.2855, allocations: 31.86 kB / 1.226 GB, free: 7.867 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.2855, allocations: 8 kB / 1.226 GB, free: 7.859 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,lesThr.lesHys.y,$PRE.lesThr.lesHys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.86e-05/0.2856, allocations: 130.2 kB / 1.226 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.419e-05/0.2856, allocations: 15.89 kB / 1.226 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004142/0.286, allocations: 196.8 kB / 1.226 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.2861, allocations: 4 kB / 1.226 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.2861, allocations: 0 / 1.226 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2861, allocations: 0 / 1.226 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007688/0.2868, allocations: 0.5929 MB / 1.227 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.2869, allocations: 0 / 1.227 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001802/0.287, allocations: 39.98 kB / 1.227 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.2871, allocations: 3.938 kB / 1.227 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.2871, allocations: 7.984 kB / 1.227 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.66e-06/0.2871, allocations: 11.92 kB / 1.227 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2871, allocations: 0 / 1.227 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005558/0.2877, allocations: 376.7 kB / 1.227 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.964e-05/0.2877, allocations: 108.9 kB / 1.228 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.932e-05/0.2877, allocations: 8 kB / 1.228 GB, free: 6.242 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001634/0.2879, allocations: 15.92 kB / 1.228 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.198e-05/0.288, allocations: 19.97 kB / 1.228 GB, free: 6.207 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-05/0.288, allocations: 12 kB / 1.228 GB, free: 6.195 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.67e-05/0.2881, allocations: 115.2 kB / 1.228 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2881, allocations: 0 / 1.228 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002764/0.2884, allocations: 35.95 kB / 1.228 GB, free: 6.047 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der1.x,intWitRes.y,der2.x) * Number of discrete variables: 2 ($whenCondition1,lesThr.lesHys.y) * Number of discrete states: 1 (lesThr.lesHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.0008335/0.2892, allocations: 0.9192 MB / 1.229 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004272/0.2896, allocations: 167.8 kB / 1.229 GB, free: 4.922 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.2897, allocations: 8.062 kB / 1.229 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001867/0.2899, allocations: 83.83 kB / 1.229 GB, free: 4.832 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003322/0.2902, allocations: 31.86 kB / 1.229 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.2927, allocations: 2.14 MB / 1.231 GB, free: 2.539 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/0.2929, allocations: 0.7283 MB / 1.232 GB, free: 1.781 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.952e-05/0.293, allocations: 13.42 kB / 1.232 GB, free: 1.77 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.102e-05/0.2931, allocations: 51.42 kB / 1.232 GB, free: 1.719 MB / 0.9825 GB Notification: Performance of SimCode: time 2.21e-07/0.2931, allocations: 0 / 1.232 GB, free: 1.719 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01947/0.3126, allocations: 3.619 MB / 1.235 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.529/7.842, allocations: 5.734 kB / 1.235 GB, free: 14.2 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches