Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 101.3 kB / 19.73 MB, free: 2.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00147/0.00147, allocations: 222.8 kB / 23.03 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.525/1.525, allocations: 230.6 MB / 256.8 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.302/3.302, allocations: 0.49 GB / 0.7959 GB, free: 35.51 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003436/0.003436, allocations: 62.89 kB / 1.155 GB, free: 25.26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4286/0.432, allocations: 176.1 MB / 1.327 GB, free: 1.336 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.003312/0.4353, allocations: 1.019 MB / 1.328 GB, free: 328 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00181/0.4372, allocations: 1.026 MB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001803/0.4373, allocations: 0 / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001672/0.4375, allocations: 19.73 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.714e-05/0.4376, allocations: 23.75 kB / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003994/0.438, allocations: 79.84 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000281/0.4383, allocations: 180 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002192/0.4385, allocations: 60.69 kB / 1.329 GB, free: 14.92 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001618/0.4387, allocations: 75.75 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.4388, allocations: 75.62 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.093e-05/0.4389, allocations: 16 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.272e-05/0.4389, allocations: 20 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.287e-05/0.439, allocations: 35.91 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.884e-05/0.4391, allocations: 71.58 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003559/0.4394, allocations: 187.2 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.4394, allocations: 8 kB / 1.329 GB, free: 14.44 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.864e-06/0.4394, allocations: 0 / 1.329 GB, free: 14.44 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.089e-05/0.4395, allocations: 0 / 1.329 GB, free: 14.44 MB / 1.029 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.001038/0.4405, allocations: 426.3 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.4405, allocations: 12.03 kB / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.819e-05/0.4406, allocations: 4.188 kB / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.435e-05/0.4406, allocations: 50.73 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001421/0.4407, allocations: 24.8 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000368/0.4411, allocations: 162.8 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.81e-05/0.4411, allocations: 16.38 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.067e-05/0.4412, allocations: 16.12 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003889/0.4416, allocations: 179.2 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.4416, allocations: 0 / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.304e-05/0.4416, allocations: 8 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.607e-06/0.4416, allocations: 7.938 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003071/0.4419, allocations: 103.9 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/0.4431, allocations: 475.3 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004472/0.4436, allocations: 142.6 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000186/0.4438, allocations: 80.83 kB / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.741e-05/0.4438, allocations: 7.984 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002835/0.4441, allocations: 146.7 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of pre-optimization done (n=19): time 1.883e-06/0.4441, allocations: 0 / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of matching and sorting (n=19): time 0.0006147/0.4447, allocations: 222.3 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.4448, allocations: 55.41 kB / 1.332 GB, free: 12.17 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.4449, allocations: 158.2 kB / 1.332 GB, free: 12.01 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.099e-05/0.445, allocations: 29.7 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.4451, allocations: 124.5 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.905e-05/0.4451, allocations: 67.42 kB / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.899e-05/0.4452, allocations: 37.7 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001701/0.4454, allocations: 326.8 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.4456, allocations: 67.95 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.4458, allocations: 95.17 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003646/0.4462, allocations: 143.7 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.4462, allocations: 0 / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005329/0.4467, allocations: 215.5 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.4468, allocations: 4 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.4468, allocations: 4 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.4468, allocations: 4.031 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002109/0.447, allocations: 35.97 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.447, allocations: 4 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000148/0.4471, allocations: 23.88 kB / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/0.4472, allocations: 7.938 kB / 1.333 GB, free: 10.8 MB / 1.029 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.0001406/0.4473, allocations: 132.1 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.651e-05/0.4473, allocations: 19.89 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004622/0.4478, allocations: 192 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.4478, allocations: 7.984 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.4478, allocations: 0 / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.4478, allocations: 3.984 kB / 1.333 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009656/0.4488, allocations: 0.5466 MB / 1.334 GB, free: 9.828 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.4488, allocations: 0 / 1.334 GB, free: 9.828 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001985/0.449, allocations: 43.84 kB / 1.334 GB, free: 9.785 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.449, allocations: 3.938 kB / 1.334 GB, free: 9.781 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.043e-05/0.449, allocations: 8 kB / 1.334 GB, free: 9.773 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.143e-06/0.449, allocations: 7.938 kB / 1.334 GB, free: 9.766 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.449, allocations: 0 / 1.334 GB, free: 9.766 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000673/0.4497, allocations: 388.5 kB / 1.334 GB, free: 9.352 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.643e-05/0.4497, allocations: 19.84 kB / 1.334 GB, free: 9.332 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.323e-05/0.4498, allocations: 8 kB / 1.334 GB, free: 9.324 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001582/0.4499, allocations: 16.03 kB / 1.334 GB, free: 9.309 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.946e-05/0.45, allocations: 23.95 kB / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.45, allocations: 4 kB / 1.334 GB, free: 9.281 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001016/0.4501, allocations: 125.4 kB / 1.334 GB, free: 9.16 MB / 1.029 GB Notification: Performance of sort global known variables: time 9.1e-08/0.4501, allocations: 0 / 1.334 GB, free: 9.16 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002942/0.4504, allocations: 28 kB / 1.334 GB, free: 9.133 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der2.x,intWitRes.y,der1.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.0009769/0.4514, allocations: 0.9218 MB / 1.335 GB, free: 8.168 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004291/0.4518, allocations: 153.5 kB / 1.335 GB, free: 8.02 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4518, allocations: 0 / 1.335 GB, free: 8.02 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002037/0.452, allocations: 91.89 kB / 1.335 GB, free: 7.93 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.4524, allocations: 29.47 kB / 1.335 GB, free: 7.902 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003141/0.4555, allocations: 2.124 MB / 1.338 GB, free: 5.652 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001382/0.4557, allocations: 116.2 kB / 1.338 GB, free: 5.512 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.145e-05/0.4558, allocations: 17.42 kB / 1.338 GB, free: 5.496 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.4559, allocations: 47.42 kB / 1.338 GB, free: 5.449 MB / 1.029 GB Notification: Performance of SimCode: time 4.61e-07/0.4559, allocations: 0 / 1.338 GB, free: 5.449 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02865/0.4845, allocations: 3.94 MB / 1.342 GB, free: 1.699 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.23, allocations: 8.047 kB / 1.342 GB, free: 1.691 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=400 --tolerance=1e-07 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.395887264981866]