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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001541/0.001541, allocations: 100.1 kB / 15.88 MB, free: 12 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.001773/0.001773, allocations: 196.8 kB / 16.79 MB, free: 6.809 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.39/1.39, allocations: 222.9 MB / 240.5 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.392/2.392, allocations: 390.2 MB / 0.6649 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 63.91 kB / 0.8125 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7074/0.709, allocations: 140.4 MB / 0.9496 GB, free: 9.336 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract): time 0.002008/0.711, allocations: 0.7679 MB / 0.9504 GB, free: 8.746 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000762/0.7118, allocations: 0.8009 MB / 0.9511 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.632e-05/0.7118, allocations: 1.375 kB / 0.9511 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.937e-05/0.7119, allocations: 7.938 kB / 0.9511 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.419e-05/0.712, allocations: 0 / 0.9511 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 5.366e-05/0.712, allocations: 9.359 kB / 0.9512 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.393e-05/0.7121, allocations: 41.73 kB / 0.9512 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.7122, allocations: 12.11 kB / 0.9512 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.386e-05/0.7123, allocations: 14.81 kB / 0.9512 GB, free: 8.035 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.43e-05/0.7123, allocations: 20.03 kB / 0.9512 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.621e-05/0.7124, allocations: 2.75 kB / 0.9512 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.011e-05/0.7124, allocations: 6.75 kB / 0.9513 GB, free: 8.016 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.738e-05/0.7124, allocations: 13.3 kB / 0.9513 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.082e-05/0.7124, allocations: 14.67 kB / 0.9513 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.952e-05/0.7125, allocations: 25.44 kB / 0.9513 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.7125, allocations: 1.375 kB / 0.9513 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.02e-07/0.7125, allocations: 0 / 0.9513 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.7125, allocations: 0 / 0.9513 GB, free: 7.973 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.0004578/0.713, allocations: 364.6 kB / 0.9517 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.713, allocations: 13.62 kB / 0.9517 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.818e-05/0.7131, allocations: 3.688 kB / 0.9517 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.81e-05/0.7132, allocations: 175 kB / 0.9518 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.7132, allocations: 384 / 0.9518 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.38e-05/0.7132, allocations: 3.125 kB / 0.9518 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002375/0.7134, allocations: 66.84 kB / 0.9519 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.7135, allocations: 192 / 0.9519 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.7135, allocations: 5.312 kB / 0.9519 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.7135, allocations: 4 kB / 0.9519 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002619/0.7138, allocations: 63.67 kB / 0.952 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002937/0.7141, allocations: 262.7 kB / 0.9522 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001883/0.7143, allocations: 68.73 kB / 0.9523 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001491/0.7144, allocations: 42.28 kB / 0.9523 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.301e-05/0.7144, allocations: 0 / 0.9523 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.624e-05/0.7145, allocations: 32.16 kB / 0.9524 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 8.62e-07/0.7145, allocations: 0 / 0.9524 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.000499/0.715, allocations: 137.6 kB / 0.9525 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.974e-05/0.715, allocations: 56.47 kB / 0.9525 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.445e-05/0.7151, allocations: 111.8 kB / 0.9527 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.496e-06/0.7151, allocations: 25.7 kB / 0.9527 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.68e-05/0.7151, allocations: 90.61 kB / 0.9528 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.76e-05/0.7151, allocations: 13.2 kB / 0.9528 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-05/0.7152, allocations: 12.03 kB / 0.9528 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.702e-05/0.7152, allocations: 320 kB / 0.9531 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.7154, allocations: 28.53 kB / 0.9531 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.7155, allocations: 34.33 kB / 0.9532 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002648/0.7158, allocations: 75.83 kB / 0.9532 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.7158, allocations: 3.938 kB / 0.9532 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002916/0.7161, allocations: 100.7 kB / 0.9533 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.7161, allocations: 5.844 kB / 0.9533 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.7161, allocations: 4 kB / 0.9533 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.7161, allocations: 0 / 0.9533 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.7163, allocations: 14.2 kB / 0.9533 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.7163, allocations: 1.188 kB / 0.9533 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.553e-05/0.7164, allocations: 10.61 kB / 0.9534 GB, free: 6 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.7164, allocations: 1.281 kB / 0.9534 GB, free: 6 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.374e-05/0.7164, allocations: 119 kB / 0.9535 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.463e-05/0.7165, allocations: 10.66 kB / 0.9535 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.095e-05/0.7165, allocations: 5.156 kB / 0.9535 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.7165, allocations: 0 / 0.9535 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.7165, allocations: 1.25 kB / 0.9535 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.7165, allocations: 0 / 0.9535 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001218/0.7166, allocations: 169.2 kB / 0.9536 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.7166, allocations: 0 / 0.9536 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.6e-05/0.7167, allocations: 18.16 kB / 0.9537 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.7167, allocations: 1.094 kB / 0.9537 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.7168, allocations: 0 / 0.9537 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.7168, allocations: 9.188 kB / 0.9537 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.7168, allocations: 0 / 0.9537 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003241/0.7171, allocations: 200 kB / 0.9539 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.379e-05/0.7171, allocations: 82.56 kB / 0.9539 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/0.7172, allocations: 1.469 kB / 0.9539 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.93e-05/0.7173, allocations: 14.55 kB / 0.954 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.7173, allocations: 5.562 kB / 0.954 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.7173, allocations: 1.25 kB / 0.954 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.876e-05/0.7173, allocations: 84.83 kB / 0.954 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7174, allocations: 0 / 0.954 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002104/0.7176, allocations: 10.34 kB / 0.9541 GB, free: 5.273 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.0001297/0.7177, allocations: 98.81 kB / 0.9542 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003174/0.718, allocations: 77.86 kB / 0.9542 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.718, allocations: 0 / 0.9542 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.7182, allocations: 36.92 kB / 0.9543 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003365/0.7185, allocations: 8.281 kB / 0.9543 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002963/0.7188, allocations: 162.9 kB / 0.9544 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001119/0.719, allocations: 0.6799 MB / 0.9551 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.458e-05/0.719, allocations: 10.12 kB / 0.9551 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of SimCode: time 1.072e-06/0.719, allocations: 0 / 0.9551 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of Templates: time 0.002138/0.7211, allocations: 0.7382 MB / 0.9558 GB, free: 3.879 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