Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Integers.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Integers.Validation.Subtract,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.u1|sub.u2|sub.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.u1|sub.u2|sub.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009125/0.009124, allocations: 99.72 kB / 15.73 MB, free: 6.051 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.002226/0.002226, allocations: 194.5 kB / 16.67 MB, free: 5.965 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.481/1.481, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.656/2.656, allocations: 437 MB / 0.7105 GB, free: 4.441 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 67.89 kB / 1.019 GB, free: 9.402 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.157/1.158, allocations: 151.6 MB / 1.167 GB, free: 3.895 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract): time 0.002573/1.161, allocations: 0.7771 MB / 1.167 GB, free: 3.117 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001486/1.162, allocations: 0.8725 MB / 1.168 GB, free: 2.234 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.65e-05/1.162, allocations: 0 / 1.168 GB, free: 2.234 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.575e-05/1.162, allocations: 7.922 kB / 1.168 GB, free: 2.227 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001116/1.162, allocations: 15.86 kB / 1.168 GB, free: 2.211 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001847/1.163, allocations: 35.95 kB / 1.168 GB, free: 2.176 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001415/1.163, allocations: 91.75 kB / 1.168 GB, free: 2.086 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/1.163, allocations: 19.98 kB / 1.168 GB, free: 2.066 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.64e-05/1.163, allocations: 39.84 kB / 1.168 GB, free: 2.027 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/1.163, allocations: 55.81 kB / 1.168 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.77e-05/1.163, allocations: 8 kB / 1.168 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.934e-05/1.163, allocations: 8 kB / 1.168 GB, free: 1.957 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.686e-05/1.163, allocations: 19.92 kB / 1.169 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.15e-05/1.163, allocations: 27.86 kB / 1.169 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001834/1.164, allocations: 99.09 kB / 1.169 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/1.164, allocations: 0 / 1.169 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.575e-06/1.164, allocations: 0 / 1.169 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.071e-06/1.164, allocations: 0 / 1.169 GB, free: 1.816 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007261/1.164, allocations: 400.1 kB / 1.169 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/1.164, allocations: 8.922 kB / 1.169 GB, free: 1.371 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.766e-05/1.164, allocations: 8.891 kB / 1.169 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001839/1.165, allocations: 172.3 kB / 1.169 GB, free: 1.156 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/1.165, allocations: 12.36 kB / 1.169 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.707e-05/1.165, allocations: 4.375 kB / 1.169 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003407/1.165, allocations: 114.8 kB / 1.169 GB, free: 1.023 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/1.165, allocations: 4 kB / 1.169 GB, free: 1.02 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.315e-05/1.165, allocations: 8 kB / 1.169 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/1.165, allocations: 0 / 1.169 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003866/1.165, allocations: 91.91 kB / 1.169 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005587/1.166, allocations: 344.6 kB / 1.17 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000644/1.167, allocations: 118.6 kB / 1.17 GB, free: 420 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002138/1.167, allocations: 64.8 kB / 1.17 GB, free: 352 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/1.167, allocations: 4 kB / 1.17 GB, free: 348 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/1.167, allocations: 34.56 kB / 1.17 GB, free: 304 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/1.167, allocations: 0 / 1.17 GB, free: 304 kB / 0.8887 GB Notification: Performance of matching and sorting (n=7): time 0.0007084/1.168, allocations: 185.4 kB / 1.17 GB, free: 112 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/1.168, allocations: 51.41 kB / 1.17 GB, free: 48 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001671/1.168, allocations: 133.7 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/1.168, allocations: 25.7 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/1.168, allocations: 104 kB / 1.17 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.669e-05/1.168, allocations: 19.8 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.989e-05/1.168, allocations: 21.7 kB / 1.17 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001357/1.168, allocations: 322.8 kB / 1.171 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/1.168, allocations: 43.95 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/1.169, allocations: 47.95 kB / 1.171 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000377/1.169, allocations: 96.77 kB / 1.171 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/1.169, allocations: 0 / 1.171 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004248/1.17, allocations: 146 kB / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/1.17, allocations: 4 kB / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/1.17, allocations: 0 / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/1.17, allocations: 0 / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/1.17, allocations: 23.97 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/1.17, allocations: 0 / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001203/1.17, allocations: 19.86 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/1.17, allocations: 7.984 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (reaToInt1.y,reaToInt.y,sub.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 0.0001063/1.17, allocations: 121.8 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.194e-05/1.17, allocations: 3.953 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.077e-05/1.17, allocations: 12.38 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/1.17, allocations: 0 / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.517e-05/1.17, allocations: 0 / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/1.17, allocations: 7.875 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002148/1.17, allocations: 201.6 kB / 1.171 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/1.17, allocations: 0 / 1.171 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001645/1.171, allocations: 27.97 kB / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/1.171, allocations: 0 / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/1.171, allocations: 0 / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/1.171, allocations: 8.016 kB / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/1.171, allocations: 7.969 kB / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004716/1.171, allocations: 235.4 kB / 1.172 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.897e-05/1.171, allocations: 85.05 kB / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.168e-05/1.171, allocations: 0 / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/1.171, allocations: 11.98 kB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.948e-05/1.171, allocations: 31.91 kB / 1.172 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/1.171, allocations: 3.938 kB / 1.172 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.312e-05/1.172, allocations: 99.27 kB / 1.172 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/1.172, allocations: 0 / 1.172 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002316/1.172, allocations: 12 kB / 1.172 GB, free: 14.06 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (sub.y,reaToInt.y,reaToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0001565/1.172, allocations: 105.2 kB / 1.172 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005075/1.172, allocations: 107.9 kB / 1.172 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/1.172, allocations: 0 / 1.172 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002103/1.173, allocations: 67.89 kB / 1.172 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/1.173, allocations: 11.94 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004391/1.173, allocations: 174 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/1.174, allocations: 0.6924 MB / 1.173 GB, free: 12.85 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 6.633e-05/1.174, allocations: 8 kB / 1.173 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.264e-05/1.174, allocations: 19.42 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/1.174, allocations: 0 / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of Templates: time 0.003937/1.178, allocations: 1.578 MB / 1.175 GB, free: 11.25 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Subtract.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches