Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_10_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.00121/0.001209, 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.001078/0.001078, allocations: 187.9 kB / 16.66 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.314/1.314, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.549/2.549, allocations: 437 MB / 0.7105 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 71.91 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2714, allocations: 151.6 MB / 1.166 GB, free: 7.273 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002299/0.2737, allocations: 1.063 MB / 1.167 GB, free: 6.207 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001466/0.2752, allocations: 1.003 MB / 1.168 GB, free: 5.191 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.2754, allocations: 4 kB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001423/0.2755, allocations: 23.67 kB / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.817e-05/0.2756, allocations: 15.81 kB / 1.168 GB, free: 5.148 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003177/0.276, allocations: 75.78 kB / 1.168 GB, free: 5.074 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002315/0.2762, allocations: 172.1 kB / 1.169 GB, free: 4.906 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.2764, allocations: 80.05 kB / 1.169 GB, free: 4.82 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001356/0.2766, allocations: 79.64 kB / 1.169 GB, free: 4.742 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.2767, allocations: 75.67 kB / 1.169 GB, free: 4.668 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.713e-05/0.2767, allocations: 16 kB / 1.169 GB, free: 4.652 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 2.99e-05/0.2768, allocations: 16 kB / 1.169 GB, free: 4.637 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.938e-05/0.2768, allocations: 43.83 kB / 1.169 GB, free: 4.594 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.452e-05/0.2769, allocations: 71.55 kB / 1.169 GB, free: 4.523 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002449/0.2771, allocations: 195.3 kB / 1.169 GB, free: 4.332 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.2772, allocations: 0 / 1.169 GB, free: 4.332 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.363e-06/0.2772, allocations: 4 kB / 1.169 GB, free: 4.328 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.853e-06/0.2772, allocations: 0 / 1.169 GB, free: 4.328 MB / 0.92 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.0007884/0.278, allocations: 482.6 kB / 1.17 GB, free: 3.805 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.278, allocations: 8.031 kB / 1.17 GB, free: 3.797 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.965e-05/0.2781, allocations: 50.73 kB / 1.17 GB, free: 3.738 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.803e-05/0.2781, allocations: 24.84 kB / 1.17 GB, free: 3.715 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002881/0.2784, allocations: 220.6 kB / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.2785, allocations: 16.38 kB / 1.17 GB, free: 3.445 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.994e-05/0.2785, allocations: 20.36 kB / 1.17 GB, free: 3.426 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003077/0.2788, allocations: 154.5 kB / 1.17 GB, free: 3.27 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.2788, allocations: 0 / 1.17 GB, free: 3.27 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.2789, allocations: 4 kB / 1.17 GB, free: 3.266 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.2789, allocations: 8 kB / 1.17 GB, free: 3.258 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002886/0.2792, allocations: 107.9 kB / 1.17 GB, free: 3.152 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.2803, allocations: 0.5468 MB / 1.171 GB, free: 2.555 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003872/0.2807, allocations: 144.6 kB / 1.171 GB, free: 2.406 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.2809, allocations: 84.86 kB / 1.171 GB, free: 2.32 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.589e-05/0.2809, allocations: 0 / 1.171 GB, free: 2.32 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002452/0.2811, allocations: 123.3 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of pre-optimization done (n=19): time 1.363e-06/0.2812, allocations: 0 / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of matching and sorting (n=19): time 0.0005481/0.2817, allocations: 227.5 kB / 1.171 GB, free: 1.961 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.259e-05/0.2818, allocations: 51.41 kB / 1.171 GB, free: 1.898 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.2819, allocations: 160.2 kB / 1.171 GB, free: 1.734 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.2819, allocations: 37.7 kB / 1.171 GB, free: 1.691 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.973e-05/0.282, allocations: 116.6 kB / 1.172 GB, free: 1.574 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.355e-05/0.2821, allocations: 67.42 kB / 1.172 GB, free: 1.508 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.758e-05/0.2821, allocations: 41.7 kB / 1.172 GB, free: 1.461 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.2823, allocations: 326.8 kB / 1.172 GB, free: 1.133 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.2825, allocations: 67.81 kB / 1.172 GB, free: 1.066 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002056/0.2827, allocations: 89.67 kB / 1.172 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003309/0.283, allocations: 143.9 kB / 1.172 GB, free: 0.8281 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.283, allocations: 3.938 kB / 1.172 GB, free: 0.8242 MB / 0.92 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000471/0.2835, allocations: 211.8 kB / 1.172 GB, free: 0.6133 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.2835, allocations: 8 kB / 1.172 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2835, allocations: 7.922 kB / 1.172 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.2836, allocations: 0 / 1.172 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.2838, allocations: 43.92 kB / 1.173 GB, free: 0.5547 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.2838, allocations: 0 / 1.173 GB, free: 0.5547 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.2839, allocations: 27.86 kB / 1.173 GB, free: 0.5273 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.624e-05/0.2839, allocations: 8 kB / 1.173 GB, free: 0.5195 MB / 0.92 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.0001053/0.2841, allocations: 133.7 kB / 1.173 GB, free: 388 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.347e-05/0.2841, allocations: 11.91 kB / 1.173 GB, free: 376 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004013/0.2845, allocations: 196.6 kB / 1.173 GB, free: 172 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2845, allocations: 0 / 1.173 GB, free: 172 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.2845, allocations: 0 / 1.173 GB, free: 172 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.2845, allocations: 3.938 kB / 1.173 GB, free: 168 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000811/0.2853, allocations: 0.5924 MB / 1.173 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2854, allocations: 0 / 1.173 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001756/0.2855, allocations: 44.11 kB / 1.174 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.057e-06/0.2856, allocations: 7.938 kB / 1.174 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.2856, allocations: 3.984 kB / 1.174 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.2856, allocations: 7.984 kB / 1.174 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.2856, allocations: 0 / 1.174 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005664/0.2862, allocations: 380.4 kB / 1.174 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.166e-05/0.2862, allocations: 100.9 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.786e-05/0.2863, allocations: 12.03 kB / 1.174 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001533/0.2864, allocations: 15.98 kB / 1.174 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.695e-05/0.2865, allocations: 19.97 kB / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.2865, allocations: 15.94 kB / 1.174 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.02e-05/0.2866, allocations: 117 kB / 1.174 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2866, allocations: 0 / 1.174 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002714/0.2869, allocations: 31.95 kB / 1.174 GB, free: 14.71 MB / 0.9356 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.0008357/0.2877, allocations: 0.9383 MB / 1.175 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004213/0.2881, allocations: 163.8 kB / 1.175 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2882, allocations: 0 / 1.175 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001812/0.2883, allocations: 80.33 kB / 1.175 GB, free: 13.49 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003485/0.2887, allocations: 27.94 kB / 1.175 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002619/0.2913, allocations: 2.133 MB / 1.177 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002622/0.2916, allocations: 0.7243 MB / 1.178 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.125e-05/0.2917, allocations: 25.36 kB / 1.178 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.013e-05/0.2918, allocations: 47.42 kB / 1.178 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of SimCode: time 2.4e-07/0.2918, allocations: 0 / 1.178 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02042/0.3122, allocations: 3.617 MB / 1.182 GB, free: 6.875 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.596/7.909, allocations: 3.953 kB / 1.182 GB, free: 6.871 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches