Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.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: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.u1|sub.u2|sub.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.u1|sub.u2|sub.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001273, allocations: 109.3 kB / 16.41 MB, free: 6.496 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.001261/0.001261, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.25/1.25, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.438/2.438, allocations: 469.4 MB / 0.7428 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 72.08 kB / 1.066 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6806/0.6819, allocations: 159.1 MB / 1.221 GB, free: 2.367 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract): time 0.001781/0.6837, allocations: 0.7006 MB / 1.222 GB, free: 1.664 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009199/0.6847, allocations: 0.8 MB / 1.222 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.686e-05/0.6847, allocations: 0 / 1.222 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.684e-05/0.6848, allocations: 4 kB / 1.222 GB, free: 0.8477 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.837e-05/0.6848, allocations: 11.86 kB / 1.222 GB, free: 0.8359 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 5.39e-05/0.6849, allocations: 7.984 kB / 1.222 GB, free: 0.8281 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.874e-05/0.685, allocations: 51.84 kB / 1.222 GB, free: 0.7773 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.6851, allocations: 12 kB / 1.222 GB, free: 0.7656 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.901e-05/0.6852, allocations: 19.92 kB / 1.223 GB, free: 0.7461 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.079e-05/0.6852, allocations: 19.86 kB / 1.223 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.951e-05/0.6852, allocations: 4 kB / 1.223 GB, free: 0.7227 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.616e-06/0.6853, allocations: 4 kB / 1.223 GB, free: 0.7188 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.937e-05/0.6853, allocations: 11.98 kB / 1.223 GB, free: 0.707 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.946e-05/0.6853, allocations: 15.88 kB / 1.223 GB, free: 0.6914 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 8.851e-05/0.6854, allocations: 43.84 kB / 1.223 GB, free: 0.6484 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.6854, allocations: 0 / 1.223 GB, free: 0.6484 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.595e-06/0.6854, allocations: 4 kB / 1.223 GB, free: 0.6445 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.732e-06/0.6854, allocations: 0 / 1.223 GB, free: 0.6445 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004822/0.6859, allocations: 371.1 kB / 1.223 GB, free: 240 kB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.686, allocations: 8.625 kB / 1.223 GB, free: 232 kB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.087e-05/0.686, allocations: 0.9375 kB / 1.223 GB, free: 232 kB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.6861, allocations: 174.1 kB / 1.223 GB, free: 20 kB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.6861, allocations: 4.375 kB / 1.223 GB, free: 16 kB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.105e-05/0.6862, allocations: 4.375 kB / 1.223 GB, free: 12 kB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002453/0.6864, allocations: 66.3 kB / 1.223 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.6864, allocations: 192 / 1.223 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.6864, allocations: 7.938 kB / 1.223 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.6864, allocations: 0 / 1.223 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002701/0.6867, allocations: 63.92 kB / 1.223 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003414/0.6871, allocations: 268.9 kB / 1.224 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001854/0.6873, allocations: 54.48 kB / 1.224 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.6874, allocations: 48.91 kB / 1.224 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.243e-05/0.6874, allocations: 0 / 1.224 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.6875, allocations: 34.56 kB / 1.224 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 8.61e-07/0.6875, allocations: 0 / 1.224 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0004972/0.688, allocations: 129.5 kB / 1.224 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.688, allocations: 51.41 kB / 1.224 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.637e-05/0.6881, allocations: 117.8 kB / 1.224 GB, free: 15.08 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.6881, allocations: 25.7 kB / 1.224 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.657e-05/0.6882, allocations: 88.08 kB / 1.224 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.107e-05/0.6882, allocations: 11.84 kB / 1.224 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.344e-05/0.6883, allocations: 13.72 kB / 1.224 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.6884, allocations: 318.8 kB / 1.224 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.6885, allocations: 27.97 kB / 1.224 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.6887, allocations: 39.95 kB / 1.224 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002521/0.6889, allocations: 68.73 kB / 1.225 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.6889, allocations: 3.938 kB / 1.225 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002963/0.6892, allocations: 105.8 kB / 1.225 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.6892, allocations: 4 kB / 1.225 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.6893, allocations: 48 / 1.225 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.6893, allocations: 7.984 kB / 1.225 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.6894, allocations: 15.92 kB / 1.225 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.6894, allocations: 0 / 1.225 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.34e-05/0.6895, allocations: 15.98 kB / 1.225 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/0.6895, allocations: 0 / 1.225 GB, free: 14.31 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 7.666e-05/0.6896, allocations: 125.8 kB / 1.225 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.332e-05/0.6896, allocations: 0 / 1.225 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.922e-05/0.6896, allocations: 11.91 kB / 1.225 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.6896, allocations: 0 / 1.225 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.6897, allocations: 0 / 1.225 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.6897, allocations: 0 / 1.225 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001557/0.6898, allocations: 173.5 kB / 1.225 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.6898, allocations: 0 / 1.225 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.168e-05/0.6899, allocations: 19.91 kB / 1.225 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.6899, allocations: 8 kB / 1.225 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.6899, allocations: 0 / 1.225 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-06/0.69, allocations: 0 / 1.225 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.69, allocations: 0 / 1.225 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003397/0.6903, allocations: 195.3 kB / 1.225 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.426e-05/0.6903, allocations: 85.09 kB / 1.225 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.6904, allocations: 4 kB / 1.225 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.759e-05/0.6905, allocations: 7.984 kB / 1.225 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.534e-05/0.6905, allocations: 4 kB / 1.225 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-06/0.6905, allocations: 0 / 1.225 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.713e-05/0.6906, allocations: 91.58 kB / 1.225 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6906, allocations: 3.938 kB / 1.225 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002059/0.6908, allocations: 4 kB / 1.225 GB, free: 13.49 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001238/0.6909, allocations: 107.2 kB / 1.225 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003208/0.6912, allocations: 63.92 kB / 1.226 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.6913, allocations: 8 kB / 1.226 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001372/0.6914, allocations: 35.95 kB / 1.226 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.6917, allocations: 12.17 kB / 1.226 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003344/0.692, allocations: 159.1 kB / 1.226 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/0.6923, allocations: 0.6806 MB / 1.226 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.21e-05/0.6923, allocations: 15.38 kB / 1.226 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of SimCode: time 3.7e-07/0.6923, allocations: 0 / 1.226 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of Templates: time 0.001849/0.6942, allocations: 0.7505 MB / 1.227 GB, free: 11.61 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches