Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 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: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.u1|sub.u2|sub.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.u1|sub.u2|sub.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 108 kB / 15.99 MB, free: 5.895 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.001283/0.001283, allocations: 193.4 kB / 16.91 MB, free: 5.746 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.417/1.417, allocations: 222.9 MB / 240.6 MB, free: 4.504 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 2.455/2.455, allocations: 390.2 MB / 0.665 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 71.89 kB / 0.8127 GB, free: 14.72 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6838/0.6853, allocations: 140.4 MB / 0.9498 GB, free: 9.375 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract): time 0.001805/0.6871, allocations: 0.7632 MB / 0.9505 GB, free: 8.789 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006596/0.6878, allocations: 0.7974 MB / 0.9513 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.449e-05/0.6879, allocations: 1.344 kB / 0.9513 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.354e-05/0.6879, allocations: 3.984 kB / 0.9513 GB, free: 8.133 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.689e-05/0.688, allocations: 5.031 kB / 0.9513 GB, free: 8.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 5.658e-05/0.688, allocations: 9.688 kB / 0.9513 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.485e-05/0.6881, allocations: 44.06 kB / 0.9514 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.6882, allocations: 13.12 kB / 0.9514 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.383e-05/0.6883, allocations: 17.8 kB / 0.9514 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.201e-05/0.6884, allocations: 22.3 kB / 0.9514 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.02e-05/0.6884, allocations: 2.688 kB / 0.9514 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.12e-05/0.6884, allocations: 4.188 kB / 0.9514 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.876e-05/0.6884, allocations: 17.38 kB / 0.9515 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.754e-05/0.6884, allocations: 14.64 kB / 0.9515 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.185e-05/0.6885, allocations: 21.52 kB / 0.9515 GB, free: 8.016 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.6885, allocations: 5.406 kB / 0.9515 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.713e-06/0.6885, allocations: 4 kB / 0.9515 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.6885, allocations: 3.938 kB / 0.9515 GB, free: 8.004 MB / 0.7169 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.0005733/0.6891, allocations: 365 kB / 0.9518 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.6892, allocations: 9.25 kB / 0.9519 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.459e-05/0.6892, allocations: 3.469 kB / 0.9519 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.558e-05/0.6893, allocations: 170.9 kB / 0.952 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.6893, allocations: 1.625 kB / 0.952 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.305e-05/0.6894, allocations: 5.656 kB / 0.952 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002536/0.6896, allocations: 75.86 kB / 0.9521 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.6896, allocations: 192 / 0.9521 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.6897, allocations: 3.938 kB / 0.9521 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.6897, allocations: 1.469 kB / 0.9521 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002774/0.6899, allocations: 59.16 kB / 0.9522 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003653/0.6903, allocations: 272 kB / 0.9524 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002071/0.6905, allocations: 63.66 kB / 0.9525 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001557/0.6907, allocations: 46.12 kB / 0.9525 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.6907, allocations: 1.562 kB / 0.9525 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.911e-05/0.6907, allocations: 30.56 kB / 0.9526 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 2.024e-06/0.6908, allocations: 3.984 kB / 0.9526 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004917/0.6912, allocations: 133.9 kB / 0.9527 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.441e-05/0.6913, allocations: 52.5 kB / 0.9527 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.588e-05/0.6913, allocations: 111.5 kB / 0.9528 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.676e-06/0.6914, allocations: 25.7 kB / 0.9529 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.884e-05/0.6914, allocations: 93.62 kB / 0.953 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.6914, allocations: 13.14 kB / 0.953 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.969e-05/0.6915, allocations: 17.34 kB / 0.953 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.434e-05/0.6915, allocations: 312.9 kB / 0.9533 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.6916, allocations: 36.42 kB / 0.9533 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.6918, allocations: 29.78 kB / 0.9534 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002334/0.692, allocations: 67.22 kB / 0.9534 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.692, allocations: 7.938 kB / 0.9534 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002848/0.6923, allocations: 96.69 kB / 0.9535 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.6923, allocations: 5.188 kB / 0.9535 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-06/0.6923, allocations: 0 / 0.9535 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.6924, allocations: 0.9062 kB / 0.9535 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.6925, allocations: 22.34 kB / 0.9535 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.6925, allocations: 0 / 0.9535 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.148e-05/0.6926, allocations: 15.42 kB / 0.9536 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.6926, allocations: 0.9375 kB / 0.9536 GB, free: 6.027 MB / 0.7169 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 5.458e-05/0.6926, allocations: 115.7 kB / 0.9537 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.358e-05/0.6927, allocations: 2.031 kB / 0.9537 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.38e-05/0.6927, allocations: 12.95 kB / 0.9537 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.6927, allocations: 1.125 kB / 0.9537 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.6927, allocations: 3.938 kB / 0.9537 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.6927, allocations: 0 / 0.9537 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000146/0.6929, allocations: 169.9 kB / 0.9538 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.6929, allocations: 0 / 0.9538 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.486e-05/0.693, allocations: 19.14 kB / 0.9539 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.693, allocations: 0 / 0.9539 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.085e-06/0.693, allocations: 3.938 kB / 0.9539 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.693, allocations: 9.203 kB / 0.9539 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.693, allocations: 0 / 0.9539 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003175/0.6933, allocations: 199.7 kB / 0.9541 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.358e-05/0.6934, allocations: 78.33 kB / 0.9541 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.6934, allocations: 1.125 kB / 0.9541 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.6935, allocations: 14.55 kB / 0.9542 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.412e-05/0.6935, allocations: 6.266 kB / 0.9542 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.6936, allocations: 1.156 kB / 0.9542 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.369e-05/0.6936, allocations: 92.67 kB / 0.9543 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6936, allocations: 1.156 kB / 0.9543 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002156/0.6938, allocations: 5.406 kB / 0.9543 GB, free: 5.297 MB / 0.7169 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.0001332/0.694, allocations: 98.12 kB / 0.9544 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003108/0.6943, allocations: 67.52 kB / 0.9544 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.6943, allocations: 4 kB / 0.9544 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.6944, allocations: 36.78 kB / 0.9545 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003158/0.6947, allocations: 16.05 kB / 0.9545 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003072/0.6951, allocations: 166 kB / 0.9546 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001199/0.6952, allocations: 0.684 MB / 0.9553 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.211e-05/0.6952, allocations: 9.562 kB / 0.9553 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.6952, allocations: 0 / 0.9553 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of Templates: time 0.002065/0.6973, allocations: 0.7421 MB / 0.956 GB, free: 3.902 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches