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.001517/0.001517, allocations: 111 kB / 16.46 MB, free: 6.453 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.001775/0.001775, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.599/1.599, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.316/3.316, allocations: 0.49 GB / 0.7916 GB, free: 33.4 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="me",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="me",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.002013/0.002013, allocations: 72.28 kB / 1.149 GB, free: 26.15 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.3356, allocations: 176.1 MB / 1.321 GB, free: 3.168 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002484/0.3381, allocations: 0.7907 MB / 1.322 GB, free: 2.383 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002267/0.3404, allocations: 1.532 MB / 1.323 GB, free: 0.832 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.888e-05/0.3404, allocations: 3.938 kB / 1.323 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.874e-05/0.3404, allocations: 3.938 kB / 1.323 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 4.507e-05/0.3405, allocations: 4 kB / 1.323 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006798/0.3411, allocations: 143.4 kB / 1.323 GB, free: 0.6797 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.3413, allocations: 47.91 kB / 1.323 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 5.167e-05/0.3413, allocations: 4 kB / 1.323 GB, free: 0.6289 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 9.354e-05/0.3414, allocations: 27.92 kB / 1.323 GB, free: 0.6016 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 9.087e-05/0.3415, allocations: 39.81 kB / 1.323 GB, free: 0.5625 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.3415, allocations: 8 kB / 1.323 GB, free: 0.5547 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005843/0.3421, allocations: 315.4 kB / 1.324 GB, free: 252 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.385e-05/0.3421, allocations: 11.98 kB / 1.324 GB, free: 240 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 5.62e-05/0.3422, allocations: 27.86 kB / 1.324 GB, free: 212 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000552/0.3427, allocations: 215.7 kB / 1.324 GB, free: 15.99 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.3427, allocations: 0 / 1.324 GB, free: 15.99 MB / 1.029 GB Notification: Performance of FrontEnd: time 3.317e-06/0.3428, allocations: 3.938 kB / 1.324 GB, free: 15.99 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.184e-05/0.3428, allocations: 0 / 1.324 GB, free: 15.99 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.001014/0.3438, allocations: 408.9 kB / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 6.867e-05/0.3438, allocations: 11.98 kB / 1.324 GB, free: 15.54 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.762e-05/0.3439, allocations: 38.75 kB / 1.324 GB, free: 15.49 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005718/0.3445, allocations: 76.78 kB / 1.324 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002012/0.3447, allocations: 164.3 kB / 1.325 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.23e-05/0.3447, allocations: 12.31 kB / 1.325 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.971e-05/0.3448, allocations: 12.31 kB / 1.325 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004822/0.3453, allocations: 113.7 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.3453, allocations: 3.938 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.053e-05/0.3453, allocations: 4 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.3453, allocations: 0 / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005499/0.3459, allocations: 103.9 kB / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008712/0.3467, allocations: 332.7 kB / 1.325 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007102/0.3475, allocations: 154.4 kB / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002627/0.3477, allocations: 56.81 kB / 1.325 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.3477, allocations: 4.141 kB / 1.325 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/0.3478, allocations: 34.56 kB / 1.325 GB, free: 14.32 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.3478, allocations: 0 / 1.325 GB, free: 14.32 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.01952/0.3673, allocations: 2.827 MB / 1.328 GB, free: 11.4 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.351e-05/0.3673, allocations: 59.34 kB / 1.328 GB, free: 11.33 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.102e-05/0.3674, allocations: 109.8 kB / 1.328 GB, free: 11.21 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.298e-05/0.3675, allocations: 25.7 kB / 1.328 GB, free: 11.18 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.705e-05/0.3675, allocations: 92.08 kB / 1.328 GB, free: 11.09 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.774e-05/0.3676, allocations: 39.64 kB / 1.328 GB, free: 11.05 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.3678, allocations: 69.58 kB / 1.329 GB, free: 10.98 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.368, allocations: 318.8 kB / 1.329 GB, free: 10.66 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007423/0.3687, allocations: 191.8 kB / 1.329 GB, free: 10.47 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007364/0.3694, allocations: 198.9 kB / 1.329 GB, free: 10.28 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00152/0.371, allocations: 388.5 kB / 1.33 GB, free: 9.895 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.371, allocations: 0 / 1.33 GB, free: 9.895 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001757/0.3727, allocations: 481.3 kB / 1.33 GB, free: 9.418 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.3727, allocations: 4 kB / 1.33 GB, free: 9.414 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.3727, allocations: 0 / 1.33 GB, free: 9.414 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.3728, allocations: 0 / 1.33 GB, free: 9.414 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008965/0.3736, allocations: 119.7 kB / 1.33 GB, free: 9.297 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.3737, allocations: 400 / 1.33 GB, free: 9.297 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006623/0.3743, allocations: 47.94 kB / 1.33 GB, free: 9.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.497e-05/0.3744, allocations: 23.94 kB / 1.33 GB, free: 9.227 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.0001671/0.3746, allocations: 113.8 kB / 1.33 GB, free: 9.105 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.019e-05/0.3746, allocations: 4 kB / 1.33 GB, free: 9.102 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.774e-05/0.3747, allocations: 11.95 kB / 1.33 GB, free: 9.082 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.3747, allocations: 4.125 kB / 1.33 GB, free: 9.078 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.3747, allocations: 4.094 kB / 1.33 GB, free: 9.074 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3747, allocations: 11.92 kB / 1.33 GB, free: 9.062 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002489/0.3772, allocations: 1.055 MB / 1.331 GB, free: 7.898 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3772, allocations: 0 / 1.331 GB, free: 7.898 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008934/0.3781, allocations: 119.7 kB / 1.332 GB, free: 7.781 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.3781, allocations: 4 kB / 1.332 GB, free: 7.777 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.852e-05/0.3782, allocations: 19.94 kB / 1.332 GB, free: 7.758 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.3782, allocations: 0 / 1.332 GB, free: 7.758 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3782, allocations: 0 / 1.332 GB, free: 7.758 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002628/0.3808, allocations: 0.7956 MB / 1.332 GB, free: 6.945 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001641/0.381, allocations: 117 kB / 1.332 GB, free: 6.812 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.631e-05/0.381, allocations: 4 kB / 1.332 GB, free: 6.809 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007337/0.3818, allocations: 48 kB / 1.332 GB, free: 6.762 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.3819, allocations: 27.92 kB / 1.333 GB, free: 6.734 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.546e-05/0.3819, allocations: 23.94 kB / 1.333 GB, free: 6.711 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.07e-05/0.382, allocations: 79.27 kB / 1.333 GB, free: 6.633 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.382, allocations: 4 kB / 1.333 GB, free: 6.629 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0004218/0.3824, allocations: 55.94 kB / 1.333 GB, free: 6.574 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.003111/0.3855, allocations: 1.344 MB / 1.334 GB, free: 5.203 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001747/0.3873, allocations: 419.5 kB / 1.334 GB, free: 4.793 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3873, allocations: 0 / 1.334 GB, free: 4.793 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0008261/0.3881, allocations: 223.7 kB / 1.335 GB, free: 4.574 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000353/0.3884, allocations: 15.97 kB / 1.335 GB, free: 4.559 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009827/0.3983, allocations: 2.929 MB / 1.337 GB, free: 1.551 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004103/0.3987, allocations: 0.6924 MB / 1.338 GB, free: 0.832 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0005626/0.3992, allocations: 88.66 kB / 1.338 GB, free: 0.7461 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003236/0.3996, allocations: 67.3 kB / 1.338 GB, free: 0.6797 MB / 1.029 GB Notification: Performance of SimCode: time 1.723e-06/0.3996, allocations: 4 kB / 1.338 GB, free: 0.6758 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03096/0.4305, allocations: 4.599 MB / 1.343 GB, free: 12.21 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.342/8.773, allocations: 10.55 kB / 1.343 GB, free: 12.2 MB / 1.045 GB " [Timeout remaining time 291] (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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv --start-time -1.5 --stop-time 1.5 --timeout 400 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0012 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.csv","/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] "Error: Could not read variable y in file Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv. Warning: Get data of variable y from file Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv failed! Error: Could not read variable der_y in file Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv. Warning: Get data of variable der_y from file Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv failed! Error: Could not read variable der_err in file Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv. Warning: Get data of variable der_err from file Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv failed! Error: Could not read variable err in file Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv. Warning: Get data of variable err from file Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.910324295982718]