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.009791/0.009791, allocations: 97.58 kB / 15.73 MB, free: 5.996 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.001866/0.001866, allocations: 184.7 kB / 16.67 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.341/2.341, allocations: 222.9 MB / 240.4 MB, free: 4.309 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 4.181/4.181, allocations: 390.3 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002279/0.002279, allocations: 69.23 kB / 0.9505 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5085/0.5109, allocations: 140.4 MB / 1.088 GB, free: 1.934 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.004395/0.5153, allocations: 1.042 MB / 1.089 GB, free: 0.8906 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002776/0.5182, allocations: 0.9986 MB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002807/0.5185, allocations: 4 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002499/0.5188, allocations: 15.8 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001463/0.519, allocations: 15.75 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005407/0.5196, allocations: 75.84 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003314/0.5199, allocations: 163.7 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002832/0.5202, allocations: 86.44 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001552/0.5204, allocations: 63.72 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001631/0.5206, allocations: 75.67 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.638e-05/0.5206, allocations: 16 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 3.999e-05/0.5207, allocations: 20 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.256e-05/0.5207, allocations: 43.83 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.5209, allocations: 71.59 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004229/0.5213, allocations: 179.4 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.5213, allocations: 0 / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.067e-06/0.5214, allocations: 0 / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.646e-06/0.5214, allocations: 0 / 1.09 GB, free: 15.06 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.001384/0.5228, allocations: 479 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001274/0.5229, allocations: 8.031 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001059/0.523, allocations: 46.75 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.5231, allocations: 20.83 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006023/0.5238, allocations: 216.1 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.922e-05/0.5238, allocations: 16.64 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.073e-05/0.5239, allocations: 20.38 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005323/0.5244, allocations: 144.4 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.5245, allocations: 3.938 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/0.5245, allocations: 15.94 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.5245, allocations: 4 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004342/0.525, allocations: 100.8 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001615/0.5266, allocations: 0.5316 MB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005722/0.5272, allocations: 136.5 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003214/0.5275, allocations: 88.86 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.09e-05/0.5276, allocations: 3.938 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003738/0.528, allocations: 121.2 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=19): time 3.917e-06/0.528, allocations: 0 / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.0008158/0.5288, allocations: 225.5 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.43e-05/0.5289, allocations: 55.41 kB / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002123/0.5291, allocations: 154.9 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.061e-05/0.5292, allocations: 29.7 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.5293, allocations: 116.5 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.294e-05/0.5294, allocations: 71.38 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.888e-05/0.5295, allocations: 37.7 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001689/0.5297, allocations: 326.8 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003277/0.53, allocations: 75.89 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003271/0.5304, allocations: 87.09 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005425/0.5309, allocations: 142.7 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.5309, allocations: 0 / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008135/0.5318, allocations: 220.2 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/0.5318, allocations: 4 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.5318, allocations: 0 / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.891e-05/0.5318, allocations: 4 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003241/0.5322, allocations: 39.91 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.5322, allocations: 0 / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002286/0.5324, allocations: 31.91 kB / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.464e-05/0.5325, allocations: 7.938 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.0001952/0.5327, allocations: 133.8 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.545e-05/0.5327, allocations: 19.91 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006736/0.5334, allocations: 192.8 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.5335, allocations: 0 / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.5335, allocations: 11.98 kB / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.5335, allocations: 0 / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.5348, allocations: 0.5791 MB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.5349, allocations: 0 / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002936/0.5352, allocations: 39.91 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.5352, allocations: 0 / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.232e-05/0.5352, allocations: 8 kB / 1.095 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.017e-05/0.5353, allocations: 7.938 kB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.5353, allocations: 0 / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000997/0.5363, allocations: 376.6 kB / 1.095 GB, free: 9.828 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 9.218e-05/0.5364, allocations: 100.9 kB / 1.095 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.952e-05/0.5364, allocations: 11.94 kB / 1.095 GB, free: 9.699 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002731/0.5367, allocations: 19.98 kB / 1.095 GB, free: 9.68 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.5369, allocations: 19.97 kB / 1.095 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.639e-05/0.5369, allocations: 8 kB / 1.095 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001508/0.5371, allocations: 123.8 kB / 1.095 GB, free: 9.535 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.1e-07/0.5371, allocations: 0 / 1.095 GB, free: 9.535 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005534/0.5376, allocations: 28 kB / 1.095 GB, free: 9.508 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.001534/0.5392, allocations: 0.93 MB / 1.096 GB, free: 8.535 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007508/0.5399, allocations: 159.9 kB / 1.096 GB, free: 8.379 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.54, allocations: 0 / 1.096 GB, free: 8.379 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003222/0.5403, allocations: 95.89 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.0007243/0.541, allocations: 31.91 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.004557/0.5456, allocations: 2.125 MB / 1.099 GB, free: 6.008 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004471/0.5461, allocations: 0.7244 MB / 1.099 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001435/0.5463, allocations: 13.42 kB / 1.099 GB, free: 5.246 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001568/0.5464, allocations: 55.41 kB / 1.099 GB, free: 5.191 MB / 0.8575 GB Notification: Performance of SimCode: time 6.42e-07/0.5465, allocations: 0 / 1.099 GB, free: 5.191 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1128/0.6593, allocations: 3.557 MB / 1.103 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.05/15.71, allocations: 3.984 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