Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.Validation.Derivative,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.007226/0.007226, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001689/0.001689, allocations: 194.8 kB / 16.67 MB, free: 5.52 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 4.062 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.434/2.434, allocations: 390.2 MB / 0.6648 GB, free: 148 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001253, allocations: 65.72 kB / 0.9505 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2659, allocations: 140.4 MB / 1.088 GB, free: 1.914 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.002335/0.2683, allocations: 1.043 MB / 1.089 GB, free: 0.8672 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00154/0.2698, allocations: 0.9871 MB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001784/0.27, allocations: 4 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.2702, allocations: 27.73 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.527e-05/0.2703, allocations: 15.8 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003419/0.2707, allocations: 67.86 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002099/0.2709, allocations: 175.5 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.2711, allocations: 78.5 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001144/0.2712, allocations: 67.77 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001151/0.2713, allocations: 79.61 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.297e-05/0.2714, allocations: 16 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.649e-05/0.2714, allocations: 16 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.008e-05/0.2714, allocations: 39.83 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.539e-05/0.2715, allocations: 71.59 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002276/0.2718, allocations: 182.1 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2718, allocations: 0 / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2718, allocations: 0 / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.576e-06/0.2718, allocations: 0 / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008363/0.2726, allocations: 476 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.2727, allocations: 12.03 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.22e-05/0.2727, allocations: 46.73 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.894e-05/0.2728, allocations: 16.75 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003005/0.2731, allocations: 217.8 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.2731, allocations: 16.66 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.683e-05/0.2732, allocations: 12.38 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003279/0.2735, allocations: 144.4 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.2735, allocations: 3.938 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.771e-05/0.2735, allocations: 4 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.2736, allocations: 4 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002855/0.2738, allocations: 104.8 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.275, allocations: 0.5276 MB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004054/0.2754, allocations: 142.7 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001873/0.2756, allocations: 84.77 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.2757, allocations: 4 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002486/0.2759, allocations: 123.2 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=19): time 1.873e-06/0.2759, allocations: 8 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.0005688/0.2765, allocations: 223.3 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.2766, allocations: 51.41 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.2767, allocations: 162.8 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.2767, allocations: 29.7 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.763e-05/0.2768, allocations: 108.4 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.782e-05/0.2769, allocations: 59.16 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.606e-05/0.2769, allocations: 49.7 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.2771, allocations: 326.8 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.2773, allocations: 59.97 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.2775, allocations: 90.67 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003658/0.2779, allocations: 165.6 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.2779, allocations: 0 / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005101/0.2784, allocations: 209.3 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.2784, allocations: 4 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.2785, allocations: 0 / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.2785, allocations: 0 / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/0.2787, allocations: 48 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.2787, allocations: 0 / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001507/0.2789, allocations: 31.73 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.2789, allocations: 4 kB / 1.094 GB, free: 11.3 MB / 0.8575 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.0001273/0.279, allocations: 139 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.635e-05/0.279, allocations: 7.906 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004554/0.2795, allocations: 200.4 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2795, allocations: 3.938 kB / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.2795, allocations: 0 / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2795, allocations: 0 / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008571/0.2804, allocations: 0.5773 MB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.2804, allocations: 4 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001846/0.2806, allocations: 39.97 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.2806, allocations: 0 / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.2806, allocations: 4 kB / 1.095 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.2807, allocations: 8.125 kB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2807, allocations: 7.938 kB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006167/0.2813, allocations: 382.1 kB / 1.095 GB, free: 9.82 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.545e-05/0.2814, allocations: 92.86 kB / 1.095 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.885e-05/0.2814, allocations: 11.94 kB / 1.095 GB, free: 9.699 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.2816, allocations: 12.12 kB / 1.095 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.32e-05/0.2816, allocations: 31.89 kB / 1.095 GB, free: 9.656 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.298e-05/0.2817, allocations: 12 kB / 1.095 GB, free: 9.645 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.529e-05/0.2818, allocations: 122.5 kB / 1.095 GB, free: 9.527 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2818, allocations: 3.938 kB / 1.095 GB, free: 9.523 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002849/0.2821, allocations: 35.94 kB / 1.095 GB, free: 9.488 MB / 0.8575 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.0009414/0.283, allocations: 0.9144 MB / 1.096 GB, free: 8.531 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004634/0.2835, allocations: 166.7 kB / 1.096 GB, free: 8.371 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.2835, allocations: 0 / 1.096 GB, free: 8.371 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001981/0.2837, allocations: 87.83 kB / 1.097 GB, free: 8.285 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003525/0.2841, allocations: 32.42 kB / 1.097 GB, free: 8.254 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002918/0.287, allocations: 2.109 MB / 1.099 GB, free: 6.023 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/0.2873, allocations: 0.7243 MB / 1.099 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.613e-05/0.2874, allocations: 17.36 kB / 1.099 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.822e-05/0.2875, allocations: 55.41 kB / 1.099 GB, free: 5.203 MB / 0.8575 GB Notification: Performance of SimCode: time 5.01e-07/0.2875, allocations: 4 kB / 1.099 GB, free: 5.199 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02288/0.3104, allocations: 3.57 MB / 1.103 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.575/7.885, allocations: 7.969 kB / 1.103 GB, free: 1.734 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches