Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 111.5 kB / 16.42 MB, free: 6.441 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.001259/0.001259, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.419/1.419, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.733/2.733, allocations: 461.9 MB / 0.7355 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 63.91 kB / 1.055 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9676/0.969, allocations: 157.4 MB / 1.208 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.002134/0.9712, allocations: 0.6047 MB / 1.209 GB, free: 13.14 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002139/0.9734, allocations: 1.446 MB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.716e-05/0.9734, allocations: 0 / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.75e-05/0.9735, allocations: 7.938 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 3.412e-05/0.9735, allocations: 0 / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006519/0.9742, allocations: 143.4 kB / 1.211 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.837e-05/0.9743, allocations: 31.91 kB / 1.211 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.397e-05/0.9743, allocations: 4 kB / 1.211 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.167e-05/0.9744, allocations: 15.98 kB / 1.211 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.222e-05/0.9745, allocations: 19.95 kB / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.781e-05/0.9745, allocations: 7.938 kB / 1.211 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00047/0.975, allocations: 315.4 kB / 1.211 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.634e-05/0.975, allocations: 11.98 kB / 1.211 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.352e-05/0.9751, allocations: 11.97 kB / 1.211 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003254/0.9754, allocations: 191.6 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.9754, allocations: 0 / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.225e-06/0.9754, allocations: 3.938 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.9754, allocations: 4 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005879/0.976, allocations: 357.4 kB / 1.212 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.9761, allocations: 11.97 kB / 1.212 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004928/0.9766, allocations: 76.75 kB / 1.212 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001188/0.9767, allocations: 164.4 kB / 1.212 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.779e-05/0.9767, allocations: 4.359 kB / 1.212 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.761e-05/0.9768, allocations: 4.375 kB / 1.212 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002739/0.977, allocations: 81.88 kB / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.9771, allocations: 0 / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.9771, allocations: 8 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.9771, allocations: 0 / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003101/0.9774, allocations: 63.92 kB / 1.212 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001812/0.9776, allocations: 173.5 kB / 1.212 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006047/0.9782, allocations: 118.6 kB / 1.212 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001693/0.9784, allocations: 48.91 kB / 1.212 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004652/0.9789, allocations: 153 kB / 1.212 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.9789, allocations: 34.5 kB / 1.212 GB, free: 9.477 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 1.242e-06/0.9789, allocations: 0 / 1.212 GB, free: 9.477 MB / 0.9356 GB Notification: Performance of matching and sorting (n=5): time 0.001216/0.9801, allocations: 402.2 kB / 1.213 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/0.9802, allocations: 59.41 kB / 1.213 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.985e-05/0.9803, allocations: 93.84 kB / 1.213 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.9803, allocations: 29.7 kB / 1.213 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 2.657e-05/0.9803, allocations: 80.14 kB / 1.213 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.946e-05/0.9803, allocations: 15.75 kB / 1.213 GB, free: 8.727 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.89e-05/0.9804, allocations: 21.7 kB / 1.213 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.773e-05/0.9805, allocations: 318.8 kB / 1.213 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001619/0.9807, allocations: 36.09 kB / 1.213 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.9808, allocations: 35.97 kB / 1.213 GB, free: 8.309 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003017/0.9811, allocations: 72.8 kB / 1.214 GB, free: 8.234 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.9812, allocations: 0 / 1.214 GB, free: 8.234 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003698/0.9815, allocations: 117.5 kB / 1.214 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.9816, allocations: 7.938 kB / 1.214 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.9816, allocations: 4 kB / 1.214 GB, free: 8.102 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.9816, allocations: 0 / 1.214 GB, free: 8.102 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.9817, allocations: 31.91 kB / 1.214 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.9818, allocations: 0 / 1.214 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.9819, allocations: 12.23 kB / 1.214 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.9819, allocations: 0 / 1.214 GB, free: 8.059 MB / 0.9356 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 (6): * Single equations (assignments): 6 * 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.02e-05/0.982, allocations: 113.8 kB / 1.214 GB, free: 7.938 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.907e-05/0.982, allocations: 3.938 kB / 1.214 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004614/0.9825, allocations: 141.1 kB / 1.214 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.9825, allocations: 3.938 kB / 1.214 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.9825, allocations: 4 kB / 1.214 GB, free: 7.781 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.184e-05/0.9826, allocations: 81.09 kB / 1.214 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.9826, allocations: 0 / 1.214 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.9827, allocations: 27.91 kB / 1.214 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.634e-05/0.9827, allocations: 4 kB / 1.214 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005141/0.9833, allocations: 204.9 kB / 1.214 GB, free: 7.445 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006539/0.9839, allocations: 330.6 kB / 1.215 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001954/0.9841, allocations: 51.98 kB / 1.215 GB, free: 7.055 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.628e-05/0.9842, allocations: 75.28 kB / 1.215 GB, free: 6.98 MB / 0.9356 GB Notification: Performance of Backend: time 3e-07/0.9842, allocations: 0 / 1.215 GB, free: 6.98 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006721/0.9849, allocations: 174.7 kB / 1.215 GB, free: 6.801 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0004621/0.9854, allocations: 0.5747 MB / 1.215 GB, free: 6.176 MB / 0.9356 GB Notification: Performance of Templates: time 0.004183/0.9895, allocations: 1.691 MB / 1.217 GB, free: 4.48 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches