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.001555/0.001555, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001967/0.001967, allocations: 217 kB / 23.04 MB, free: 5.074 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.57/1.57, allocations: 230.6 MB / 256.8 MB, free: 7.98 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.333/3.333, allocations: 0.5003 GB / 0.8061 GB, free: 26.68 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.002899/0.002899, allocations: 65.81 kB / 1.171 GB, free: 19.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3558/0.3587, allocations: 179 MB / 1.345 GB, free: 332 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002146/0.3609, allocations: 0.7984 MB / 1.346 GB, free: 15.53 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002243/0.3631, allocations: 1.536 MB / 1.348 GB, free: 13.97 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.091e-05/0.3632, allocations: 4 kB / 1.348 GB, free: 13.97 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.248e-05/0.3632, allocations: 3.938 kB / 1.348 GB, free: 13.96 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 4.512e-05/0.3632, allocations: 7.938 kB / 1.348 GB, free: 13.96 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005909/0.3638, allocations: 150.6 kB / 1.348 GB, free: 13.81 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 9.961e-05/0.3639, allocations: 63.53 kB / 1.348 GB, free: 13.75 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.33e-05/0.364, allocations: 4.281 kB / 1.348 GB, free: 13.75 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.631e-05/0.3641, allocations: 31.91 kB / 1.348 GB, free: 13.71 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.592e-05/0.3641, allocations: 31.89 kB / 1.348 GB, free: 13.68 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.661e-05/0.3641, allocations: 4 kB / 1.348 GB, free: 13.68 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004946/0.3646, allocations: 319.4 kB / 1.348 GB, free: 13.37 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.377e-05/0.3647, allocations: 19.92 kB / 1.348 GB, free: 13.35 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.61e-05/0.3647, allocations: 19.86 kB / 1.348 GB, free: 13.33 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003725/0.3651, allocations: 215.4 kB / 1.348 GB, free: 13.12 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.3651, allocations: 0 / 1.348 GB, free: 13.12 MB / 1.045 GB Notification: Performance of FrontEnd: time 3.286e-06/0.3651, allocations: 8 kB / 1.348 GB, free: 13.11 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.3651, allocations: 0 / 1.348 GB, free: 13.11 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.0006557/0.3657, allocations: 325.8 kB / 1.349 GB, free: 12.76 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.3658, allocations: 12.03 kB / 1.349 GB, free: 12.75 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.553e-05/0.3658, allocations: 192 / 1.349 GB, free: 12.75 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.375e-05/0.3658, allocations: 42.73 kB / 1.349 GB, free: 12.7 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004733/0.3663, allocations: 64.86 kB / 1.349 GB, free: 12.64 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.3664, allocations: 122.4 kB / 1.349 GB, free: 12.49 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.3664, allocations: 4.375 kB / 1.349 GB, free: 12.49 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.993e-05/0.3665, allocations: 12.38 kB / 1.349 GB, free: 12.48 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004079/0.3669, allocations: 105.5 kB / 1.349 GB, free: 12.37 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.3669, allocations: 0 / 1.349 GB, free: 12.37 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/0.3669, allocations: 4 kB / 1.349 GB, free: 12.36 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.3669, allocations: 0 / 1.349 GB, free: 12.36 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000521/0.3674, allocations: 111.8 kB / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006257/0.3681, allocations: 295.8 kB / 1.35 GB, free: 11.92 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007143/0.3688, allocations: 154.4 kB / 1.35 GB, free: 11.76 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002613/0.369, allocations: 60.81 kB / 1.35 GB, free: 11.7 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.3691, allocations: 12.06 kB / 1.35 GB, free: 11.69 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.3691, allocations: 30.56 kB / 1.35 GB, free: 11.65 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.3691, allocations: 0 / 1.35 GB, free: 11.65 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.01904/0.3881, allocations: 2.691 MB / 1.352 GB, free: 8.898 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.3882, allocations: 51.41 kB / 1.352 GB, free: 8.836 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.031e-05/0.3883, allocations: 101.8 kB / 1.353 GB, free: 8.727 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.913e-05/0.3883, allocations: 29.7 kB / 1.353 GB, free: 8.691 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.62e-05/0.3884, allocations: 84.14 kB / 1.353 GB, free: 8.605 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 8.645e-05/0.3885, allocations: 39.73 kB / 1.353 GB, free: 8.566 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002035/0.3887, allocations: 73.52 kB / 1.353 GB, free: 8.488 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.3888, allocations: 322.8 kB / 1.353 GB, free: 8.164 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007045/0.3895, allocations: 187.8 kB / 1.353 GB, free: 7.98 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007372/0.3903, allocations: 191.7 kB / 1.353 GB, free: 7.793 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001429/0.3917, allocations: 404.5 kB / 1.354 GB, free: 7.395 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3917, allocations: 0 / 1.354 GB, free: 7.395 MB / 1.045 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001686/0.3934, allocations: 478.4 kB / 1.354 GB, free: 6.922 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.3934, allocations: 4 kB / 1.354 GB, free: 6.918 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.3934, allocations: 4 kB / 1.354 GB, free: 6.914 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.3934, allocations: 7.938 kB / 1.354 GB, free: 6.906 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008402/0.3943, allocations: 107.7 kB / 1.354 GB, free: 6.801 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.3943, allocations: 0 / 1.354 GB, free: 6.801 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006201/0.3949, allocations: 47.92 kB / 1.354 GB, free: 6.754 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.229e-05/0.395, allocations: 24.95 kB / 1.354 GB, free: 6.73 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.0001841/0.3951, allocations: 117.8 kB / 1.355 GB, free: 6.605 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-05/0.3952, allocations: 4 kB / 1.355 GB, free: 6.602 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.548e-05/0.3953, allocations: 12.06 kB / 1.355 GB, free: 6.586 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.3953, allocations: 3.938 kB / 1.355 GB, free: 6.582 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3953, allocations: 0 / 1.355 GB, free: 6.582 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3953, allocations: 3.984 kB / 1.355 GB, free: 6.578 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00242/0.3977, allocations: 1.026 MB / 1.356 GB, free: 5.445 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.3977, allocations: 7.938 kB / 1.356 GB, free: 5.438 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008295/0.3986, allocations: 103.8 kB / 1.356 GB, free: 5.336 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.3986, allocations: 0 / 1.356 GB, free: 5.336 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.259e-05/0.3986, allocations: 27.92 kB / 1.356 GB, free: 5.309 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.3986, allocations: 4 kB / 1.356 GB, free: 5.305 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3986, allocations: 0 / 1.356 GB, free: 5.305 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002574/0.4012, allocations: 0.7839 MB / 1.357 GB, free: 4.504 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.4014, allocations: 47.92 kB / 1.357 GB, free: 4.457 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.037e-05/0.4014, allocations: 7.938 kB / 1.357 GB, free: 4.449 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006874/0.4021, allocations: 39.94 kB / 1.357 GB, free: 4.41 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.4022, allocations: 35.92 kB / 1.357 GB, free: 4.375 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.423e-05/0.4023, allocations: 19.94 kB / 1.357 GB, free: 4.355 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.671e-05/0.4023, allocations: 83.27 kB / 1.357 GB, free: 4.273 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.4023, allocations: 0 / 1.357 GB, free: 4.273 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004181/0.4028, allocations: 55.94 kB / 1.357 GB, free: 4.219 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.00301/0.4058, allocations: 1.342 MB / 1.358 GB, free: 2.852 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001587/0.4074, allocations: 415.5 kB / 1.358 GB, free: 2.445 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.4074, allocations: 0 / 1.358 GB, free: 2.445 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.000759/0.4081, allocations: 224.1 kB / 1.359 GB, free: 2.227 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004441/0.4086, allocations: 19.52 kB / 1.359 GB, free: 2.211 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009262/0.4178, allocations: 2.938 MB / 1.362 GB, free: 15.19 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.4182, allocations: 0.7041 MB / 1.362 GB, free: 14.46 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0005171/0.4187, allocations: 96.64 kB / 1.362 GB, free: 14.37 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002927/0.419, allocations: 63.3 kB / 1.362 GB, free: 14.3 MB / 1.061 GB Notification: Performance of SimCode: time 1.142e-06/0.419, allocations: 0 / 1.362 GB, free: 14.3 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02711/0.4461, allocations: 4.807 MB / 1.367 GB, free: 9.633 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.9, allocations: 13.5 kB / 1.367 GB, free: 9.625 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: 18.99276924697915]