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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001014/0.001014, allocations: 85.94 kB / 15.06 MB, free: 1.09 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.001366/0.001366, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.698/1.698, allocations: 223.2 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.791/2.791, allocations: 437.7 MB / 0.7117 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000488/0.000488, allocations: 19.98 kB / 0.8722 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8331/0.8336, allocations: 153.8 MB / 1.022 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract): time 0.001155/0.8348, allocations: 426.2 kB / 1.023 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0009516/0.8358, allocations: 0.8039 MB / 1.024 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.475e-05/0.8358, allocations: 4 kB / 1.024 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.519e-05/0.8358, allocations: 0 / 1.024 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.555e-05/0.8359, allocations: 3.938 kB / 1.024 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 6.704e-05/0.836, allocations: 7.984 kB / 1.024 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.355e-05/0.8361, allocations: 39.86 kB / 1.024 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.8362, allocations: 11.98 kB / 1.024 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.416e-05/0.8363, allocations: 11.98 kB / 1.024 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.113e-05/0.8364, allocations: 15.92 kB / 1.024 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.508e-05/0.8364, allocations: 4 kB / 1.024 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.434e-06/0.8364, allocations: 0 / 1.024 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.803e-05/0.8364, allocations: 15.92 kB / 1.024 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.443e-05/0.8365, allocations: 25.7 kB / 1.024 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.538e-05/0.8366, allocations: 31.92 kB / 1.024 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.8366, allocations: 4 kB / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.943e-06/0.8366, allocations: 0 / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.8366, allocations: 0 / 1.024 GB, free: 14.61 MB / 0.7794 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.0005531/0.8371, allocations: 369.2 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.8372, allocations: 8.031 kB / 1.024 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.766e-05/0.8373, allocations: 11.91 kB / 1.024 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001415/0.8374, allocations: 167 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.8374, allocations: 7.938 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.466e-05/0.8374, allocations: 7.922 kB / 1.024 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002552/0.8377, allocations: 81.61 kB / 1.024 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.8377, allocations: 4 kB / 1.024 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.8377, allocations: 0 / 1.024 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.8377, allocations: 0 / 1.024 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003866/0.8381, allocations: 87.92 kB / 1.024 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004122/0.8386, allocations: 268.8 kB / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001938/0.8388, allocations: 70.48 kB / 1.025 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000149/0.8389, allocations: 52.91 kB / 1.025 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.294e-05/0.8389, allocations: 4 kB / 1.025 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.755e-05/0.839, allocations: 30.56 kB / 1.025 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 3.296e-06/0.839, allocations: 4 kB / 1.025 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004935/0.8395, allocations: 161.5 kB / 1.025 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.223e-05/0.8396, allocations: 59.34 kB / 1.025 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.514e-05/0.8397, allocations: 109.8 kB / 1.025 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.8397, allocations: 25.7 kB / 1.025 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.8398, allocations: 88.14 kB / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.8399, allocations: 11.75 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.8399, allocations: 0 / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.84, allocations: 318.8 kB / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.8401, allocations: 39.97 kB / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/0.8403, allocations: 43.95 kB / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000131/0.8404, allocations: 43.97 kB / 1.026 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.8404, allocations: 3.953 kB / 1.026 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002886/0.8407, allocations: 117.6 kB / 1.026 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.8407, allocations: 4 kB / 1.026 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.8407, allocations: 0 / 1.026 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.8408, allocations: 0 / 1.026 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.8409, allocations: 35.91 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.523e-06/0.8409, allocations: 0 / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.174e-05/0.841, allocations: 15.98 kB / 1.026 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.841, allocations: 0 / 1.026 GB, free: 12.19 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.436e-05/0.8411, allocations: 113.8 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.8411, allocations: 11.86 kB / 1.026 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.067e-05/0.8412, allocations: 11.91 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.8412, allocations: 0 / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.8412, allocations: 4 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.8412, allocations: 0 / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001782/0.8414, allocations: 170 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.8414, allocations: 0 / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.239e-05/0.8415, allocations: 23.94 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.8415, allocations: 4 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.8415, allocations: 3.938 kB / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.8415, allocations: 0 / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.8415, allocations: 0 / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003617/0.8419, allocations: 223.4 kB / 1.026 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.777e-05/0.842, allocations: 85.02 kB / 1.027 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.844e-05/0.842, allocations: 3.953 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.8421, allocations: 23.92 kB / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.415e-05/0.8421, allocations: 3.984 kB / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.8421, allocations: 0 / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.252e-05/0.8422, allocations: 91.27 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.8422, allocations: 0 / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002116/0.8424, allocations: 8 kB / 1.027 GB, free: 11.33 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001787/0.8426, allocations: 99.23 kB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003109/0.8429, allocations: 95.92 kB / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.8429, allocations: 0 / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001353/0.8431, allocations: 47.91 kB / 1.027 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.8434, allocations: 11.14 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003301/0.8437, allocations: 132.7 kB / 1.027 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.8441, allocations: 0.677 MB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.368e-05/0.8441, allocations: 4 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.85e-05/0.8441, allocations: 7.438 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of SimCode: time 2.6e-07/0.8441, allocations: 0 / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of Templates: time 0.002983/0.8471, allocations: 0.5169 MB / 1.028 GB, free: 9.688 MB / 0.7794 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=480 -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/jenkins/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