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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001708/0.001708, allocations: 97.88 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002108/0.002108, allocations: 217.8 kB / 23.03 MB, free: 4.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.53/1.53, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.297/3.297, allocations: 0.5003 GB / 0.8062 GB, free: 28.29 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00206/0.00206, allocations: 71.2 kB / 1.171 GB, free: 19.56 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3591/0.3611, allocations: 179 MB / 1.345 GB, free: 15.92 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002191/0.3633, allocations: 0.78 MB / 1.346 GB, free: 15.13 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00211/0.3654, allocations: 1.443 MB / 1.347 GB, free: 13.67 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.713e-05/0.3655, allocations: 0 / 1.347 GB, free: 13.67 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.495e-05/0.3655, allocations: 7.922 kB / 1.348 GB, free: 13.66 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 4.373e-05/0.3656, allocations: 11.88 kB / 1.348 GB, free: 13.65 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005765/0.3661, allocations: 141.2 kB / 1.348 GB, free: 13.52 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001061/0.3662, allocations: 55.7 kB / 1.348 GB, free: 13.46 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 5.388e-05/0.3663, allocations: 8.219 kB / 1.348 GB, free: 13.45 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.749e-05/0.3664, allocations: 31.91 kB / 1.348 GB, free: 13.42 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 7.003e-05/0.3665, allocations: 31.84 kB / 1.348 GB, free: 13.39 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.14e-05/0.3665, allocations: 4 kB / 1.348 GB, free: 13.39 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004345/0.3669, allocations: 267.5 kB / 1.348 GB, free: 13.12 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.752e-05/0.3669, allocations: 11.98 kB / 1.348 GB, free: 13.11 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.809e-05/0.367, allocations: 23.86 kB / 1.348 GB, free: 13.09 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003449/0.3673, allocations: 199.4 kB / 1.348 GB, free: 12.89 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3673, allocations: 4 kB / 1.348 GB, free: 12.89 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.252e-06/0.3673, allocations: 0 / 1.348 GB, free: 12.89 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.3673, allocations: 0 / 1.348 GB, free: 12.89 MB / 1.045 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.0006811/0.368, allocations: 339 kB / 1.349 GB, free: 12.53 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.3681, allocations: 8.031 kB / 1.349 GB, free: 12.52 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.611e-05/0.3681, allocations: 4.188 kB / 1.349 GB, free: 12.52 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.819e-05/0.3681, allocations: 34.75 kB / 1.349 GB, free: 12.48 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004764/0.3686, allocations: 68.84 kB / 1.349 GB, free: 12.41 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.3687, allocations: 118.4 kB / 1.349 GB, free: 12.27 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.898e-05/0.3687, allocations: 4.375 kB / 1.349 GB, free: 12.27 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.455e-05/0.3688, allocations: 8.375 kB / 1.349 GB, free: 12.26 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004294/0.3692, allocations: 164.9 kB / 1.349 GB, free: 12.08 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.3692, allocations: 3.984 kB / 1.349 GB, free: 12.07 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.3693, allocations: 4 kB / 1.349 GB, free: 12.07 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.3693, allocations: 4 kB / 1.349 GB, free: 12.07 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004994/0.3698, allocations: 103.9 kB / 1.349 GB, free: 11.96 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006267/0.3704, allocations: 299.8 kB / 1.349 GB, free: 11.63 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006731/0.3711, allocations: 150.5 kB / 1.35 GB, free: 11.47 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002421/0.3713, allocations: 56.8 kB / 1.35 GB, free: 11.41 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.3713, allocations: 0 / 1.35 GB, free: 11.41 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/0.3713, allocations: 38.5 kB / 1.35 GB, free: 11.37 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.3714, allocations: 0 / 1.35 GB, free: 11.37 MB / 1.045 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.02032/0.3917, allocations: 2.699 MB / 1.352 GB, free: 8.609 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.363e-05/0.3917, allocations: 51.41 kB / 1.352 GB, free: 8.547 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.3918, allocations: 93.86 kB / 1.352 GB, free: 8.445 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 6.234e-05/0.3919, allocations: 29.8 kB / 1.352 GB, free: 8.41 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.608e-05/0.392, allocations: 96.02 kB / 1.352 GB, free: 8.312 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 8.731e-05/0.392, allocations: 39.69 kB / 1.353 GB, free: 8.273 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002002/0.3922, allocations: 69.58 kB / 1.353 GB, free: 8.199 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3924, allocations: 314.8 kB / 1.353 GB, free: 7.883 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007395/0.3931, allocations: 195.8 kB / 1.353 GB, free: 7.691 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006855/0.3938, allocations: 187.8 kB / 1.353 GB, free: 7.508 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001408/0.3952, allocations: 399.1 kB / 1.354 GB, free: 7.117 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3952, allocations: 3.938 kB / 1.354 GB, free: 7.113 MB / 1.045 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001692/0.3969, allocations: 481.3 kB / 1.354 GB, free: 6.637 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.397, allocations: 5.875 kB / 1.354 GB, free: 6.633 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.397, allocations: 0 / 1.354 GB, free: 6.633 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.626e-05/0.397, allocations: 3.938 kB / 1.354 GB, free: 6.629 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008828/0.3979, allocations: 111.8 kB / 1.354 GB, free: 6.52 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.3979, allocations: 0 / 1.354 GB, free: 6.52 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006475/0.3985, allocations: 43.94 kB / 1.354 GB, free: 6.477 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.108e-05/0.3986, allocations: 27.88 kB / 1.354 GB, free: 6.449 MB / 1.045 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.0002274/0.3988, allocations: 117.8 kB / 1.354 GB, free: 6.324 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.3989, allocations: 7.953 kB / 1.354 GB, free: 6.316 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.341e-05/0.399, allocations: 12.06 kB / 1.354 GB, free: 6.301 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.399, allocations: 3.938 kB / 1.354 GB, free: 6.297 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.399, allocations: 0 / 1.354 GB, free: 6.297 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.399, allocations: 0 / 1.354 GB, free: 6.297 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002568/0.4016, allocations: 0.995 MB / 1.355 GB, free: 5.195 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.4016, allocations: 3.938 kB / 1.355 GB, free: 5.191 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008627/0.4025, allocations: 103.8 kB / 1.356 GB, free: 5.09 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.017e-06/0.4025, allocations: 4 kB / 1.356 GB, free: 5.086 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-05/0.4025, allocations: 23.94 kB / 1.356 GB, free: 5.062 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.4025, allocations: 0 / 1.356 GB, free: 5.062 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.4025, allocations: 0 / 1.356 GB, free: 5.062 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002477/0.405, allocations: 0.7956 MB / 1.356 GB, free: 4.25 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/0.4052, allocations: 40.06 kB / 1.356 GB, free: 4.211 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.227e-05/0.4052, allocations: 0 / 1.356 GB, free: 4.211 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006994/0.4059, allocations: 47.92 kB / 1.356 GB, free: 4.164 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.4061, allocations: 39.91 kB / 1.356 GB, free: 4.125 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.703e-05/0.4061, allocations: 27.94 kB / 1.356 GB, free: 4.098 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.278e-05/0.4062, allocations: 79.28 kB / 1.357 GB, free: 4.02 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.4062, allocations: 0 / 1.357 GB, free: 4.02 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004013/0.4066, allocations: 51.94 kB / 1.357 GB, free: 3.969 MB / 1.045 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.00284/0.4094, allocations: 1.349 MB / 1.358 GB, free: 2.594 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001515/0.4109, allocations: 418.9 kB / 1.358 GB, free: 2.188 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4109, allocations: 3.938 kB / 1.358 GB, free: 2.184 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0007441/0.4117, allocations: 227.7 kB / 1.359 GB, free: 1.961 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003804/0.4121, allocations: 9.688 kB / 1.359 GB, free: 1.953 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009184/0.4212, allocations: 2.946 MB / 1.361 GB, free: 14.93 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.735e-05/0.4213, allocations: 79.27 kB / 1.361 GB, free: 14.83 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0005473/0.4219, allocations: 88.67 kB / 1.362 GB, free: 14.74 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003017/0.4222, allocations: 67.3 kB / 1.362 GB, free: 14.68 MB / 1.061 GB Notification: Performance of SimCode: time 8.02e-07/0.4222, allocations: 0 / 1.362 GB, free: 14.68 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02788/0.4501, allocations: 4.96 MB / 1.366 GB, free: 9.855 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.08, allocations: 17.62 kB / 1.366 GB, free: 9.844 MB / 1.061 GB " [Timeout remaining time 288] (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 --stepSize=0.0012 --timeout=800 --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) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.217716022976674]