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 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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",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.005971/0.005971, allocations: 100.5 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.001338/0.001337, allocations: 187 kB / 16.67 MB, free: 5.969 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.831/2.831, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 64.31 kB / 1.054 GB, free: 7.609 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3718/0.3734, allocations: 157.4 MB / 1.207 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002362/0.3758, allocations: 0.7768 MB / 1.208 GB, free: 9.32 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002137/0.3779, allocations: 1.474 MB / 1.21 GB, free: 7.828 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.553e-05/0.3781, allocations: 0 / 1.21 GB, free: 7.828 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.724e-05/0.3781, allocations: 3.938 kB / 1.21 GB, free: 7.824 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.047e-05/0.3782, allocations: 7.875 kB / 1.21 GB, free: 7.816 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006612/0.3788, allocations: 151.4 kB / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001204/0.379, allocations: 51.89 kB / 1.21 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.613e-05/0.379, allocations: 0 / 1.21 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001029/0.3791, allocations: 23.92 kB / 1.21 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.517e-05/0.3792, allocations: 35.89 kB / 1.21 GB, free: 7.559 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.986e-05/0.3792, allocations: 4 kB / 1.21 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005082/0.3798, allocations: 315.4 kB / 1.21 GB, free: 7.246 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.477e-05/0.3798, allocations: 23.84 kB / 1.21 GB, free: 7.223 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.565e-05/0.3798, allocations: 27.86 kB / 1.21 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003649/0.3802, allocations: 203.9 kB / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3802, allocations: 0 / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.194e-06/0.3802, allocations: 0 / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.161e-06/0.3803, allocations: 0 / 1.21 GB, free: 6.996 MB / 0.9669 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.0007006/0.381, allocations: 403.3 kB / 1.211 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.381, allocations: 12.61 kB / 1.211 GB, free: 6.543 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.697e-05/0.3811, allocations: 38.75 kB / 1.211 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004765/0.3815, allocations: 76.75 kB / 1.211 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.3817, allocations: 172.3 kB / 1.211 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.456e-05/0.3817, allocations: 8.375 kB / 1.211 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.827e-05/0.3818, allocations: 8.281 kB / 1.211 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000376/0.3821, allocations: 115.9 kB / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.3822, allocations: 4 kB / 1.211 GB, free: 6.078 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.3822, allocations: 7.984 kB / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.3822, allocations: 0 / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000459/0.3827, allocations: 99.91 kB / 1.211 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006087/0.3833, allocations: 344.5 kB / 1.212 GB, free: 5.586 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006376/0.3839, allocations: 154.5 kB / 1.212 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002249/0.3842, allocations: 52.8 kB / 1.212 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.546e-05/0.3842, allocations: 0 / 1.212 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.3842, allocations: 38.56 kB / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.3842, allocations: 4 kB / 1.212 GB, free: 5.32 MB / 0.9669 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.0184/0.4026, allocations: 2.83 MB / 1.215 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.86e-05/0.4027, allocations: 55.34 kB / 1.215 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.4029, allocations: 105.8 kB / 1.215 GB, free: 2.215 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.85e-05/0.4029, allocations: 25.7 kB / 1.215 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.259e-05/0.403, allocations: 88.14 kB / 1.215 GB, free: 2.094 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 8.237e-05/0.4031, allocations: 43.39 kB / 1.215 GB, free: 2.051 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001971/0.4033, allocations: 69.58 kB / 1.215 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.4034, allocations: 318.8 kB / 1.215 GB, free: 1.656 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006376/0.4041, allocations: 187.8 kB / 1.215 GB, free: 1.473 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006048/0.4047, allocations: 195.8 kB / 1.216 GB, free: 1.281 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001241/0.406, allocations: 394.7 kB / 1.216 GB, free: 0.8945 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.406, allocations: 0 / 1.216 GB, free: 0.8945 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001461/0.4074, allocations: 477 kB / 1.216 GB, free: 432 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.4075, allocations: 8 kB / 1.216 GB, free: 424 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.4075, allocations: 0 / 1.216 GB, free: 424 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.4075, allocations: 0 / 1.216 GB, free: 424 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008152/0.4083, allocations: 107.7 kB / 1.217 GB, free: 316 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.4083, allocations: 4.312 kB / 1.217 GB, free: 312 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005982/0.409, allocations: 43.94 kB / 1.217 GB, free: 268 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-05/0.409, allocations: 27.92 kB / 1.217 GB, free: 240 kB / 0.9669 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.0001742/0.4092, allocations: 121.8 kB / 1.217 GB, free: 108 kB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.892e-05/0.4093, allocations: 4 kB / 1.217 GB, free: 104 kB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.029e-05/0.4094, allocations: 15.91 kB / 1.217 GB, free: 84 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.4094, allocations: 3.938 kB / 1.217 GB, free: 80 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.4094, allocations: 0 / 1.217 GB, free: 80 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4094, allocations: 0 / 1.217 GB, free: 80 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002188/0.4116, allocations: 1.055 MB / 1.218 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.4116, allocations: 0 / 1.218 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008181/0.4124, allocations: 107.7 kB / 1.218 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.4124, allocations: 3.984 kB / 1.218 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.411e-05/0.4125, allocations: 31.92 kB / 1.218 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.4125, allocations: 3.984 kB / 1.218 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4125, allocations: 0 / 1.218 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002245/0.4148, allocations: 0.7878 MB / 1.219 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001525/0.4149, allocations: 120.9 kB / 1.219 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.253e-05/0.415, allocations: 3.984 kB / 1.219 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000683/0.4157, allocations: 52 kB / 1.219 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.494e-05/0.4158, allocations: 27.92 kB / 1.219 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.347e-05/0.4159, allocations: 19.94 kB / 1.219 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.771e-05/0.4159, allocations: 83.28 kB / 1.219 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.7e-07/0.4159, allocations: 0 / 1.219 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004004/0.4163, allocations: 51.98 kB / 1.219 GB, free: 13.59 MB / 0.9825 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.002597/0.4189, allocations: 1.349 MB / 1.22 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001387/0.4203, allocations: 428.2 kB / 1.221 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.4204, allocations: 0 / 1.221 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0006807/0.421, allocations: 235.5 kB / 1.221 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003705/0.4214, allocations: 10.44 kB / 1.221 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008428/0.4299, allocations: 2.94 MB / 1.224 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.4302, allocations: 0.6963 MB / 1.225 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0004931/0.4307, allocations: 84.67 kB / 1.225 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002711/0.431, allocations: 63.3 kB / 1.225 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of SimCode: time 9.22e-07/0.431, allocations: 0 / 1.225 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02642/0.4574, allocations: 4.674 MB / 1.229 GB, free: 3.137 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.016/8.473, allocations: 11.67 kB / 1.229 GB, free: 3.129 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check_fmu --startTime=-1.5 --stopTime=1.5 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.500000 File[1]=-1.500000 " Variables in the reference:time,y,y_comp,der_y,der_y_comp,der_err,err Variables in the result:cheEqu1.threShold,cheEqu1.u1,cheEqu1.u2,cheEqu1.y,cheEqu2.threShold,cheEqu2.u1,cheEqu2.u2,cheEqu2.y,delta,der(der(x)),der(der_y),der(der_y_comp),der(x),der(y),der(y_comp),der_err,der_y,der_y_comp,err,time,x,y,y_comp