Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009009/0.009009, allocations: 99.52 kB / 15.73 MB, free: 6.039 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.001914/0.001914, allocations: 201 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.826/2.826, allocations: 472.6 MB / 0.7453 GB, free: 4.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 67.89 kB / 1.07 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3426, allocations: 159.9 MB / 1.226 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002468/0.3451, allocations: 0.7843 MB / 1.226 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00228/0.3474, allocations: 1.485 MB / 1.228 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.336e-05/0.3475, allocations: 0 / 1.228 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.004e-05/0.3476, allocations: 7.938 kB / 1.228 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.282e-05/0.3477, allocations: 0 / 1.228 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007096/0.3484, allocations: 143.4 kB / 1.228 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001306/0.3485, allocations: 55.89 kB / 1.228 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.278e-05/0.3486, allocations: 4 kB / 1.228 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.641e-05/0.3487, allocations: 27.91 kB / 1.228 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.224e-05/0.3488, allocations: 31.89 kB / 1.228 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.009e-05/0.3488, allocations: 4 kB / 1.228 GB, free: 6.578 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005342/0.3493, allocations: 319.4 kB / 1.228 GB, free: 6.266 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.318e-05/0.3494, allocations: 19.91 kB / 1.228 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.657e-05/0.3494, allocations: 19.88 kB / 1.228 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003977/0.3498, allocations: 211.4 kB / 1.229 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.3499, allocations: 0 / 1.229 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3499, allocations: 3.938 kB / 1.229 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.137e-06/0.3499, allocations: 4 kB / 1.229 GB, free: 6.012 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007053/0.3506, allocations: 412.7 kB / 1.229 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.3506, allocations: 8.031 kB / 1.229 GB, free: 5.555 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004513/0.3511, allocations: 76.84 kB / 1.229 GB, free: 5.48 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001389/0.3512, allocations: 172.3 kB / 1.229 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.566e-05/0.3513, allocations: 8.375 kB / 1.229 GB, free: 5.266 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.082e-05/0.3513, allocations: 4.375 kB / 1.229 GB, free: 5.262 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003976/0.3517, allocations: 121.9 kB / 1.229 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.3517, allocations: 0 / 1.229 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.3518, allocations: 4 kB / 1.229 GB, free: 5.133 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.3518, allocations: 0 / 1.229 GB, free: 5.133 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004771/0.3523, allocations: 111.1 kB / 1.23 GB, free: 5.027 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005727/0.3528, allocations: 328.7 kB / 1.23 GB, free: 4.656 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006314/0.3535, allocations: 154.4 kB / 1.23 GB, free: 4.496 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000234/0.3537, allocations: 64.78 kB / 1.23 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.768e-05/0.3538, allocations: 0 / 1.23 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.3538, allocations: 34.56 kB / 1.23 GB, free: 4.387 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.3538, allocations: 0 / 1.23 GB, free: 4.387 MB / 0.9825 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=11): time 0.01744/0.3712, allocations: 2.834 MB / 1.233 GB, free: 1.457 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/0.3713, allocations: 59.34 kB / 1.233 GB, free: 1.387 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.014e-05/0.3714, allocations: 101.8 kB / 1.233 GB, free: 1.277 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 6.412e-05/0.3715, allocations: 29.7 kB / 1.233 GB, free: 1.242 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.15e-05/0.3716, allocations: 88.09 kB / 1.233 GB, free: 1.152 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.949e-05/0.3716, allocations: 39.62 kB / 1.233 GB, free: 1.113 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001717/0.3718, allocations: 73.52 kB / 1.233 GB, free: 1.035 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.3719, allocations: 322.8 kB / 1.234 GB, free: 0.7109 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007281/0.3727, allocations: 187.8 kB / 1.234 GB, free: 0.5273 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000653/0.3733, allocations: 191.8 kB / 1.234 GB, free: 348 kB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/0.3747, allocations: 388.5 kB / 1.234 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3747, allocations: 4 kB / 1.234 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001569/0.3763, allocations: 477.3 kB / 1.235 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.623e-05/0.3763, allocations: 8 kB / 1.235 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.3763, allocations: 0 / 1.235 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.3764, allocations: 0 / 1.235 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007887/0.3771, allocations: 107.8 kB / 1.235 GB, free: 15.37 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.533e-05/0.3772, allocations: 11.88 kB / 1.235 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005693/0.3778, allocations: 47.94 kB / 1.235 GB, free: 15.31 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.93e-05/0.3778, allocations: 27.92 kB / 1.235 GB, free: 15.28 MB / 0.9981 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 (13): * Single equations (assignments): 13 * 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.0001782/0.378, allocations: 110.4 kB / 1.235 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.122e-05/0.3781, allocations: 7.953 kB / 1.235 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.433e-05/0.3782, allocations: 19.91 kB / 1.235 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.3782, allocations: 0 / 1.235 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.3782, allocations: 7.938 kB / 1.235 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.3782, allocations: 3.984 kB / 1.235 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002345/0.3806, allocations: 1.043 MB / 1.236 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.3806, allocations: 4 kB / 1.236 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007617/0.3814, allocations: 103.8 kB / 1.236 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.3814, allocations: 3.938 kB / 1.236 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.533e-05/0.3815, allocations: 23.92 kB / 1.236 GB, free: 13.83 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.3815, allocations: 8 kB / 1.236 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3815, allocations: 0 / 1.236 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002414/0.3839, allocations: 0.7917 MB / 1.237 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001801/0.3841, allocations: 124.9 kB / 1.237 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.669e-05/0.3842, allocations: 0 / 1.237 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006232/0.3848, allocations: 52 kB / 1.237 GB, free: 12.82 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.3849, allocations: 27.92 kB / 1.237 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.359e-05/0.385, allocations: 19.94 kB / 1.237 GB, free: 12.78 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.11e-05/0.385, allocations: 87.27 kB / 1.237 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.385, allocations: 4 kB / 1.237 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000377/0.3854, allocations: 48 kB / 1.237 GB, free: 12.64 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * 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 (11): * Single equations (assignments): 11 * 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.0002456/0.3857, allocations: 111.5 kB / 1.238 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001434/0.3871, allocations: 426.4 kB / 1.238 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.219e-06/0.3871, allocations: 4 kB / 1.238 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000737/0.3879, allocations: 231.7 kB / 1.238 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003767/0.3883, allocations: 8 kB / 1.238 GB, free: 11.87 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004035/0.3923, allocations: 0.7476 MB / 1.239 GB, free: 11.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.3926, allocations: 0.6963 MB / 1.24 GB, free: 10.38 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0005214/0.3931, allocations: 92.66 kB / 1.24 GB, free: 10.29 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002632/0.3934, allocations: 55.3 kB / 1.24 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of SimCode: time 4.41e-07/0.3934, allocations: 0 / 1.24 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of Templates: time 0.006596/0.4, allocations: 3.477 MB / 1.243 GB, free: 6.754 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches