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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.006545/0.006545, allocations: 100 kB / 15.73 MB, free: 6.012 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.00175/0.00175, allocations: 192.4 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 1.294/1.294, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.527/2.527, allocations: 482.6 MB / 0.7551 GB, free: 6.625 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001716/0.001716, allocations: 66.06 kB / 1.083 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2606, allocations: 162.3 MB / 1.242 GB, free: 8.871 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002062/0.2627, allocations: 1.066 MB / 1.243 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00108/0.2638, allocations: 0.9869 MB / 1.244 GB, free: 6.809 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.563e-05/0.2639, allocations: 4 kB / 1.244 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.264, allocations: 19.73 kB / 1.244 GB, free: 6.785 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.579e-05/0.264, allocations: 23.8 kB / 1.244 GB, free: 6.762 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002284/0.2643, allocations: 71.84 kB / 1.244 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001826/0.2645, allocations: 172 kB / 1.244 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.2646, allocations: 84.05 kB / 1.244 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.81e-05/0.2647, allocations: 75.69 kB / 1.244 GB, free: 6.359 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.2648, allocations: 79.61 kB / 1.244 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.081e-05/0.2649, allocations: 16 kB / 1.244 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 2.409e-05/0.2649, allocations: 16 kB / 1.244 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.7e-05/0.265, allocations: 43.84 kB / 1.245 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.203e-05/0.265, allocations: 75.59 kB / 1.245 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002046/0.2652, allocations: 191.3 kB / 1.245 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.2652, allocations: 0 / 1.245 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2653, allocations: 0 / 1.245 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.334e-06/0.2653, allocations: 3.938 kB / 1.245 GB, free: 5.941 MB / 0.9669 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.0007228/0.266, allocations: 480.2 kB / 1.245 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.266, allocations: 12.03 kB / 1.245 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.96e-05/0.2661, allocations: 54.73 kB / 1.245 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.499e-05/0.2662, allocations: 20.8 kB / 1.245 GB, free: 5.328 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002467/0.2664, allocations: 220.6 kB / 1.246 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.841e-05/0.2664, allocations: 16.38 kB / 1.246 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.149e-05/0.2665, allocations: 16.38 kB / 1.246 GB, free: 5.043 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002949/0.2668, allocations: 153.4 kB / 1.246 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.495e-06/0.2668, allocations: 0 / 1.246 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.2668, allocations: 12 kB / 1.246 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/0.2668, allocations: 7.938 kB / 1.246 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002685/0.2671, allocations: 104.5 kB / 1.246 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009852/0.2681, allocations: 0.543 MB / 1.246 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003407/0.2684, allocations: 138.7 kB / 1.246 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.2686, allocations: 84.8 kB / 1.247 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.2686, allocations: 8 kB / 1.247 GB, free: 3.934 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002188/0.2689, allocations: 119.3 kB / 1.247 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=19): time 1.253e-06/0.2689, allocations: 0 / 1.247 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.0005063/0.2694, allocations: 227.2 kB / 1.247 GB, free: 3.578 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/0.2694, allocations: 59.34 kB / 1.247 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.2696, allocations: 157.5 kB / 1.247 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.2696, allocations: 33.7 kB / 1.247 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.798e-05/0.2697, allocations: 116.6 kB / 1.247 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.328e-05/0.2697, allocations: 63.42 kB / 1.247 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.022e-05/0.2698, allocations: 41.7 kB / 1.247 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001245/0.2699, allocations: 330.8 kB / 1.248 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.2701, allocations: 59.97 kB / 1.248 GB, free: 2.691 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002119/0.2703, allocations: 101.5 kB / 1.248 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003293/0.2707, allocations: 140.2 kB / 1.248 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2707, allocations: 0 / 1.248 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004636/0.2712, allocations: 217.4 kB / 1.248 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/0.2712, allocations: 4 kB / 1.248 GB, free: 2.223 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.417e-06/0.2712, allocations: 0 / 1.248 GB, free: 2.223 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.2712, allocations: 4 kB / 1.248 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/0.2714, allocations: 43.91 kB / 1.248 GB, free: 2.176 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.2714, allocations: 0 / 1.248 GB, free: 2.176 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001291/0.2715, allocations: 31.8 kB / 1.248 GB, free: 2.145 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.705e-05/0.2716, allocations: 8 kB / 1.248 GB, free: 2.137 MB / 0.9669 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.894e-05/0.2717, allocations: 133.8 kB / 1.248 GB, free: 1.996 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.546e-05/0.2717, allocations: 15.91 kB / 1.248 GB, free: 1.98 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003926/0.2721, allocations: 192.6 kB / 1.249 GB, free: 1.789 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.2721, allocations: 0 / 1.249 GB, free: 1.789 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.195e-06/0.2721, allocations: 4 kB / 1.249 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2721, allocations: 0 / 1.249 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007728/0.2729, allocations: 0.5886 MB / 1.249 GB, free: 1.125 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.2729, allocations: 4.188 kB / 1.249 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001643/0.2731, allocations: 43.86 kB / 1.249 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.2731, allocations: 7.938 kB / 1.249 GB, free: 1.07 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.2731, allocations: 4 kB / 1.249 GB, free: 1.066 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.2731, allocations: 3.984 kB / 1.249 GB, free: 1.062 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.2731, allocations: 4 kB / 1.249 GB, free: 1.059 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005528/0.2737, allocations: 380.4 kB / 1.25 GB, free: 0.6523 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.612e-05/0.2738, allocations: 96.89 kB / 1.25 GB, free: 0.5391 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.761e-05/0.2738, allocations: 12.03 kB / 1.25 GB, free: 0.5273 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.2739, allocations: 15.98 kB / 1.25 GB, free: 0.5117 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.646e-05/0.274, allocations: 19.97 kB / 1.25 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.274, allocations: 12 kB / 1.25 GB, free: 492 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.845e-05/0.2741, allocations: 123.2 kB / 1.25 GB, free: 368 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2741, allocations: 0 / 1.25 GB, free: 368 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002528/0.2744, allocations: 31.95 kB / 1.25 GB, free: 336 kB / 0.9669 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.000865/0.2753, allocations: 0.9335 MB / 1.251 GB, free: 15.35 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003929/0.2757, allocations: 159.9 kB / 1.251 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2757, allocations: 0 / 1.251 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001834/0.2759, allocations: 88.16 kB / 1.251 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.2762, allocations: 36 kB / 1.251 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002542/0.2787, allocations: 2.148 MB / 1.253 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/0.279, allocations: 0.7205 MB / 1.254 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.724e-05/0.2791, allocations: 21.41 kB / 1.254 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.809e-05/0.2792, allocations: 47.42 kB / 1.254 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.2792, allocations: 0 / 1.254 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.348/1.628, allocations: 3.607 MB / 1.257 GB, free: 8.484 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/12.44, allocations: 19.08 kB / 1.257 GB, free: 8.469 MB / 0.9825 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=400 --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