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.001301/0.001301, 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.002372/0.002372, allocations: 215 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.564/1.564, 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.333/3.333, allocations: 0.5003 GB / 0.8062 GB, free: 28.48 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.002055/0.002055, allocations: 70.92 kB / 1.171 GB, free: 19.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3797/0.3818, allocations: 179 MB / 1.345 GB, free: 15.95 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.00292/0.3847, allocations: 0.6186 MB / 1.346 GB, free: 15.32 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00283/0.3875, allocations: 1.432 MB / 1.347 GB, free: 13.88 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.402e-05/0.3876, allocations: 0 / 1.347 GB, free: 13.88 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 1.929e-05/0.3876, allocations: 0 / 1.347 GB, free: 13.88 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 3.863e-05/0.3876, allocations: 0 / 1.347 GB, free: 13.88 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007455/0.3884, allocations: 147.4 kB / 1.347 GB, free: 13.73 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 9.814e-05/0.3885, allocations: 31.91 kB / 1.347 GB, free: 13.7 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.775e-05/0.3885, allocations: 0 / 1.347 GB, free: 13.7 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 5.708e-05/0.3886, allocations: 19.92 kB / 1.347 GB, free: 13.68 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.3887, allocations: 31.89 kB / 1.348 GB, free: 13.65 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.053e-05/0.3887, allocations: 4 kB / 1.348 GB, free: 13.64 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004812/0.3892, allocations: 263.5 kB / 1.348 GB, free: 13.39 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.387e-05/0.3892, allocations: 4 kB / 1.348 GB, free: 13.38 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.312e-05/0.3892, allocations: 7.984 kB / 1.348 GB, free: 13.38 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003814/0.3896, allocations: 179.8 kB / 1.348 GB, free: 13.2 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3896, allocations: 0 / 1.348 GB, free: 13.2 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.313e-06/0.3896, allocations: 0 / 1.348 GB, free: 13.2 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.3896, allocations: 0 / 1.348 GB, free: 13.2 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.000611/0.3902, allocations: 294 kB / 1.348 GB, free: 12.88 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.3903, allocations: 12.03 kB / 1.348 GB, free: 12.87 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.475e-05/0.3903, allocations: 192 / 1.348 GB, free: 12.87 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.711e-05/0.3904, allocations: 34.75 kB / 1.348 GB, free: 12.83 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000511/0.3909, allocations: 68.84 kB / 1.348 GB, free: 12.76 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.391, allocations: 106.5 kB / 1.348 GB, free: 12.63 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.391, allocations: 4.312 kB / 1.348 GB, free: 12.63 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.558e-05/0.3911, allocations: 384 / 1.348 GB, free: 12.63 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000331/0.3914, allocations: 115.2 kB / 1.349 GB, free: 12.5 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.3914, allocations: 0 / 1.349 GB, free: 12.5 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.3914, allocations: 4 kB / 1.349 GB, free: 12.5 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.3914, allocations: 3.984 kB / 1.349 GB, free: 12.5 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000314/0.3917, allocations: 63.92 kB / 1.349 GB, free: 12.43 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002406/0.392, allocations: 132.7 kB / 1.349 GB, free: 12.26 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006463/0.3926, allocations: 118.6 kB / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001722/0.3928, allocations: 52.84 kB / 1.349 GB, free: 12.08 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004442/0.3932, allocations: 83.78 kB / 1.349 GB, free: 12 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.3933, allocations: 30.56 kB / 1.349 GB, free: 11.96 MB / 1.045 GB Notification: Performance of pre-optimization done (n=4): time 1.613e-06/0.3933, allocations: 0 / 1.349 GB, free: 11.96 MB / 1.045 GB Notification: Performance of matching and sorting (n=5): time 0.001235/0.3945, allocations: 329.1 kB / 1.349 GB, free: 11.61 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.436e-05/0.3946, allocations: 51.41 kB / 1.349 GB, free: 11.54 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.045e-05/0.3946, allocations: 97.86 kB / 1.349 GB, free: 11.44 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.3947, allocations: 25.7 kB / 1.35 GB, free: 11.41 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.826e-05/0.3947, allocations: 84.12 kB / 1.35 GB, free: 11.32 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.874e-05/0.3947, allocations: 27.97 kB / 1.35 GB, free: 11.29 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.467e-05/0.3948, allocations: 17.72 kB / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3949, allocations: 314.8 kB / 1.35 GB, free: 10.95 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.3951, allocations: 35.97 kB / 1.35 GB, free: 10.92 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000166/0.3953, allocations: 35.97 kB / 1.35 GB, free: 10.88 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003045/0.3956, allocations: 76.8 kB / 1.35 GB, free: 10.8 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-06/0.3956, allocations: 0 / 1.35 GB, free: 10.8 MB / 1.045 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003745/0.3959, allocations: 117.8 kB / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.396, allocations: 10.19 kB / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.396, allocations: 4 kB / 1.35 GB, free: 10.67 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.396, allocations: 0 / 1.35 GB, free: 10.67 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.3961, allocations: 23.97 kB / 1.35 GB, free: 10.65 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/0.3962, allocations: 4 kB / 1.35 GB, free: 10.64 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.3963, allocations: 11.98 kB / 1.35 GB, free: 10.63 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.3963, allocations: 0 / 1.35 GB, free: 10.63 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.514e-05/0.3964, allocations: 117.8 kB / 1.35 GB, free: 10.51 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.268e-05/0.3964, allocations: 11.83 kB / 1.35 GB, free: 10.5 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004708/0.3969, allocations: 133.3 kB / 1.351 GB, free: 10.36 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-06/0.3969, allocations: 0 / 1.351 GB, free: 10.36 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.3969, allocations: 4 kB / 1.351 GB, free: 10.35 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.3969, allocations: 4 kB / 1.351 GB, free: 10.35 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001468/0.397, allocations: 136.7 kB / 1.351 GB, free: 10.17 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.397, allocations: 0 / 1.351 GB, free: 10.17 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001565/0.3972, allocations: 19.98 kB / 1.351 GB, free: 10.15 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.3972, allocations: 0 / 1.351 GB, free: 10.15 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.3972, allocations: 7.984 kB / 1.351 GB, free: 10.14 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3972, allocations: 0 / 1.351 GB, free: 10.14 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3972, allocations: 0 / 1.351 GB, free: 10.14 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000597/0.3978, allocations: 192.9 kB / 1.351 GB, free: 9.938 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.003e-05/0.3978, allocations: 11.97 kB / 1.351 GB, free: 9.926 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.978e-05/0.3979, allocations: 3.938 kB / 1.351 GB, free: 9.922 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.398, allocations: 11.98 kB / 1.351 GB, free: 9.91 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.967e-05/0.398, allocations: 7.984 kB / 1.351 GB, free: 9.902 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.398, allocations: 4 kB / 1.351 GB, free: 9.898 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.359e-05/0.3981, allocations: 79.28 kB / 1.351 GB, free: 9.82 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3981, allocations: 160 / 1.351 GB, free: 9.82 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000241/0.3983, allocations: 35.86 kB / 1.351 GB, free: 9.785 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.001103/0.3994, allocations: 0.7451 MB / 1.352 GB, free: 9.008 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003867/0.3998, allocations: 83.98 kB / 1.352 GB, free: 8.926 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3998, allocations: 0 / 1.352 GB, free: 8.926 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001726/0.4, allocations: 47.89 kB / 1.352 GB, free: 8.879 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000161/0.4001, allocations: 4.328 kB / 1.352 GB, free: 8.875 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002207/0.4023, allocations: 1.363 MB / 1.353 GB, free: 7.43 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.917e-05/0.4024, allocations: 63.3 kB / 1.353 GB, free: 7.348 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001017/0.4025, allocations: 28.05 kB / 1.353 GB, free: 7.32 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.509e-05/0.4026, allocations: 15.44 kB / 1.353 GB, free: 7.309 MB / 1.045 GB Notification: Performance of SimCode: time 4.7e-07/0.4026, allocations: 0 / 1.353 GB, free: 7.309 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0235/0.4261, allocations: 2.255 MB / 1.355 GB, free: 5.203 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.84, allocations: 12.53 kB / 1.356 GB, free: 5.195 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.95409639098216]