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.01161/0.01161, allocations: 103 kB / 15.73 MB, free: 5.492 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.002336/0.002336, allocations: 190.2 kB / 16.67 MB, free: 5.422 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.531/1.531, 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 9.1.3-maint.9.1.x/package.mo): time 2.359/2.359, allocations: 390.2 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 67.89 kB / 0.9509 GB, free: 7.566 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.051/1.052, allocations: 140.4 MB / 1.088 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract): time 0.002424/1.055, allocations: 0.7041 MB / 1.089 GB, free: 5.047 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001261/1.056, allocations: 0.8044 MB / 1.089 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.731e-05/1.056, allocations: 0.9688 kB / 1.089 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.854e-05/1.056, allocations: 0.6094 kB / 1.089 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.98e-05/1.056, allocations: 10.67 kB / 1.089 GB, free: 4.43 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 8.565e-05/1.057, allocations: 17.91 kB / 1.089 GB, free: 4.418 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001069/1.057, allocations: 39.19 kB / 1.09 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/1.057, allocations: 14.72 kB / 1.09 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.147e-05/1.057, allocations: 17.19 kB / 1.09 GB, free: 4.387 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.972e-05/1.057, allocations: 21.97 kB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.117e-05/1.057, allocations: 4.094 kB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.048e-05/1.057, allocations: 3.625 kB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.557e-05/1.057, allocations: 7.875 kB / 1.09 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.915e-05/1.057, allocations: 16.72 kB / 1.09 GB, free: 4.359 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001102/1.057, allocations: 40.34 kB / 1.09 GB, free: 4.344 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/1.057, allocations: 0 / 1.09 GB, free: 4.344 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.594e-06/1.057, allocations: 1.844 kB / 1.09 GB, free: 4.344 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.245e-05/1.057, allocations: 0 / 1.09 GB, free: 4.344 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.000512/1.058, allocations: 368.4 kB / 1.09 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/1.058, allocations: 13.48 kB / 1.09 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.557e-05/1.058, allocations: 11.25 kB / 1.09 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.255e-05/1.058, allocations: 170.3 kB / 1.09 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/1.058, allocations: 5.75 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.078e-05/1.058, allocations: 1.969 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002525/1.058, allocations: 68.38 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/1.058, allocations: 1.062 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/1.058, allocations: 3.938 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/1.058, allocations: 0.8438 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002829/1.059, allocations: 67.02 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003373/1.059, allocations: 270.3 kB / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001935/1.059, allocations: 63.48 kB / 1.091 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/1.059, allocations: 47.36 kB / 1.091 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/1.059, allocations: 1.578 kB / 1.091 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/1.059, allocations: 32.47 kB / 1.091 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/1.059, allocations: 0 / 1.091 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005338/1.06, allocations: 131.9 kB / 1.091 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/1.06, allocations: 52.34 kB / 1.091 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.537e-05/1.06, allocations: 111.3 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.819e-06/1.06, allocations: 25.7 kB / 1.091 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.602e-05/1.06, allocations: 87.52 kB / 1.091 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.31e-05/1.06, allocations: 13.41 kB / 1.091 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.273e-05/1.06, allocations: 13.56 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.195e-05/1.06, allocations: 321.9 kB / 1.091 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/1.06, allocations: 31.28 kB / 1.091 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/1.061, allocations: 31.48 kB / 1.091 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002815/1.061, allocations: 74.22 kB / 1.092 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/1.061, allocations: 3.938 kB / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003326/1.061, allocations: 94.47 kB / 1.092 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/1.061, allocations: 5.031 kB / 1.092 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/1.061, allocations: 0.6094 kB / 1.092 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/1.061, allocations: 1.094 kB / 1.092 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001573/1.061, allocations: 14.67 kB / 1.092 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/1.061, allocations: 5.781 kB / 1.092 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.937e-05/1.061, allocations: 10.59 kB / 1.092 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/1.061, allocations: 0.8125 kB / 1.092 GB, free: 2.559 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 9.572e-05/1.062, allocations: 117.3 kB / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.846e-05/1.062, allocations: 5.469 kB / 1.092 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.152e-05/1.062, allocations: 6.531 kB / 1.092 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/1.062, allocations: 0.7188 kB / 1.092 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/1.062, allocations: 0.875 kB / 1.092 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/1.062, allocations: 4.609 kB / 1.092 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001901/1.062, allocations: 174.2 kB / 1.092 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/1.062, allocations: 0.7812 kB / 1.092 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/1.062, allocations: 19.03 kB / 1.092 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/1.062, allocations: 0.75 kB / 1.092 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/1.062, allocations: 5.438 kB / 1.092 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/1.062, allocations: 4.719 kB / 1.092 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/1.062, allocations: 0 / 1.092 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003498/1.062, allocations: 198.4 kB / 1.092 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.612e-05/1.062, allocations: 82.53 kB / 1.092 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/1.062, allocations: 1.75 kB / 1.092 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/1.063, allocations: 11.64 kB / 1.092 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.507e-05/1.063, allocations: 7.094 kB / 1.092 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/1.063, allocations: 6.125 kB / 1.092 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.636e-05/1.063, allocations: 87.62 kB / 1.092 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/1.063, allocations: 0 / 1.092 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002255/1.063, allocations: 6.062 kB / 1.092 GB, free: 1.875 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.000155/1.063, allocations: 105 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003483/1.063, allocations: 74.38 kB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/1.063, allocations: 0 / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001514/1.064, allocations: 34.39 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/1.064, allocations: 13.38 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003305/1.064, allocations: 118.3 kB / 1.093 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001479/1.064, allocations: 0.6844 MB / 1.093 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.806e-05/1.064, allocations: 5.75 kB / 1.093 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.686e-05/1.065, allocations: 12.84 kB / 1.093 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/1.065, allocations: 0.75 kB / 1.093 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of Templates: time 0.003041/1.068, allocations: 0.677 MB / 1.094 GB, free: 0.8594 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