Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001335/0.001335, allocations: 97.31 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.001592/0.001592, allocations: 220 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.59/1.59, allocations: 230.6 MB / 256.8 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.259/3.259, allocations: 0.49 GB / 0.7959 GB, free: 35.51 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.001978/0.001978, allocations: 67.36 kB / 1.155 GB, free: 25.41 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3297, allocations: 176.1 MB / 1.327 GB, free: 1.469 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.0025/0.3322, allocations: 0.7839 MB / 1.327 GB, free: 0.6914 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002045/0.3342, allocations: 1.451 MB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.501e-05/0.3343, allocations: 4 kB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.302e-05/0.3343, allocations: 3.938 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 3.843e-05/0.3344, allocations: 0 / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006108/0.335, allocations: 143.4 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.3351, allocations: 59.83 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.301e-05/0.3351, allocations: 8.188 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.939e-05/0.3352, allocations: 31.91 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.327e-05/0.3353, allocations: 27.91 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.875e-05/0.3353, allocations: 4 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004225/0.3357, allocations: 263.5 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.299e-05/0.3357, allocations: 19.92 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.327e-05/0.3358, allocations: 19.91 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003408/0.3361, allocations: 199.4 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3361, allocations: 3.938 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.342e-06/0.3361, allocations: 7.938 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.3361, allocations: 0 / 1.33 GB, free: 14.44 MB / 1.029 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.0006483/0.3368, allocations: 325.8 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.3368, allocations: 12.03 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.313e-05/0.3368, allocations: 192 / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.404e-05/0.3369, allocations: 38.75 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004638/0.3373, allocations: 72.8 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001272/0.3375, allocations: 114.5 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.3375, allocations: 4.375 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.433e-05/0.3375, allocations: 16.27 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004081/0.3379, allocations: 170.1 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.3379, allocations: 0 / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/0.338, allocations: 8 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.338, allocations: 4 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004929/0.3385, allocations: 95.89 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006026/0.3391, allocations: 295.8 kB / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006616/0.3397, allocations: 158.4 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000236/0.34, allocations: 56.78 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.34, allocations: 0 / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.34, allocations: 38.56 kB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.34, allocations: 0 / 1.331 GB, free: 12.92 MB / 1.029 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.01937/0.3594, allocations: 2.684 MB / 1.334 GB, free: 10.18 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.429e-05/0.3594, allocations: 55.41 kB / 1.334 GB, free: 10.11 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.3596, allocations: 105.8 kB / 1.334 GB, free: 9.996 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.035e-05/0.3596, allocations: 29.7 kB / 1.334 GB, free: 9.961 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.056e-05/0.3597, allocations: 88.09 kB / 1.334 GB, free: 9.871 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 8.826e-05/0.3598, allocations: 39.64 kB / 1.334 GB, free: 9.832 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002044/0.36, allocations: 69.58 kB / 1.334 GB, free: 9.758 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002006/0.3602, allocations: 314.8 kB / 1.334 GB, free: 9.441 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006964/0.3609, allocations: 195.8 kB / 1.334 GB, free: 9.25 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007445/0.3616, allocations: 195.7 kB / 1.335 GB, free: 9.062 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001464/0.3631, allocations: 392.5 kB / 1.335 GB, free: 8.676 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3631, allocations: 0 / 1.335 GB, free: 8.676 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001731/0.3648, allocations: 477.3 kB / 1.335 GB, free: 8.203 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.921e-05/0.3649, allocations: 9.875 kB / 1.335 GB, free: 8.195 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.3649, allocations: 3.938 kB / 1.335 GB, free: 8.191 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.304e-05/0.3649, allocations: 4.031 kB / 1.335 GB, free: 8.188 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009195/0.3658, allocations: 107.7 kB / 1.336 GB, free: 8.082 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.704e-05/0.3658, allocations: 4 kB / 1.336 GB, free: 8.078 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006408/0.3665, allocations: 47.94 kB / 1.336 GB, free: 8.031 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-05/0.3666, allocations: 27.92 kB / 1.336 GB, free: 8.004 MB / 1.029 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.0002989/0.3669, allocations: 113.8 kB / 1.336 GB, free: 7.883 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.367, allocations: 0 / 1.336 GB, free: 7.883 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000118/0.3671, allocations: 16.06 kB / 1.336 GB, free: 7.859 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.3671, allocations: 3.938 kB / 1.336 GB, free: 7.855 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/0.3671, allocations: 0 / 1.336 GB, free: 7.855 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.3671, allocations: 4 kB / 1.336 GB, free: 7.852 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002676/0.3698, allocations: 0.9875 MB / 1.337 GB, free: 6.758 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.351e-06/0.3698, allocations: 3.938 kB / 1.337 GB, free: 6.754 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008358/0.3706, allocations: 103.8 kB / 1.337 GB, free: 6.652 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.3706, allocations: 0 / 1.337 GB, free: 6.652 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.414e-05/0.3707, allocations: 23.94 kB / 1.337 GB, free: 6.629 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.3707, allocations: 7.984 kB / 1.337 GB, free: 6.621 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3707, allocations: 3.938 kB / 1.337 GB, free: 6.617 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002524/0.3732, allocations: 0.784 MB / 1.338 GB, free: 5.816 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000154/0.3734, allocations: 39.8 kB / 1.338 GB, free: 5.777 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.194e-05/0.3735, allocations: 12 kB / 1.338 GB, free: 5.766 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006847/0.3742, allocations: 47.98 kB / 1.338 GB, free: 5.719 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.3743, allocations: 27.92 kB / 1.338 GB, free: 5.691 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.638e-05/0.3743, allocations: 27.94 kB / 1.338 GB, free: 5.664 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.858e-05/0.3744, allocations: 79.27 kB / 1.338 GB, free: 5.586 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3744, allocations: 0 / 1.338 GB, free: 5.586 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003917/0.3748, allocations: 55.94 kB / 1.338 GB, free: 5.531 MB / 1.029 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.002756/0.3775, allocations: 1.349 MB / 1.339 GB, free: 4.156 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001503/0.379, allocations: 416 kB / 1.34 GB, free: 3.75 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.379, allocations: 4 kB / 1.34 GB, free: 3.746 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0007286/0.3798, allocations: 215.7 kB / 1.34 GB, free: 3.535 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004016/0.3802, allocations: 8.219 kB / 1.34 GB, free: 3.527 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00901/0.3892, allocations: 2.958 MB / 1.343 GB, free: 0.4922 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.743e-05/0.3893, allocations: 79.27 kB / 1.343 GB, free: 404 kB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0005337/0.3898, allocations: 96.66 kB / 1.343 GB, free: 308 kB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003141/0.3901, allocations: 59.31 kB / 1.343 GB, free: 248 kB / 1.029 GB Notification: Performance of SimCode: time 8.02e-07/0.3901, allocations: 3.938 kB / 1.343 GB, free: 244 kB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02839/0.4185, allocations: 4.971 MB / 1.348 GB, free: 11.43 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.26, allocations: 9.688 kB / 1.348 GB, free: 11.42 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check_fmu --startTime=-1.5 --stopTime=1.5 --stepSize=0.0012 --timeout=400 --tolerance=1e-08 Buildings_12_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.18751030706335]