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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.001713/0.001713, allocations: 112.5 kB / 15.73 MB, free: 76 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.001947/0.001947, allocations: 188.5 kB / 16.67 MB, free: 6.582 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.684/2.684, allocations: 472.7 MB / 0.7453 GB, free: 4.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 64.12 kB / 1.069 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2569, allocations: 159.9 MB / 1.225 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002126/0.2591, allocations: 1.074 MB / 1.226 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001193/0.2603, allocations: 0.987 MB / 1.227 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.2604, allocations: 4 kB / 1.227 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001241/0.2605, allocations: 19.73 kB / 1.227 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.427e-05/0.2607, allocations: 31.72 kB / 1.227 GB, free: 7.5 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002602/0.2609, allocations: 67.88 kB / 1.227 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001915/0.2611, allocations: 184 kB / 1.228 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.2613, allocations: 79.97 kB / 1.228 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.2614, allocations: 71.77 kB / 1.228 GB, free: 7.105 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/0.2615, allocations: 83.61 kB / 1.228 GB, free: 7.023 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.77e-05/0.2615, allocations: 16 kB / 1.228 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 2.119e-05/0.2616, allocations: 16 kB / 1.228 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.49e-05/0.2616, allocations: 39.89 kB / 1.228 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.765e-05/0.2617, allocations: 79.53 kB / 1.228 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002112/0.2619, allocations: 191.1 kB / 1.228 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.2619, allocations: 0 / 1.228 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2619, allocations: 0 / 1.228 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.2619, allocations: 0 / 1.228 GB, free: 6.688 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.0007294/0.2627, allocations: 486.6 kB / 1.229 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.2627, allocations: 12.03 kB / 1.229 GB, free: 6.148 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.304e-05/0.2628, allocations: 46.73 kB / 1.229 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.552e-05/0.2628, allocations: 20.84 kB / 1.229 GB, free: 6.074 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002457/0.2631, allocations: 222.5 kB / 1.229 GB, free: 5.82 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.2631, allocations: 8.375 kB / 1.229 GB, free: 5.812 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.502e-05/0.2631, allocations: 24.31 kB / 1.229 GB, free: 5.789 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002957/0.2634, allocations: 157.4 kB / 1.229 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.2635, allocations: 4 kB / 1.229 GB, free: 5.625 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.2635, allocations: 4 kB / 1.229 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.2635, allocations: 4 kB / 1.229 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002809/0.2638, allocations: 99.94 kB / 1.229 GB, free: 5.52 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.2648, allocations: 0.543 MB / 1.23 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003694/0.2652, allocations: 146.7 kB / 1.23 GB, free: 4.773 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.2654, allocations: 78.55 kB / 1.23 GB, free: 4.695 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.2654, allocations: 7.984 kB / 1.23 GB, free: 4.688 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000229/0.2657, allocations: 111.4 kB / 1.23 GB, free: 4.566 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=19): time 1.913e-06/0.2657, allocations: 0 / 1.23 GB, free: 4.566 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19): time 0.0005294/0.2662, allocations: 231.1 kB / 1.23 GB, free: 4.336 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.793e-05/0.2662, allocations: 55.41 kB / 1.23 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.2664, allocations: 165.5 kB / 1.23 GB, free: 4.102 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.2664, allocations: 29.7 kB / 1.23 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.863e-05/0.2665, allocations: 124.5 kB / 1.231 GB, free: 3.938 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.149e-05/0.2665, allocations: 67.42 kB / 1.231 GB, free: 3.871 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.487e-05/0.2666, allocations: 37.7 kB / 1.231 GB, free: 3.828 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.745e-05/0.2667, allocations: 334.8 kB / 1.231 GB, free: 3.492 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.2669, allocations: 71.89 kB / 1.231 GB, free: 3.422 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002081/0.2671, allocations: 85.67 kB / 1.231 GB, free: 3.332 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003383/0.2675, allocations: 151.6 kB / 1.231 GB, free: 3.18 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2675, allocations: 0 / 1.231 GB, free: 3.18 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004806/0.268, allocations: 209.5 kB / 1.231 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.268, allocations: 4 kB / 1.232 GB, free: 2.965 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.268, allocations: 0 / 1.232 GB, free: 2.965 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.268, allocations: 7.938 kB / 1.232 GB, free: 2.957 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000195/0.2682, allocations: 35.97 kB / 1.232 GB, free: 2.922 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.2682, allocations: 8.031 kB / 1.232 GB, free: 2.914 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001404/0.2684, allocations: 27.83 kB / 1.232 GB, free: 2.887 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.2684, allocations: 4 kB / 1.232 GB, free: 2.883 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 0.0001014/0.2685, allocations: 134.2 kB / 1.232 GB, free: 2.742 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.438e-05/0.2686, allocations: 19.89 kB / 1.232 GB, free: 2.723 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004102/0.269, allocations: 188.7 kB / 1.232 GB, free: 2.531 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.269, allocations: 4 kB / 1.232 GB, free: 2.527 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.269, allocations: 4 kB / 1.232 GB, free: 2.523 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.269, allocations: 3.984 kB / 1.232 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007588/0.2698, allocations: 0.5812 MB / 1.232 GB, free: 1.863 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.587e-06/0.2698, allocations: 4 kB / 1.232 GB, free: 1.859 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001713/0.27, allocations: 35.91 kB / 1.233 GB, free: 1.824 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.27, allocations: 7.938 kB / 1.233 GB, free: 1.816 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.27, allocations: 8 kB / 1.233 GB, free: 1.809 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.27, allocations: 4 kB / 1.233 GB, free: 1.805 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.27, allocations: 3.938 kB / 1.233 GB, free: 1.801 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000558/0.2706, allocations: 384.7 kB / 1.233 GB, free: 1.391 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.631e-05/0.2706, allocations: 96.89 kB / 1.233 GB, free: 1.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.746e-05/0.2707, allocations: 8.094 kB / 1.233 GB, free: 1.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.2708, allocations: 11.98 kB / 1.233 GB, free: 1.258 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.963e-05/0.2709, allocations: 31.89 kB / 1.233 GB, free: 1.227 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.2709, allocations: 4 kB / 1.233 GB, free: 1.223 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.228e-05/0.271, allocations: 125 kB / 1.233 GB, free: 1.102 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.271, allocations: 0 / 1.233 GB, free: 1.102 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002783/0.2713, allocations: 35.95 kB / 1.233 GB, free: 1.066 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.0008495/0.2722, allocations: 0.918 MB / 1.234 GB, free: 108 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004384/0.2726, allocations: 169.3 kB / 1.234 GB, free: 15.94 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2726, allocations: 0 / 1.234 GB, free: 15.94 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001902/0.2728, allocations: 91.83 kB / 1.234 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.2732, allocations: 31.84 kB / 1.234 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002571/0.2757, allocations: 2.139 MB / 1.236 GB, free: 13.57 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002471/0.276, allocations: 0.7283 MB / 1.237 GB, free: 12.81 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.964e-05/0.2761, allocations: 13.42 kB / 1.237 GB, free: 12.79 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.248e-05/0.2762, allocations: 59.41 kB / 1.237 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of SimCode: time 3.51e-07/0.2762, allocations: 3.938 kB / 1.237 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0198/0.296, allocations: 3.597 MB / 1.241 GB, free: 9.238 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.59/7.886, allocations: 9.609 kB / 1.241 GB, free: 9.23 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