Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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.001609/0.001609, allocations: 101.8 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.001975/0.001975, 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.543/1.543, allocations: 230.6 MB / 256.8 MB, free: 8 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.266/3.266, allocations: 0.49 GB / 0.7959 GB, free: 33.36 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.InverseXDerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",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.002051/0.002051, allocations: 69.11 kB / 1.155 GB, free: 25.59 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3576/0.3596, allocations: 176.1 MB / 1.327 GB, free: 1.812 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.002081/0.3617, allocations: 0.6021 MB / 1.327 GB, free: 1.215 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002382/0.3641, allocations: 1.537 MB / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.68e-05/0.3641, allocations: 0 / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 1.335e-05/0.3641, allocations: 0 / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 3.119e-05/0.3641, allocations: 3.938 kB / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005663/0.3647, allocations: 143.4 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.378e-05/0.3648, allocations: 23.98 kB / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.958e-05/0.3648, allocations: 7.984 kB / 1.329 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 4.986e-05/0.3649, allocations: 15.94 kB / 1.329 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001/0.365, allocations: 27.95 kB / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.474e-05/0.365, allocations: 0 / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004916/0.3655, allocations: 311.4 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.955e-05/0.3655, allocations: 15.98 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.096e-05/0.3655, allocations: 15.92 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003305/0.3659, allocations: 187.8 kB / 1.33 GB, free: 14.92 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3659, allocations: 0 / 1.33 GB, free: 14.92 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.104e-06/0.3659, allocations: 4 kB / 1.33 GB, free: 14.92 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.012e-06/0.3659, allocations: 0 / 1.33 GB, free: 14.92 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005986/0.3665, allocations: 290 kB / 1.33 GB, free: 14.61 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.3665, allocations: 8.031 kB / 1.33 GB, free: 14.6 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.969e-05/0.3665, allocations: 8.188 kB / 1.33 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.362e-05/0.3666, allocations: 30.75 kB / 1.33 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004819/0.3671, allocations: 72.84 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.3672, allocations: 106.5 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.3672, allocations: 384 / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.3672, allocations: 4.375 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002895/0.3675, allocations: 77.56 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.3675, allocations: 4 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.3676, allocations: 0 / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.3676, allocations: 0 / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003251/0.3679, allocations: 75.91 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002244/0.3681, allocations: 136.7 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006426/0.3688, allocations: 122.5 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.3689, allocations: 44.92 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004415/0.3694, allocations: 83.83 kB / 1.331 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.3694, allocations: 30.56 kB / 1.331 GB, free: 13.71 MB / 1.029 GB Notification: Performance of pre-optimization done (n=4): time 1.192e-06/0.3694, allocations: 3.938 kB / 1.331 GB, free: 13.71 MB / 1.029 GB Notification: Performance of matching and sorting (n=5): time 0.001239/0.3706, allocations: 337 kB / 1.331 GB, free: 13.35 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.432e-05/0.3707, allocations: 55.41 kB / 1.331 GB, free: 13.28 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.788e-05/0.3708, allocations: 89.86 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.3708, allocations: 33.7 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.421e-05/0.3708, allocations: 80.14 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.616e-05/0.3709, allocations: 15.84 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.283e-05/0.3709, allocations: 21.72 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3711, allocations: 318.8 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001697/0.3713, allocations: 36.09 kB / 1.332 GB, free: 12.66 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.3714, allocations: 35.91 kB / 1.332 GB, free: 12.63 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003173/0.3717, allocations: 76.8 kB / 1.332 GB, free: 12.55 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-07/0.3717, allocations: 4 kB / 1.332 GB, free: 12.55 MB / 1.029 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003838/0.3721, allocations: 113.6 kB / 1.332 GB, free: 12.43 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.3721, allocations: 8 kB / 1.332 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3721, allocations: 0 / 1.332 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.3722, allocations: 4 kB / 1.332 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.3723, allocations: 19.98 kB / 1.332 GB, free: 12.4 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.3723, allocations: 3.984 kB / 1.332 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.3724, allocations: 15.92 kB / 1.332 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.3724, allocations: 4 kB / 1.332 GB, free: 12.38 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 (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 9.462e-05/0.3725, allocations: 114.4 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.004e-05/0.3725, allocations: 7.938 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005185/0.3731, allocations: 129.6 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.3731, allocations: 0 / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.3731, allocations: 4.062 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3731, allocations: 0 / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001516/0.3732, allocations: 148.6 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.3732, allocations: 0 / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001674/0.3734, allocations: 27.92 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.3734, allocations: 0 / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.3734, allocations: 3.984 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3734, allocations: 0 / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.3734, allocations: 4 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005946/0.374, allocations: 181 kB / 1.332 GB, free: 11.69 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5e-05/0.3741, allocations: 15.95 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.018e-05/0.3741, allocations: 0 / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001213/0.3742, allocations: 11.98 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.913e-05/0.3742, allocations: 11.92 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.856e-06/0.3742, allocations: 0 / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.67e-05/0.3743, allocations: 83.34 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3743, allocations: 0 / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002726/0.3746, allocations: 35.86 kB / 1.333 GB, free: 11.53 MB / 1.029 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.001092/0.3757, allocations: 0.749 MB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004108/0.3761, allocations: 79.92 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3761, allocations: 0 / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.3762, allocations: 51.89 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001807/0.3764, allocations: 5.312 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.3788, allocations: 1.36 MB / 1.335 GB, free: 9.176 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.3791, allocations: 0.6768 MB / 1.335 GB, free: 8.473 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.916e-05/0.3792, allocations: 16.31 kB / 1.335 GB, free: 8.457 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.378e-05/0.3792, allocations: 11.44 kB / 1.335 GB, free: 8.445 MB / 1.029 GB Notification: Performance of SimCode: time 9.42e-07/0.3792, allocations: 0 / 1.335 GB, free: 8.445 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02482/0.4041, allocations: 2.228 MB / 1.338 GB, free: 6.367 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.78, allocations: 12.17 kB / 1.338 GB, free: 6.359 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=400 --tolerance=1e-08 Buildings_12_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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.783414868987165]