Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Reals.Validation.Subtract,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.u1|sub.u2|sub.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.u1|sub.u2|sub.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 102.2 kB / 16.27 MB, free: 5.965 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.001567/0.001567, allocations: 192 kB / 17.2 MB, free: 5.59 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.456/1.456, 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 10.1.1-maint.10.0.x/package.mo): time 2.574/2.574, allocations: 437.1 MB / 0.711 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 76.25 kB / 0.8699 GB, free: 2.129 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3382/0.3402, allocations: 151.6 MB / 1.018 GB, free: 10.58 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract): time 0.002192/0.3425, allocations: 0.7041 MB / 1.019 GB, free: 9.875 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001042/0.3435, allocations: 0.804 MB / 1.019 GB, free: 9.059 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.268e-05/0.3436, allocations: 0 / 1.019 GB, free: 9.059 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.301e-05/0.3436, allocations: 3.938 kB / 1.019 GB, free: 9.055 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.888e-05/0.3437, allocations: 3.938 kB / 1.019 GB, free: 9.051 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 8.142e-05/0.3438, allocations: 19.97 kB / 1.019 GB, free: 9.031 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 8.757e-05/0.3439, allocations: 43.86 kB / 1.02 GB, free: 8.988 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.344, allocations: 4 kB / 1.02 GB, free: 8.984 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.612e-05/0.3441, allocations: 27.86 kB / 1.02 GB, free: 8.957 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.764e-05/0.3442, allocations: 23.89 kB / 1.02 GB, free: 8.934 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.819e-05/0.3442, allocations: 4 kB / 1.02 GB, free: 8.93 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.11e-05/0.3442, allocations: 4 kB / 1.02 GB, free: 8.926 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.76e-05/0.3442, allocations: 4 kB / 1.02 GB, free: 8.922 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.961e-05/0.3443, allocations: 23.86 kB / 1.02 GB, free: 8.898 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 8.807e-05/0.3444, allocations: 43.88 kB / 1.02 GB, free: 8.855 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3444, allocations: 0 / 1.02 GB, free: 8.855 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3444, allocations: 0 / 1.02 GB, free: 8.855 MB / 0.795 GB Notification: Performance of Transformations before backend: time 9.438e-06/0.3444, allocations: 0 / 1.02 GB, free: 8.855 MB / 0.795 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.0006033/0.345, allocations: 359.6 kB / 1.02 GB, free: 8.453 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.3451, allocations: 12.92 kB / 1.02 GB, free: 8.441 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.292e-05/0.3451, allocations: 4.922 kB / 1.02 GB, free: 8.438 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/0.3453, allocations: 172.2 kB / 1.02 GB, free: 8.23 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/0.3453, allocations: 8.375 kB / 1.02 GB, free: 8.223 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.526e-05/0.3453, allocations: 384 / 1.02 GB, free: 8.223 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002572/0.3456, allocations: 74.16 kB / 1.02 GB, free: 8.145 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.3456, allocations: 192 / 1.02 GB, free: 8.145 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.3456, allocations: 3.938 kB / 1.02 GB, free: 8.141 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.3456, allocations: 0 / 1.02 GB, free: 8.141 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003024/0.3459, allocations: 67.92 kB / 1.02 GB, free: 8.074 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004011/0.3463, allocations: 265 kB / 1.021 GB, free: 7.766 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/0.3466, allocations: 58.47 kB / 1.021 GB, free: 7.699 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.3467, allocations: 52.8 kB / 1.021 GB, free: 7.645 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.3468, allocations: 4 kB / 1.021 GB, free: 7.641 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.3468, allocations: 30.56 kB / 1.021 GB, free: 7.602 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.3468, allocations: 0 / 1.021 GB, free: 7.602 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.0005434/0.3474, allocations: 133.5 kB / 1.021 GB, free: 7.465 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.3474, allocations: 51.41 kB / 1.021 GB, free: 7.402 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.3475, allocations: 105.8 kB / 1.021 GB, free: 7.289 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.3475, allocations: 29.7 kB / 1.021 GB, free: 7.254 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.537e-05/0.3476, allocations: 84.14 kB / 1.021 GB, free: 7.168 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.327e-05/0.3476, allocations: 11.8 kB / 1.021 GB, free: 7.156 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.999e-05/0.3477, allocations: 17.72 kB / 1.021 GB, free: 7.133 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001678/0.3478, allocations: 314.8 kB / 1.021 GB, free: 6.816 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/0.348, allocations: 39.89 kB / 1.021 GB, free: 6.777 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.3481, allocations: 27.97 kB / 1.022 GB, free: 6.75 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002794/0.3484, allocations: 81 kB / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.3484, allocations: 3.938 kB / 1.022 GB, free: 6.664 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000331/0.3488, allocations: 97.61 kB / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.3488, allocations: 4 kB / 1.022 GB, free: 6.559 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3488, allocations: 0 / 1.022 GB, free: 6.559 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.3488, allocations: 0 / 1.022 GB, free: 6.559 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.349, allocations: 23.98 kB / 1.022 GB, free: 6.535 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.014e-06/0.349, allocations: 4.25 kB / 1.022 GB, free: 6.531 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.967e-05/0.3491, allocations: 15.97 kB / 1.022 GB, free: 6.516 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-06/0.3491, allocations: 0 / 1.022 GB, free: 6.516 MB / 0.795 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 8.649e-05/0.3492, allocations: 109.8 kB / 1.022 GB, free: 6.398 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.868e-05/0.3492, allocations: 7.906 kB / 1.022 GB, free: 6.391 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.776e-05/0.3492, allocations: 7.906 kB / 1.022 GB, free: 6.379 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.3492, allocations: 0 / 1.022 GB, free: 6.379 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.3492, allocations: 4 kB / 1.022 GB, free: 6.375 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.3493, allocations: 4 kB / 1.022 GB, free: 6.371 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/0.3495, allocations: 169.6 kB / 1.022 GB, free: 6.156 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3495, allocations: 4 kB / 1.022 GB, free: 6.152 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.375e-05/0.3496, allocations: 11.98 kB / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.3496, allocations: 0 / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.233e-06/0.3496, allocations: 0 / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.3496, allocations: 4 kB / 1.022 GB, free: 6.137 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3496, allocations: 0 / 1.022 GB, free: 6.137 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003916/0.35, allocations: 203.3 kB / 1.022 GB, free: 5.922 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 6.249e-05/0.3501, allocations: 84.95 kB / 1.022 GB, free: 5.82 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.3501, allocations: 0 / 1.022 GB, free: 5.82 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.3502, allocations: 11.98 kB / 1.022 GB, free: 5.809 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.49e-05/0.3502, allocations: 3.984 kB / 1.022 GB, free: 5.805 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.3503, allocations: 11.94 kB / 1.022 GB, free: 5.793 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.316e-05/0.3503, allocations: 87.27 kB / 1.022 GB, free: 5.707 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3503, allocations: 0 / 1.022 GB, free: 5.707 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002134/0.3505, allocations: 8 kB / 1.022 GB, free: 5.699 MB / 0.795 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.0001795/0.3507, allocations: 107.2 kB / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003554/0.3511, allocations: 67.92 kB / 1.023 GB, free: 5.516 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3511, allocations: 0 / 1.023 GB, free: 5.516 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001575/0.3513, allocations: 39.91 kB / 1.023 GB, free: 5.477 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.3516, allocations: 7.875 kB / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000394/0.352, allocations: 155.3 kB / 1.023 GB, free: 5.285 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003255/0.3523, allocations: 0.6807 MB / 1.023 GB, free: 4.578 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.527e-05/0.3524, allocations: 11.44 kB / 1.023 GB, free: 4.566 MB / 0.795 GB Notification: Performance of SimCode: time 2.11e-07/0.3524, allocations: 0 / 1.023 GB, free: 4.566 MB / 0.795 GB Notification: Performance of Templates: time 0.002215/0.3546, allocations: 0.7407 MB / 1.024 GB, free: 3.836 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches