Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Integers.Validation.Subtract,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.u1|sub.u2|sub.y",fileNamePrefix="Buildings_9_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_9_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.001637/0.001637, allocations: 102.9 kB / 16.27 MB, free: 5.973 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.001965/0.001965, allocations: 193.3 kB / 17.2 MB, free: 5.598 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.367/1.367, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.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.205/2.205, allocations: 390.3 MB / 0.6653 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 65.17 kB / 0.8132 GB, free: 33.04 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.3097, allocations: 140.4 MB / 0.9503 GB, free: 8.859 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract): time 0.002506/0.3122, allocations: 0.772 MB / 0.951 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001201/0.3135, allocations: 0.8566 MB / 0.9519 GB, free: 7.211 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.177e-05/0.3136, allocations: 0 / 0.9519 GB, free: 7.211 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.783e-05/0.3136, allocations: 11.86 kB / 0.9519 GB, free: 7.199 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.874e-05/0.3138, allocations: 15.88 kB / 0.9519 GB, free: 7.184 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001854/0.3139, allocations: 39.88 kB / 0.9519 GB, free: 7.145 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.3141, allocations: 83.83 kB / 0.952 GB, free: 7.062 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.3142, allocations: 27.98 kB / 0.952 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.3143, allocations: 39.8 kB / 0.9521 GB, free: 6.996 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.969e-05/0.3144, allocations: 47.81 kB / 0.9521 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.096e-05/0.3145, allocations: 8 kB / 0.9521 GB, free: 6.941 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.908e-05/0.3145, allocations: 8 kB / 0.9521 GB, free: 6.934 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.978e-05/0.3146, allocations: 19.92 kB / 0.9522 GB, free: 6.914 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.212e-05/0.3146, allocations: 43.83 kB / 0.9522 GB, free: 6.871 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001466/0.3148, allocations: 79.73 kB / 0.9523 GB, free: 6.793 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3148, allocations: 0 / 0.9523 GB, free: 6.793 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.703e-06/0.3148, allocations: 3.938 kB / 0.9523 GB, free: 6.789 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.3148, allocations: 3.984 kB / 0.9523 GB, free: 6.785 MB / 0.7325 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.0006861/0.3155, allocations: 395.4 kB / 0.9527 GB, free: 6.352 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.3156, allocations: 12.02 kB / 0.9527 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.525e-05/0.3156, allocations: 8.844 kB / 0.9527 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001629/0.3158, allocations: 176.2 kB / 0.9529 GB, free: 6.121 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.904e-05/0.3158, allocations: 8.375 kB / 0.9529 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.908e-05/0.3158, allocations: 8.312 kB / 0.9529 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003172/0.3162, allocations: 101.7 kB / 0.953 GB, free: 6 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.699e-06/0.3162, allocations: 4 kB / 0.953 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.3162, allocations: 0 / 0.953 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.3162, allocations: 0 / 0.953 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003989/0.3166, allocations: 103.9 kB / 0.9531 GB, free: 5.895 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005978/0.3172, allocations: 348.6 kB / 0.9534 GB, free: 5.504 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006555/0.3179, allocations: 118.6 kB / 0.9535 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002061/0.3181, allocations: 60.8 kB / 0.9536 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.3181, allocations: 0 / 0.9536 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.3182, allocations: 38.56 kB / 0.9536 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 2.555e-06/0.3182, allocations: 3.984 kB / 0.9536 GB, free: 5.266 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0007321/0.3189, allocations: 185.4 kB / 0.9538 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/0.319, allocations: 51.41 kB / 0.9538 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.3191, allocations: 129.8 kB / 0.954 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/0.3191, allocations: 29.7 kB / 0.954 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.874e-05/0.3192, allocations: 99.98 kB / 0.9541 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.489e-05/0.3192, allocations: 23.73 kB / 0.9541 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.659e-05/0.3193, allocations: 21.7 kB / 0.9541 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.3194, allocations: 326.7 kB / 0.9544 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/0.3196, allocations: 43.95 kB / 0.9545 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.3198, allocations: 47.95 kB / 0.9545 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003812/0.3202, allocations: 100.7 kB / 0.9546 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3202, allocations: 3.938 kB / 0.9546 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004441/0.3207, allocations: 141.5 kB / 0.9548 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.3207, allocations: 4 kB / 0.9548 GB, free: 4.02 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.3207, allocations: 0 / 0.9548 GB, free: 4.02 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.3207, allocations: 0 / 0.9548 GB, free: 4.02 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002032/0.321, allocations: 23.97 kB / 0.9548 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.321, allocations: 4 kB / 0.9548 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.3211, allocations: 11.92 kB / 0.9548 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.3211, allocations: 4 kB / 0.9548 GB, free: 3.977 MB / 0.7325 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 9.664e-05/0.3212, allocations: 121.8 kB / 0.9549 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.711e-05/0.3213, allocations: 11.89 kB / 0.9549 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.087e-05/0.3213, allocations: 8.375 kB / 0.9549 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.3213, allocations: 0 / 0.9549 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.3213, allocations: 0 / 0.9549 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.3213, allocations: 7.938 kB / 0.955 GB, free: 3.82 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002337/0.3216, allocations: 201.5 kB / 0.9551 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.3216, allocations: 0 / 0.9551 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001704/0.3218, allocations: 27.97 kB / 0.9552 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.3218, allocations: 4 kB / 0.9552 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.3218, allocations: 4 kB / 0.9552 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3218, allocations: 0 / 0.9552 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3218, allocations: 0 / 0.9552 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005025/0.3223, allocations: 231.3 kB / 0.9554 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.326e-05/0.3224, allocations: 88.95 kB / 0.9555 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.403e-05/0.3224, allocations: 8 kB / 0.9555 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/0.3225, allocations: 11.97 kB / 0.9555 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.071e-05/0.3226, allocations: 19.98 kB / 0.9555 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.3227, allocations: 11.92 kB / 0.9555 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.645e-05/0.3227, allocations: 87.28 kB / 0.9556 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3227, allocations: 3.938 kB / 0.9556 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002464/0.323, allocations: 16 kB / 0.9556 GB, free: 3.035 MB / 0.7325 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.0001338/0.3231, allocations: 107.2 kB / 0.9557 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004637/0.3236, allocations: 107.8 kB / 0.9558 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3236, allocations: 0 / 0.9558 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002093/0.3238, allocations: 55.94 kB / 0.9559 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.3242, allocations: 16.94 kB / 0.9559 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005187/0.3247, allocations: 196 kB / 0.9561 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003736/0.3251, allocations: 0.698 MB / 0.9568 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.717e-05/0.3252, allocations: 19.44 kB / 0.9568 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of SimCode: time 4.41e-07/0.3252, allocations: 3.938 kB / 0.9568 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of Templates: time 0.00299/0.3282, allocations: 1.227 MB / 0.958 GB, free: 0.543 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches