Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001732/0.001732, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002267/0.002267, allocations: 219.6 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.556/1.556, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.33/3.33, allocations: 0.5002 GB / 0.8061 GB, free: 26.78 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.InverseXDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_latest_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.002007/0.002007, allocations: 68.05 kB / 1.171 GB, free: 19.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3616, allocations: 179 MB / 1.345 GB, free: 428 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001999/0.3636, allocations: 0.6098 MB / 1.346 GB, free: 15.81 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002217/0.3658, allocations: 1.521 MB / 1.347 GB, free: 14.27 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.548e-05/0.3659, allocations: 0 / 1.347 GB, free: 14.27 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 1.246e-05/0.3659, allocations: 0 / 1.347 GB, free: 14.27 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 2.755e-05/0.3659, allocations: 0 / 1.347 GB, free: 14.27 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005638/0.3665, allocations: 145.1 kB / 1.348 GB, free: 14.13 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 7.381e-05/0.3665, allocations: 31.91 kB / 1.348 GB, free: 14.1 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.427e-05/0.3666, allocations: 4 kB / 1.348 GB, free: 14.09 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 4.621e-05/0.3666, allocations: 19.92 kB / 1.348 GB, free: 14.07 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 8.788e-05/0.3667, allocations: 35.89 kB / 1.348 GB, free: 14.04 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.3667, allocations: 0 / 1.348 GB, free: 14.04 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004911/0.3672, allocations: 311.4 kB / 1.348 GB, free: 13.73 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.471e-05/0.3672, allocations: 15.97 kB / 1.348 GB, free: 13.72 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.048e-05/0.3673, allocations: 11.92 kB / 1.348 GB, free: 13.71 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003221/0.3676, allocations: 195.7 kB / 1.348 GB, free: 13.52 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3676, allocations: 0 / 1.348 GB, free: 13.52 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.203e-06/0.3676, allocations: 0 / 1.348 GB, free: 13.52 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.3676, allocations: 0 / 1.348 GB, free: 13.52 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005497/0.3682, allocations: 290 kB / 1.348 GB, free: 13.2 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.3682, allocations: 12.03 kB / 1.348 GB, free: 13.19 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.971e-05/0.3682, allocations: 192 / 1.348 GB, free: 13.19 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.689e-05/0.3683, allocations: 34.73 kB / 1.348 GB, free: 13.15 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005028/0.3688, allocations: 64.86 kB / 1.349 GB, free: 13.09 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.3689, allocations: 110.5 kB / 1.349 GB, free: 12.95 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.3689, allocations: 4.375 kB / 1.349 GB, free: 12.95 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.206e-05/0.3689, allocations: 4.375 kB / 1.349 GB, free: 12.95 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002864/0.3692, allocations: 81.52 kB / 1.349 GB, free: 12.86 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.3692, allocations: 0 / 1.349 GB, free: 12.86 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.3692, allocations: 0 / 1.349 GB, free: 12.86 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.3692, allocations: 0 / 1.349 GB, free: 12.86 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003189/0.3695, allocations: 67.92 kB / 1.349 GB, free: 12.79 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002032/0.3697, allocations: 140.7 kB / 1.349 GB, free: 12.61 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006359/0.3704, allocations: 118.5 kB / 1.349 GB, free: 12.49 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.3706, allocations: 44.91 kB / 1.349 GB, free: 12.44 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004578/0.371, allocations: 83.77 kB / 1.349 GB, free: 12.36 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.3711, allocations: 38.56 kB / 1.349 GB, free: 12.31 MB / 1.045 GB Notification: Performance of pre-optimization done (n=4): time 1.353e-06/0.3711, allocations: 4 kB / 1.349 GB, free: 12.31 MB / 1.045 GB Notification: Performance of matching and sorting (n=5): time 0.001264/0.3723, allocations: 325.1 kB / 1.35 GB, free: 11.96 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.3724, allocations: 51.41 kB / 1.35 GB, free: 11.89 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.3725, allocations: 97.84 kB / 1.35 GB, free: 11.79 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.3725, allocations: 25.7 kB / 1.35 GB, free: 11.76 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.054e-05/0.3726, allocations: 80.14 kB / 1.35 GB, free: 11.68 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.328e-05/0.3726, allocations: 15.86 kB / 1.35 GB, free: 11.66 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.949e-05/0.3727, allocations: 33.77 kB / 1.35 GB, free: 11.62 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000152/0.3728, allocations: 310.8 kB / 1.35 GB, free: 11.31 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/0.373, allocations: 31.97 kB / 1.35 GB, free: 11.28 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001602/0.3731, allocations: 39.97 kB / 1.35 GB, free: 11.24 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003297/0.3735, allocations: 84.73 kB / 1.35 GB, free: 11.15 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.01e-07/0.3735, allocations: 0 / 1.35 GB, free: 11.15 MB / 1.045 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003942/0.3739, allocations: 117.5 kB / 1.35 GB, free: 11.03 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.3739, allocations: 4 kB / 1.35 GB, free: 11.03 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3739, allocations: 0 / 1.35 GB, free: 11.03 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.3739, allocations: 0 / 1.35 GB, free: 11.03 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001665/0.3741, allocations: 23.97 kB / 1.35 GB, free: 11 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.3741, allocations: 0 / 1.35 GB, free: 11 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.3742, allocations: 16.23 kB / 1.35 GB, free: 10.99 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/0.3742, allocations: 8 kB / 1.35 GB, free: 10.98 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 (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.74e-05/0.3743, allocations: 106.7 kB / 1.351 GB, free: 10.87 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.383e-05/0.3743, allocations: 11.89 kB / 1.351 GB, free: 10.86 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004976/0.3748, allocations: 141.3 kB / 1.351 GB, free: 10.71 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.3748, allocations: 4 kB / 1.351 GB, free: 10.71 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3748, allocations: 0 / 1.351 GB, free: 10.71 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3748, allocations: 0 / 1.351 GB, free: 10.71 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000155/0.375, allocations: 140.7 kB / 1.351 GB, free: 10.53 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.375, allocations: 0 / 1.351 GB, free: 10.53 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001658/0.3752, allocations: 23.97 kB / 1.351 GB, free: 10.5 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.3752, allocations: 0 / 1.351 GB, free: 10.5 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.3752, allocations: 4 kB / 1.351 GB, free: 10.5 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.3752, allocations: 4 kB / 1.351 GB, free: 10.5 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3752, allocations: 4 kB / 1.351 GB, free: 10.49 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006216/0.3758, allocations: 180.9 kB / 1.351 GB, free: 10.3 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.401e-05/0.3759, allocations: 11.97 kB / 1.351 GB, free: 10.29 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.553e-05/0.3759, allocations: 3.984 kB / 1.351 GB, free: 10.28 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.376, allocations: 20.05 kB / 1.351 GB, free: 10.26 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.794e-05/0.376, allocations: 4 kB / 1.351 GB, free: 10.26 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-06/0.3761, allocations: 0 / 1.351 GB, free: 10.26 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.423e-05/0.3761, allocations: 83.27 kB / 1.351 GB, free: 10.18 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3761, allocations: 0 / 1.351 GB, free: 10.18 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002855/0.3764, allocations: 35.81 kB / 1.351 GB, free: 10.14 MB / 1.045 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.001109/0.3775, allocations: 0.7529 MB / 1.352 GB, free: 9.355 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004056/0.3779, allocations: 83.98 kB / 1.352 GB, free: 9.273 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3779, allocations: 0 / 1.352 GB, free: 9.273 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001752/0.3781, allocations: 40.22 kB / 1.352 GB, free: 9.234 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001644/0.3783, allocations: 11.88 kB / 1.352 GB, free: 9.223 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002283/0.3805, allocations: 1.375 MB / 1.353 GB, free: 7.766 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.3808, allocations: 0.6768 MB / 1.354 GB, free: 7.062 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 9.961e-05/0.3809, allocations: 20 kB / 1.354 GB, free: 7.043 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.513e-05/0.381, allocations: 11.44 kB / 1.354 GB, free: 7.031 MB / 1.045 GB Notification: Performance of SimCode: time 8.21e-07/0.381, allocations: 0 / 1.354 GB, free: 7.031 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0248/0.4058, allocations: 2.211 MB / 1.356 GB, free: 4.961 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.65, allocations: 11.45 kB / 1.356 GB, free: 4.953 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=800 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.75800888100639]