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.009373/0.009373, allocations: 103.6 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.001793/0.001794, allocations: 190.8 kB / 16.67 MB, free: 5.977 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.526/1.526, allocations: 222.9 MB / 240.4 MB, free: 15.12 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.357/2.357, allocations: 390.2 MB / 0.6648 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 63.91 kB / 0.9509 GB, free: 7.559 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9554/0.9566, allocations: 140.4 MB / 1.088 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract): time 0.002088/0.9587, allocations: 0.7005 MB / 1.089 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009982/0.9597, allocations: 0.8011 MB / 1.089 GB, free: 4.445 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.994e-05/0.9598, allocations: 1.438 kB / 1.089 GB, free: 4.445 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.245e-05/0.9598, allocations: 4.594 kB / 1.089 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.434e-05/0.9599, allocations: 6.281 kB / 1.089 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 7.013e-05/0.96, allocations: 9.297 kB / 1.089 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.934e-05/0.9601, allocations: 42.86 kB / 1.09 GB, free: 4.414 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.9602, allocations: 11.67 kB / 1.09 GB, free: 4.41 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.463e-05/0.9603, allocations: 24.09 kB / 1.09 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.146e-05/0.9604, allocations: 19.33 kB / 1.09 GB, free: 4.387 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.863e-05/0.9604, allocations: 3.5 kB / 1.09 GB, free: 4.387 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.178e-05/0.9604, allocations: 3.5 kB / 1.09 GB, free: 4.387 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.166e-05/0.9604, allocations: 7.453 kB / 1.09 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.685e-05/0.9605, allocations: 25.28 kB / 1.09 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001076/0.9606, allocations: 39.06 kB / 1.09 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.9606, allocations: 4 kB / 1.09 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.693e-06/0.9606, allocations: 0 / 1.09 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.9606, allocations: 0 / 1.09 GB, free: 4.348 MB / 0.8575 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.000534/0.9611, allocations: 360.7 kB / 1.09 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.9612, allocations: 10.89 kB / 1.09 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.033e-05/0.9612, allocations: 6.969 kB / 1.09 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.084e-05/0.9613, allocations: 165.6 kB / 1.09 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.9613, allocations: 5.594 kB / 1.09 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.9614, allocations: 10.8 kB / 1.09 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002678/0.9616, allocations: 71.45 kB / 1.09 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.9617, allocations: 2.094 kB / 1.09 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.9617, allocations: 3.938 kB / 1.09 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.9617, allocations: 1.156 kB / 1.09 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002952/0.962, allocations: 66.98 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003475/0.9623, allocations: 265.5 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002046/0.9626, allocations: 63.31 kB / 1.091 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.9627, allocations: 47.73 kB / 1.091 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.9628, allocations: 0.8125 kB / 1.091 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.18e-05/0.9628, allocations: 31.95 kB / 1.091 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.233e-06/0.9628, allocations: 0 / 1.091 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005803/0.9634, allocations: 128.7 kB / 1.091 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/0.9634, allocations: 52.38 kB / 1.091 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.9635, allocations: 110.9 kB / 1.091 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.9635, allocations: 27.5 kB / 1.091 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.219e-05/0.9636, allocations: 86.88 kB / 1.091 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.664e-05/0.9636, allocations: 21.91 kB / 1.091 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.666e-05/0.9637, allocations: 20.61 kB / 1.091 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.068e-05/0.9637, allocations: 314.6 kB / 1.091 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.9639, allocations: 34.52 kB / 1.091 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.9641, allocations: 31.55 kB / 1.091 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000284/0.9643, allocations: 65.41 kB / 1.092 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.9644, allocations: 5.25 kB / 1.092 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003186/0.9647, allocations: 97.69 kB / 1.092 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.9647, allocations: 4.719 kB / 1.092 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.9647, allocations: 0.5156 kB / 1.092 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.9647, allocations: 1.062 kB / 1.092 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.9649, allocations: 23.48 kB / 1.092 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.9649, allocations: 0.75 kB / 1.092 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.451e-05/0.965, allocations: 15.39 kB / 1.092 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.216e-06/0.965, allocations: 0.9062 kB / 1.092 GB, free: 2.562 MB / 0.8575 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.854e-05/0.9651, allocations: 112.8 kB / 1.092 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.708e-05/0.9651, allocations: 6.766 kB / 1.092 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.799e-05/0.9651, allocations: 9.594 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.9651, allocations: 1.156 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.9651, allocations: 0.5625 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.9651, allocations: 336 / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001475/0.9653, allocations: 175 kB / 1.092 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.9653, allocations: 4 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.703e-05/0.9654, allocations: 15.58 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.9654, allocations: 5.375 kB / 1.092 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.9654, allocations: 0.75 kB / 1.092 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.9654, allocations: 3.938 kB / 1.092 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.9654, allocations: 1.469 kB / 1.092 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003494/0.9658, allocations: 201.7 kB / 1.092 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.687e-05/0.9658, allocations: 82.91 kB / 1.092 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.493e-05/0.9659, allocations: 1.375 kB / 1.092 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.966, allocations: 11.06 kB / 1.092 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.919e-05/0.966, allocations: 4.25 kB / 1.092 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-06/0.966, allocations: 0.7188 kB / 1.092 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.555e-05/0.9661, allocations: 91.5 kB / 1.092 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9661, allocations: 0 / 1.092 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002161/0.9663, allocations: 6.844 kB / 1.092 GB, free: 1.883 MB / 0.8575 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.0001718/0.9665, allocations: 103.8 kB / 1.093 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003742/0.9668, allocations: 67.38 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.9669, allocations: 4 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001641/0.967, allocations: 38.34 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.9674, allocations: 19.33 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003568/0.9677, allocations: 122.3 kB / 1.093 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001387/0.9679, allocations: 0.6807 MB / 1.093 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.444e-05/0.9679, allocations: 5.281 kB / 1.093 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.078e-05/0.9679, allocations: 9.094 kB / 1.093 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.9679, allocations: 0.7188 kB / 1.093 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of Templates: time 0.003186/0.9711, allocations: 0.6954 MB / 1.094 GB, free: 0.8633 MB / 0.8575 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/jenkins/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