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.001401/0.0014, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00148/0.00148, allocations: 188.3 kB / 16.13 MB, free: 6.645 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.488/1.488, allocations: 222.9 MB / 239.8 MB, free: 4.578 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.451/2.451, allocations: 390.2 MB / 0.6642 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001717, allocations: 67.89 kB / 0.8119 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.855/0.8567, allocations: 140.4 MB / 0.9489 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract): time 0.002058/0.8588, allocations: 0.7642 MB / 0.9497 GB, free: 8.582 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.86, allocations: 0.8011 MB / 0.9505 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.752e-05/0.86, allocations: 0 / 0.9505 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 6.116e-05/0.8601, allocations: 5.031 kB / 0.9505 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.8602, allocations: 3.984 kB / 0.9505 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 9.139e-05/0.8603, allocations: 14.39 kB / 0.9505 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001233/0.8605, allocations: 45.59 kB / 0.9505 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.8606, allocations: 3.406 kB / 0.9505 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000107/0.8607, allocations: 18.48 kB / 0.9506 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.691e-05/0.8608, allocations: 20.48 kB / 0.9506 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.396e-05/0.8609, allocations: 2.688 kB / 0.9506 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.521e-05/0.8609, allocations: 2.688 kB / 0.9506 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.901e-05/0.8609, allocations: 11.92 kB / 0.9506 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.498e-05/0.861, allocations: 11.75 kB / 0.9506 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001329/0.8611, allocations: 38.86 kB / 0.9506 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 1.24e-05/0.8611, allocations: 5.609 kB / 0.9506 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.983e-06/0.8611, allocations: 0 / 0.9506 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.606e-06/0.8611, allocations: 0 / 0.9506 GB, free: 7.797 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.0005744/0.8617, allocations: 368.3 kB / 0.951 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.564e-05/0.8618, allocations: 9.875 kB / 0.951 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.906e-05/0.8618, allocations: 2.562 kB / 0.951 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.862, allocations: 166.9 kB / 0.9512 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.862, allocations: 5.625 kB / 0.9512 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.706e-05/0.862, allocations: 6.953 kB / 0.9512 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002721/0.8623, allocations: 66.69 kB / 0.9512 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.8623, allocations: 4.188 kB / 0.9512 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.8623, allocations: 5.031 kB / 0.9513 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.8623, allocations: 3.938 kB / 0.9513 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000302/0.8626, allocations: 64.17 kB / 0.9513 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004159/0.8631, allocations: 267.1 kB / 0.9516 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002143/0.8633, allocations: 56.42 kB / 0.9516 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001546/0.8635, allocations: 49.92 kB / 0.9517 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/0.8635, allocations: 1.25 kB / 0.9517 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.579e-05/0.8635, allocations: 34.56 kB / 0.9517 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.8635, allocations: 1.5 kB / 0.9517 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005429/0.8641, allocations: 132.3 kB / 0.9518 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.125e-05/0.8641, allocations: 56.72 kB / 0.9519 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.62e-05/0.8642, allocations: 111.5 kB / 0.952 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.155e-05/0.8642, allocations: 29.7 kB / 0.952 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.39e-05/0.8643, allocations: 82.89 kB / 0.9521 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.491e-05/0.8643, allocations: 13.22 kB / 0.9521 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.208e-05/0.8643, allocations: 12.47 kB / 0.9521 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.11e-05/0.8644, allocations: 320.2 kB / 0.9524 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.8645, allocations: 28.47 kB / 0.9525 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.8647, allocations: 37.83 kB / 0.9525 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002579/0.865, allocations: 63.11 kB / 0.9526 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.865, allocations: 3.938 kB / 0.9526 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003056/0.8653, allocations: 109 kB / 0.9527 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.8653, allocations: 5.562 kB / 0.9527 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.8653, allocations: 0 / 0.9527 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.8653, allocations: 1.094 kB / 0.9527 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.8655, allocations: 18.36 kB / 0.9527 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.8655, allocations: 0 / 0.9527 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.576e-05/0.8656, allocations: 11.05 kB / 0.9527 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.796e-06/0.8656, allocations: 1.594 kB / 0.9527 GB, free: 5.824 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 7.26e-05/0.8657, allocations: 119.4 kB / 0.9528 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.513e-05/0.8657, allocations: 5.672 kB / 0.9528 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.559e-05/0.8657, allocations: 5.25 kB / 0.9528 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.8657, allocations: 1.406 kB / 0.9528 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.8657, allocations: 0 / 0.9528 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.8658, allocations: 0 / 0.9528 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001661/0.8659, allocations: 169.2 kB / 0.953 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.8659, allocations: 0 / 0.953 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001024/0.866, allocations: 26.31 kB / 0.953 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.8661, allocations: 1.094 kB / 0.953 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.8661, allocations: 0 / 0.953 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.8661, allocations: 1.031 kB / 0.953 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.8661, allocations: 0 / 0.953 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003355/0.8664, allocations: 204.5 kB / 0.9532 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.606e-05/0.8665, allocations: 78.42 kB / 0.9533 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.631e-05/0.8665, allocations: 4.359 kB / 0.9533 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.8666, allocations: 11.08 kB / 0.9533 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.587e-05/0.8666, allocations: 2.656 kB / 0.9533 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-06/0.8666, allocations: 0 / 0.9533 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.411e-05/0.8667, allocations: 90.02 kB / 0.9534 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8667, allocations: 0 / 0.9534 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000216/0.8669, allocations: 6.406 kB / 0.9534 GB, free: 5.105 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.0001272/0.867, allocations: 111.7 kB / 0.9535 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003776/0.8674, allocations: 74.25 kB / 0.9536 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.8674, allocations: 1.344 kB / 0.9536 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001601/0.8676, allocations: 39.61 kB / 0.9536 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003775/0.868, allocations: 8.5 kB / 0.9536 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000322/0.8683, allocations: 132.8 kB / 0.9537 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000148/0.8685, allocations: 0.6883 MB / 0.9544 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.59e-05/0.8685, allocations: 5.438 kB / 0.9544 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.173e-05/0.8686, allocations: 8.75 kB / 0.9544 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of SimCode: time 8.01e-07/0.8686, allocations: 0 / 0.9544 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of Templates: time 0.002711/0.8713, allocations: 0.5415 MB / 0.955 GB, free: 3.82 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/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