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.001401/0.001401, allocations: 108 kB / 15.61 MB, free: 152 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.001662/0.001663, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.457/1.457, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.563/2.563, allocations: 390.2 MB / 0.6647 GB, free: 412 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 67.84 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8607/0.862, allocations: 140.4 MB / 0.9496 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract): time 0.002153/0.8642, allocations: 0.7742 MB / 0.9504 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009491/0.8651, allocations: 0.8636 MB / 0.9512 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.815e-05/0.8652, allocations: 0 / 0.9512 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.401e-05/0.8652, allocations: 9.25 kB / 0.9512 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001004/0.8654, allocations: 11.86 kB / 0.9512 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001573/0.8655, allocations: 34.84 kB / 0.9512 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001148/0.8657, allocations: 95.5 kB / 0.9513 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001355/0.8658, allocations: 26.08 kB / 0.9514 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.068e-05/0.8659, allocations: 33.19 kB / 0.9514 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.509e-05/0.866, allocations: 52.22 kB / 0.9514 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.775e-05/0.866, allocations: 9.188 kB / 0.9515 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.95e-05/0.866, allocations: 6.781 kB / 0.9515 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.659e-05/0.8661, allocations: 22.58 kB / 0.9515 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.427e-05/0.8661, allocations: 38.84 kB / 0.9515 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.8663, allocations: 83.41 kB / 0.9516 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.8663, allocations: 0 / 0.9516 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.833e-06/0.8663, allocations: 0 / 0.9516 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.8663, allocations: 0 / 0.9516 GB, free: 7.527 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000581/0.8669, allocations: 394.5 kB / 0.952 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.8669, allocations: 9.594 kB / 0.952 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.191e-05/0.867, allocations: 12.56 kB / 0.952 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001229/0.8671, allocations: 184.3 kB / 0.9522 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.8671, allocations: 6.781 kB / 0.9522 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.899e-05/0.8671, allocations: 4.5 kB / 0.9522 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003089/0.8675, allocations: 104.2 kB / 0.9523 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.8675, allocations: 1.312 kB / 0.9523 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/0.8675, allocations: 4 kB / 0.9523 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.8675, allocations: 5.156 kB / 0.9523 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000376/0.8679, allocations: 100.9 kB / 0.9524 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004919/0.8684, allocations: 350.9 kB / 0.9527 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006003/0.869, allocations: 121.6 kB / 0.9528 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001931/0.8692, allocations: 58.66 kB / 0.9529 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.8692, allocations: 0 / 0.9529 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.893e-05/0.8693, allocations: 39.91 kB / 0.9529 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 8.62e-07/0.8693, allocations: 0 / 0.9529 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0006582/0.8699, allocations: 171.6 kB / 0.9531 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/0.87, allocations: 56.78 kB / 0.9532 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.207e-05/0.87, allocations: 130 kB / 0.9533 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.8701, allocations: 29.64 kB / 0.9533 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.008e-05/0.8701, allocations: 90.94 kB / 0.9534 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.842e-05/0.8701, allocations: 30.44 kB / 0.9534 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.61e-05/0.8702, allocations: 20.78 kB / 0.9534 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.661e-05/0.8703, allocations: 324.1 kB / 0.9537 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00018/0.8704, allocations: 44.42 kB / 0.9538 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000164/0.8706, allocations: 47.73 kB / 0.9538 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003338/0.871, allocations: 97.83 kB / 0.9539 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.871, allocations: 1.188 kB / 0.9539 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004024/0.8714, allocations: 135.5 kB / 0.9541 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.8714, allocations: 10.31 kB / 0.9541 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.8714, allocations: 0 / 0.9541 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.8714, allocations: 1.031 kB / 0.9541 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.8716, allocations: 28.47 kB / 0.9541 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.8716, allocations: 0 / 0.9541 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001122/0.8717, allocations: 20.16 kB / 0.9541 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.405e-05/0.8718, allocations: 1.281 kB / 0.9541 GB, free: 5.285 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: 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 7.501e-05/0.8719, allocations: 117.4 kB / 0.9542 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.273e-05/0.8719, allocations: 7.406 kB / 0.9542 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.098e-05/0.8719, allocations: 13.72 kB / 0.9543 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.8719, allocations: 1.219 kB / 0.9543 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.8719, allocations: 3.984 kB / 0.9543 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.872, allocations: 9.078 kB / 0.9543 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001774/0.8721, allocations: 194.7 kB / 0.9545 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.8721, allocations: 1.312 kB / 0.9545 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001564/0.8723, allocations: 27.31 kB / 0.9545 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.8723, allocations: 1.031 kB / 0.9545 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.8723, allocations: 9.078 kB / 0.9545 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.8723, allocations: 0 / 0.9545 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.8723, allocations: 4.969 kB / 0.9545 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000469/0.8728, allocations: 240.1 kB / 0.9547 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.371e-05/0.8729, allocations: 82.27 kB / 0.9548 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/0.8729, allocations: 1.188 kB / 0.9548 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.8731, allocations: 11.77 kB / 0.9548 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.8732, allocations: 22.25 kB / 0.9548 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.818e-06/0.8732, allocations: 5.469 kB / 0.9548 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.074e-05/0.8732, allocations: 94.92 kB / 0.9549 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8733, allocations: 0 / 0.9549 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002427/0.8735, allocations: 23.78 kB / 0.955 GB, free: 4.484 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: 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.0001553/0.8737, allocations: 100.5 kB / 0.955 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005114/0.8742, allocations: 110.4 kB / 0.9552 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.8742, allocations: 0 / 0.9552 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002269/0.8744, allocations: 70.45 kB / 0.9552 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003877/0.8748, allocations: 16.95 kB / 0.9552 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004628/0.8753, allocations: 167.3 kB / 0.9554 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001562/0.8755, allocations: 0.6969 MB / 0.9561 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.762e-05/0.8755, allocations: 15.05 kB / 0.9561 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.535e-05/0.8756, allocations: 18.39 kB / 0.9561 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of SimCode: time 5.31e-07/0.8756, allocations: 0 / 0.9561 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of Templates: time 0.004368/0.88, allocations: 1.571 MB / 0.9576 GB, free: 2.625 MB / 0.7169 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/jenkins/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