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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001454/0.001454, allocations: 108 kB / 15.6 MB, free: 132 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.001665/0.001665, allocations: 191.7 kB / 16.53 MB, free: 6.391 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.245/1.245, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.494/2.494, allocations: 461.9 MB / 0.7347 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 65.06 kB / 0.8992 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2412, allocations: 157.4 MB / 1.053 GB, free: 8.242 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002153/0.2434, allocations: 1.078 MB / 1.054 GB, free: 7.168 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001123/0.2445, allocations: 0.9991 MB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.2446, allocations: 0 / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001178/0.2448, allocations: 23.73 kB / 1.055 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.103e-05/0.2449, allocations: 19.8 kB / 1.055 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002523/0.2451, allocations: 75.84 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001781/0.2453, allocations: 172 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.2455, allocations: 84.03 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.144e-05/0.2456, allocations: 67.72 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.455e-05/0.2457, allocations: 83.59 kB / 1.055 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.08e-05/0.2457, allocations: 16 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.31e-05/0.2457, allocations: 20 kB / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.753e-05/0.2458, allocations: 39.91 kB / 1.056 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.11e-05/0.2458, allocations: 71.53 kB / 1.056 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001792/0.246, allocations: 183.6 kB / 1.056 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.246, allocations: 0 / 1.056 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.122e-06/0.246, allocations: 0 / 1.056 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.246, allocations: 0 / 1.056 GB, free: 5.312 MB / 0.8106 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.0007123/0.2468, allocations: 474.9 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.2468, allocations: 12.62 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.578e-05/0.2469, allocations: 50.73 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.36e-05/0.2469, allocations: 24.59 kB / 1.056 GB, free: 4.703 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002134/0.2471, allocations: 224.6 kB / 1.057 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.2471, allocations: 12.38 kB / 1.057 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.368e-05/0.2472, allocations: 20.28 kB / 1.057 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002853/0.2475, allocations: 157.8 kB / 1.057 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.2475, allocations: 7.984 kB / 1.057 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.819e-05/0.2475, allocations: 12 kB / 1.057 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.2475, allocations: 4 kB / 1.057 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002594/0.2478, allocations: 103.9 kB / 1.057 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009581/0.2488, allocations: 0.5274 MB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003324/0.2491, allocations: 146.7 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.2493, allocations: 80.83 kB / 1.058 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.2493, allocations: 7.969 kB / 1.058 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002348/0.2496, allocations: 119.4 kB / 1.058 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=19): time 1.312e-06/0.2496, allocations: 0 / 1.058 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19): time 0.0004981/0.2501, allocations: 230.8 kB / 1.058 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.982e-05/0.2501, allocations: 51.41 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.2502, allocations: 155.6 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.2503, allocations: 29.7 kB / 1.058 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.17e-05/0.2503, allocations: 124.4 kB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.611e-05/0.2504, allocations: 63.09 kB / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.755e-05/0.2504, allocations: 41.64 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.908e-05/0.2505, allocations: 326.8 kB / 1.059 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.2507, allocations: 67.95 kB / 1.059 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001973/0.2509, allocations: 85.67 kB / 1.059 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003169/0.2513, allocations: 147.7 kB / 1.059 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.2513, allocations: 0 / 1.059 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004501/0.2517, allocations: 215 kB / 1.059 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.2518, allocations: 9.719 kB / 1.059 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.2518, allocations: 4.031 kB / 1.059 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.2518, allocations: 0 / 1.059 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001923/0.252, allocations: 47.91 kB / 1.059 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.252, allocations: 0 / 1.059 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001346/0.2521, allocations: 19.83 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.2522, allocations: 12 kB / 1.059 GB, free: 1.516 MB / 0.8106 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 9.032e-05/0.2522, allocations: 126.4 kB / 1.059 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.183e-05/0.2523, allocations: 19.81 kB / 1.059 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003823/0.2527, allocations: 196.9 kB / 1.06 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.2527, allocations: 4 kB / 1.06 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2527, allocations: 0 / 1.06 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/0.2527, allocations: 3.984 kB / 1.06 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007346/0.2534, allocations: 0.585 MB / 1.06 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.2535, allocations: 0 / 1.06 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.2536, allocations: 43.91 kB / 1.06 GB, free: 468 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.2536, allocations: 8.125 kB / 1.06 GB, free: 460 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.2537, allocations: 4 kB / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.2537, allocations: 4 kB / 1.06 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2537, allocations: 0 / 1.06 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005216/0.2542, allocations: 384.3 kB / 1.061 GB, free: 32 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.605e-05/0.2543, allocations: 108.8 kB / 1.061 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.732e-05/0.2543, allocations: 8 kB / 1.061 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.2545, allocations: 15.98 kB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.416e-05/0.2545, allocations: 19.97 kB / 1.061 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.591e-05/0.2546, allocations: 12 kB / 1.061 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.908e-05/0.2546, allocations: 122.2 kB / 1.061 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.423e-06/0.2546, allocations: 0 / 1.061 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002537/0.2549, allocations: 31.94 kB / 1.061 GB, free: 15.7 MB / 0.8262 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.0007531/0.2556, allocations: 0.9331 MB / 1.062 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003982/0.2561, allocations: 169.7 kB / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2561, allocations: 0 / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001728/0.2562, allocations: 83.84 kB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003148/0.2566, allocations: 36.34 kB / 1.062 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002334/0.2589, allocations: 2.101 MB / 1.064 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.2592, allocations: 0.732 MB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.998e-05/0.2592, allocations: 21.59 kB / 1.065 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.471e-05/0.2593, allocations: 55.42 kB / 1.065 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of SimCode: time 2.81e-07/0.2593, allocations: 0 / 1.065 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.092/3.351, allocations: 3.546 MB / 1.068 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.1/15.45, allocations: 12.05 kB / 1.068 GB, free: 7.922 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-07 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.mat","/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