Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005132/0.005132, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.00115/0.00115, allocations: 196.2 kB / 16.67 MB, free: 5.52 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.266/1.266, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.02/2.02, allocations: 390.3 MB / 0.6648 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 67.91 kB / 0.9504 GB, free: 8.105 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6625/0.6636, allocations: 140.4 MB / 1.088 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001404/0.6651, allocations: 0.5918 MB / 1.088 GB, free: 4.906 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001262/0.6663, allocations: 1.456 MB / 1.09 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.881e-05/0.6664, allocations: 0 / 1.09 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.315e-05/0.6664, allocations: 5.125 kB / 1.09 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.038e-05/0.6664, allocations: 3.938 kB / 1.09 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004244/0.6669, allocations: 141.4 kB / 1.09 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.733e-05/0.6669, allocations: 29.98 kB / 1.09 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.354e-05/0.667, allocations: 5.906 kB / 1.09 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.589e-05/0.667, allocations: 17.31 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.494e-05/0.6671, allocations: 22.91 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.6671, allocations: 6.297 kB / 1.09 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004165/0.6675, allocations: 314.9 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.624e-05/0.6675, allocations: 5.516 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.386e-05/0.6676, allocations: 18.91 kB / 1.09 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002623/0.6678, allocations: 186.8 kB / 1.09 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.6678, allocations: 0 / 1.09 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.543e-06/0.6679, allocations: 5.125 kB / 1.09 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.6679, allocations: 0 / 1.09 GB, free: 3.602 MB / 0.8575 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.0003961/0.6683, allocations: 361.5 kB / 1.091 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.6683, allocations: 9.859 kB / 1.091 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.667e-05/0.6683, allocations: 31.59 kB / 1.091 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000434/0.6688, allocations: 75.19 kB / 1.091 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.618e-05/0.6688, allocations: 166.7 kB / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.6689, allocations: 1.312 kB / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.846e-05/0.6689, allocations: 2.438 kB / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002308/0.6691, allocations: 80.56 kB / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.331e-06/0.6691, allocations: 0 / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.6691, allocations: 1.125 kB / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.266e-06/0.6692, allocations: 0 / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002917/0.6694, allocations: 64.72 kB / 1.091 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001164/0.6696, allocations: 168.5 kB / 1.091 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000564/0.6701, allocations: 126.2 kB / 1.091 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.6703, allocations: 42.19 kB / 1.091 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004306/0.6708, allocations: 151.1 kB / 1.091 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.745e-05/0.6708, allocations: 48.33 kB / 1.092 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.153e-06/0.6708, allocations: 0 / 1.092 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.00104/0.6718, allocations: 402.7 kB / 1.092 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.119e-05/0.6719, allocations: 52.83 kB / 1.092 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.302e-05/0.6719, allocations: 97.03 kB / 1.092 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.6719, allocations: 27.28 kB / 1.092 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.089e-05/0.6719, allocations: 89.17 kB / 1.092 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.181e-05/0.672, allocations: 11.45 kB / 1.092 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.898e-05/0.672, allocations: 21.2 kB / 1.092 GB, free: 1.93 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.225e-05/0.672, allocations: 312.8 kB / 1.092 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.6722, allocations: 38.78 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.6724, allocations: 42.34 kB / 1.093 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002912/0.6727, allocations: 79.17 kB / 1.093 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.82e-07/0.6727, allocations: 0 / 1.093 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003407/0.673, allocations: 116.1 kB / 1.093 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.673, allocations: 6.266 kB / 1.093 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.673, allocations: 0 / 1.093 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.673, allocations: 0.8125 kB / 1.093 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.6732, allocations: 26.94 kB / 1.093 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.6732, allocations: 0.875 kB / 1.093 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.83e-05/0.6733, allocations: 15.78 kB / 1.093 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.6733, allocations: 2.484 kB / 1.093 GB, free: 1.516 MB / 0.8575 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 4.557e-05/0.6734, allocations: 112.1 kB / 1.093 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.547e-05/0.6734, allocations: 5.562 kB / 1.093 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004197/0.6738, allocations: 137.1 kB / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.6738, allocations: 1.531 kB / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.6738, allocations: 336 / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.6738, allocations: 1.859 kB / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.955e-05/0.6739, allocations: 162.2 kB / 1.093 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.6739, allocations: 8.734 kB / 1.093 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001496/0.6741, allocations: 22.22 kB / 1.093 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.6741, allocations: 13.62 kB / 1.093 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.6741, allocations: 5.797 kB / 1.093 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.6741, allocations: 0.875 kB / 1.093 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.6741, allocations: 0 / 1.093 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005281/0.6747, allocations: 177.7 kB / 1.093 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.906e-05/0.6747, allocations: 95.14 kB / 1.094 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.783e-05/0.6747, allocations: 5.953 kB / 1.094 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.6749, allocations: 20.55 kB / 1.094 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.113e-05/0.6749, allocations: 3.797 kB / 1.094 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.6749, allocations: 3.844 kB / 1.094 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.563e-05/0.6749, allocations: 77.33 kB / 1.094 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.6749, allocations: 0.875 kB / 1.094 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002119/0.6751, allocations: 34.19 kB / 1.094 GB, free: 0.8281 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (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 Backend phase and start with SimCode phase: time 0.0007864/0.6759, allocations: 0.7479 MB / 1.094 GB, free: 16.19 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000359/0.6763, allocations: 82.31 kB / 1.094 GB, free: 16.18 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.6763, allocations: 4.688 kB / 1.094 GB, free: 16.18 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001713/0.6765, allocations: 49.77 kB / 1.095 GB, free: 16.16 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001339/0.6766, allocations: 5.812 kB / 1.095 GB, free: 16.16 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001813/0.6784, allocations: 1.352 MB / 1.096 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001841/0.6786, allocations: 0.6791 MB / 1.096 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.656e-05/0.6787, allocations: 20.98 kB / 1.097 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.982e-05/0.6788, allocations: 12.47 kB / 1.097 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of SimCode: time 2.4e-07/0.6788, allocations: 0 / 1.097 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.508/2.186, allocations: 2.057 MB / 1.099 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.679/11.87, allocations: 8.047 kB / 1.099 GB, free: 13.9 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[191]=-0.810000 " Variables in the reference:time,y_comp,y Variables in the result:delta,der(x),der(y_comp),err,time,x,y,y_comp