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.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.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.001573/0.001573, allocations: 108 kB / 15.6 MB, free: 132 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.001881/0.001881, allocations: 198.2 kB / 16.54 MB, free: 6.672 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.29/1.29, 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.625/2.625, allocations: 469.4 MB / 0.742 GB, free: 7.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 73.14 kB / 0.9083 GB, free: 34.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2548, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002103/0.2569, allocations: 1.077 MB / 1.065 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00106/0.258, allocations: 0.9948 MB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.2581, allocations: 0 / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.2582, allocations: 23.73 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.185e-05/0.2583, allocations: 11.81 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002376/0.2585, allocations: 75.84 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001737/0.2587, allocations: 172 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.2589, allocations: 92 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.66e-05/0.259, allocations: 67.78 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.546e-05/0.2591, allocations: 87.53 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.922e-05/0.2591, allocations: 16 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.66e-05/0.2591, allocations: 16 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.232e-05/0.2592, allocations: 39.84 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.545e-05/0.2593, allocations: 67.61 kB / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001805/0.2594, allocations: 183.6 kB / 1.067 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2594, allocations: 4 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.182e-06/0.2595, allocations: 0 / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.2595, allocations: 0 / 1.067 GB, free: 11.57 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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0007291/0.2602, allocations: 474.8 kB / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.2602, allocations: 12.03 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.822e-05/0.2603, allocations: 50.73 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.375e-05/0.2603, allocations: 20.75 kB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/0.2606, allocations: 229.6 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.2606, allocations: 8.375 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.126e-05/0.2606, allocations: 20.38 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000291/0.2609, allocations: 150 kB / 1.067 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.2609, allocations: 0 / 1.067 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.261, allocations: 8 kB / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.261, allocations: 4 kB / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002812/0.2612, allocations: 112.5 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009958/0.2623, allocations: 0.5274 MB / 1.068 GB, free: 9.828 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003501/0.2626, allocations: 142.7 kB / 1.068 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.2628, allocations: 88.73 kB / 1.068 GB, free: 9.59 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.2628, allocations: 7.984 kB / 1.068 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/0.2631, allocations: 120.7 kB / 1.068 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=19): time 1.493e-06/0.2631, allocations: 0 / 1.068 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.0005094/0.2636, allocations: 223.4 kB / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/0.2637, allocations: 55.39 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.2638, allocations: 160.9 kB / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.2638, allocations: 33.64 kB / 1.069 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.055e-05/0.2639, allocations: 124.4 kB / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.921e-05/0.2639, allocations: 59.11 kB / 1.069 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.243e-05/0.264, allocations: 37.7 kB / 1.069 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.741e-05/0.2641, allocations: 334.8 kB / 1.069 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.2643, allocations: 63.97 kB / 1.069 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/0.2645, allocations: 92.09 kB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003377/0.2649, allocations: 148.3 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2649, allocations: 0 / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004652/0.2654, allocations: 209.4 kB / 1.07 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.2654, allocations: 4 kB / 1.07 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.2654, allocations: 4 kB / 1.07 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.2654, allocations: 0 / 1.07 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001966/0.2656, allocations: 43.91 kB / 1.07 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.2656, allocations: 32 / 1.07 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.2658, allocations: 31.73 kB / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.2658, allocations: 15.98 kB / 1.07 GB, free: 7.785 MB / 0.8262 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.673e-05/0.2659, allocations: 121.8 kB / 1.07 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.338e-05/0.2659, allocations: 11.91 kB / 1.07 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004051/0.2663, allocations: 198.7 kB / 1.07 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2663, allocations: 4 kB / 1.07 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2663, allocations: 0 / 1.07 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.2664, allocations: 0 / 1.07 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007826/0.2671, allocations: 0.5908 MB / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2672, allocations: 4 kB / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.2673, allocations: 43.92 kB / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.2674, allocations: 3.938 kB / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.2674, allocations: 4 kB / 1.071 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.2674, allocations: 4 kB / 1.071 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2674, allocations: 0 / 1.071 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005493/0.2679, allocations: 394.4 kB / 1.071 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.089e-05/0.268, allocations: 104.7 kB / 1.071 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.619e-05/0.268, allocations: 4 kB / 1.071 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.2682, allocations: 20.02 kB / 1.071 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.154e-05/0.2683, allocations: 15.98 kB / 1.071 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.652e-05/0.2683, allocations: 7.984 kB / 1.071 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.24e-05/0.2684, allocations: 129.4 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2684, allocations: 0 / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002697/0.2687, allocations: 35.91 kB / 1.072 GB, free: 5.973 MB / 0.8262 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.0008403/0.2695, allocations: 0.9261 MB / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004205/0.2699, allocations: 170.2 kB / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.2699, allocations: 4 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001739/0.2701, allocations: 79.91 kB / 1.073 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000332/0.2705, allocations: 29.33 kB / 1.073 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002497/0.273, allocations: 2.113 MB / 1.075 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.2732, allocations: 0.7321 MB / 1.076 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.937e-05/0.2733, allocations: 13.42 kB / 1.076 GB, free: 1.719 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.019e-05/0.2734, allocations: 59.41 kB / 1.076 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.2734, allocations: 4 kB / 1.076 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01993/0.2933, allocations: 3.543 MB / 1.079 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.09/7.384, allocations: 9.234 kB / 1.079 GB, free: 14.2 MB / 0.8419 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