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.01096/0.01096, allocations: 99.44 kB / 15.73 MB, free: 6.062 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.001767/0.001768, allocations: 196.9 kB / 16.68 MB, free: 5.965 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.445/1.445, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.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.865/2.865, allocations: 437 MB / 0.7105 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 59.91 kB / 1.019 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3753/0.3764, allocations: 151.6 MB / 1.167 GB, free: 6.805 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract): time 0.002546/0.379, allocations: 0.712 MB / 1.167 GB, free: 6.094 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001252/0.3803, allocations: 0.8043 MB / 1.168 GB, free: 5.277 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.828e-05/0.3804, allocations: 4 kB / 1.168 GB, free: 5.273 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.991e-05/0.3804, allocations: 3.938 kB / 1.168 GB, free: 5.27 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.891e-05/0.3806, allocations: 3.938 kB / 1.168 GB, free: 5.266 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 6.841e-05/0.3806, allocations: 11.98 kB / 1.168 GB, free: 5.254 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 9.483e-05/0.3807, allocations: 47.91 kB / 1.168 GB, free: 5.207 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.3809, allocations: 12 kB / 1.168 GB, free: 5.195 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.364e-05/0.381, allocations: 19.86 kB / 1.168 GB, free: 5.176 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.745e-05/0.381, allocations: 23.92 kB / 1.168 GB, free: 5.152 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.706e-05/0.3811, allocations: 4 kB / 1.168 GB, free: 5.148 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 9.728e-06/0.3811, allocations: 4 kB / 1.168 GB, free: 5.145 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.162e-05/0.3811, allocations: 11.92 kB / 1.168 GB, free: 5.133 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.812e-05/0.3811, allocations: 15.92 kB / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001235/0.3813, allocations: 43.8 kB / 1.168 GB, free: 5.074 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3813, allocations: 4 kB / 1.168 GB, free: 5.07 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3813, allocations: 0 / 1.168 GB, free: 5.07 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.3813, allocations: 0 / 1.168 GB, free: 5.07 MB / 0.92 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.000576/0.3819, allocations: 363.3 kB / 1.169 GB, free: 4.664 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.3819, allocations: 11.97 kB / 1.169 GB, free: 4.652 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.436e-05/0.382, allocations: 12.89 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.3821, allocations: 164.4 kB / 1.169 GB, free: 4.441 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.3821, allocations: 8.375 kB / 1.169 GB, free: 4.434 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.374e-05/0.3822, allocations: 384 / 1.169 GB, free: 4.434 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002708/0.3824, allocations: 70.16 kB / 1.169 GB, free: 4.359 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.3824, allocations: 4.125 kB / 1.169 GB, free: 4.355 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.3825, allocations: 7.938 kB / 1.169 GB, free: 4.348 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.3825, allocations: 0 / 1.169 GB, free: 4.348 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002762/0.3828, allocations: 67.92 kB / 1.169 GB, free: 4.281 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000388/0.3831, allocations: 268.9 kB / 1.169 GB, free: 3.969 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002223/0.3834, allocations: 62.42 kB / 1.169 GB, free: 3.898 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.3835, allocations: 48.89 kB / 1.169 GB, free: 3.848 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.252e-05/0.3836, allocations: 0 / 1.169 GB, free: 3.848 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.648e-05/0.3836, allocations: 30.56 kB / 1.169 GB, free: 3.809 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.3836, allocations: 0 / 1.169 GB, free: 3.809 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0005265/0.3841, allocations: 129.6 kB / 1.17 GB, free: 3.676 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.3842, allocations: 55.41 kB / 1.17 GB, free: 3.609 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.3843, allocations: 109.8 kB / 1.17 GB, free: 3.492 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.3843, allocations: 25.7 kB / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.892e-05/0.3844, allocations: 88.14 kB / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.357e-05/0.3844, allocations: 11.89 kB / 1.17 GB, free: 3.359 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.646e-05/0.3844, allocations: 17.66 kB / 1.17 GB, free: 3.336 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.3846, allocations: 318.8 kB / 1.17 GB, free: 3.016 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.3847, allocations: 31.97 kB / 1.17 GB, free: 2.984 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.3849, allocations: 35.95 kB / 1.17 GB, free: 2.949 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002504/0.3851, allocations: 60.8 kB / 1.17 GB, free: 2.887 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.3852, allocations: 7.938 kB / 1.17 GB, free: 2.879 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003272/0.3855, allocations: 97.61 kB / 1.17 GB, free: 2.777 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.3855, allocations: 8 kB / 1.17 GB, free: 2.77 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3855, allocations: 0 / 1.17 GB, free: 2.77 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.3855, allocations: 0 / 1.17 GB, free: 2.77 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.3857, allocations: 15.92 kB / 1.17 GB, free: 2.754 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.3857, allocations: 0 / 1.17 GB, free: 2.754 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.041e-05/0.3858, allocations: 15.98 kB / 1.17 GB, free: 2.738 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-06/0.3858, allocations: 0 / 1.17 GB, free: 2.738 MB / 0.92 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 0.0001398/0.3859, allocations: 125.7 kB / 1.171 GB, free: 2.605 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.61e-05/0.386, allocations: 3.953 kB / 1.171 GB, free: 2.602 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.637e-05/0.386, allocations: 7.906 kB / 1.171 GB, free: 2.586 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.386, allocations: 0 / 1.171 GB, free: 2.586 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.386, allocations: 0 / 1.171 GB, free: 2.586 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.386, allocations: 0 / 1.171 GB, free: 2.586 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000183/0.3862, allocations: 173.6 kB / 1.171 GB, free: 2.367 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3862, allocations: 0 / 1.171 GB, free: 2.367 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.248e-05/0.3863, allocations: 19.97 kB / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.3863, allocations: 0 / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.3863, allocations: 4 kB / 1.171 GB, free: 2.344 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3864, allocations: 0 / 1.171 GB, free: 2.344 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3864, allocations: 3.938 kB / 1.171 GB, free: 2.34 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003715/0.3867, allocations: 199.4 kB / 1.171 GB, free: 2.129 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.787e-05/0.3868, allocations: 85.06 kB / 1.171 GB, free: 2.027 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.3868, allocations: 4.359 kB / 1.171 GB, free: 2.023 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.3869, allocations: 11.98 kB / 1.171 GB, free: 2.012 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.749e-05/0.387, allocations: 4 kB / 1.171 GB, free: 2.008 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.387, allocations: 0 / 1.171 GB, free: 2.008 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.605e-05/0.387, allocations: 95.58 kB / 1.171 GB, free: 1.914 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3871, allocations: 0 / 1.171 GB, free: 1.914 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002135/0.3873, allocations: 7.938 kB / 1.171 GB, free: 1.906 MB / 0.92 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.0001505/0.3874, allocations: 99.25 kB / 1.171 GB, free: 1.801 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003505/0.3878, allocations: 71.91 kB / 1.171 GB, free: 1.73 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3878, allocations: 4 kB / 1.171 GB, free: 1.727 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001738/0.388, allocations: 39.89 kB / 1.171 GB, free: 1.688 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002684/0.3883, allocations: 12.17 kB / 1.171 GB, free: 1.676 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003419/0.3886, allocations: 113.4 kB / 1.171 GB, free: 1.539 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003177/0.3889, allocations: 0.6806 MB / 1.172 GB, free: 0.832 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 3.441e-05/0.389, allocations: 8 kB / 1.172 GB, free: 0.8242 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.633e-05/0.389, allocations: 7.438 kB / 1.172 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of SimCode: time 6.21e-07/0.389, allocations: 0 / 1.172 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of Templates: time 0.002903/0.3919, allocations: 0.6808 MB / 1.173 GB, free: 148 kB / 0.92 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