Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001731/0.001731, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001973/0.001973, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.486/1.486, allocations: 230.6 MB / 256 MB, free: 7.805 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.225/3.225, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 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.InverseXDerivative_2_Check,fileNamePrefix="Buildings_latest_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_latest_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.002731/0.002731, allocations: 66.88 kB / 1.186 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3395, allocations: 181.9 MB / 1.363 GB, free: 14.06 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002213/0.3417, allocations: 0.7828 MB / 1.364 GB, free: 13.27 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002224/0.344, allocations: 1.448 MB / 1.366 GB, free: 11.81 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.106e-05/0.344, allocations: 0 / 1.366 GB, free: 11.81 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.377e-05/0.344, allocations: 7.938 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 3.851e-05/0.3441, allocations: 3.938 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005985/0.3447, allocations: 147.4 kB / 1.366 GB, free: 11.65 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001073/0.3448, allocations: 59.83 kB / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.669e-05/0.3448, allocations: 288 / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.418e-05/0.3449, allocations: 27.91 kB / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.661e-05/0.345, allocations: 35.84 kB / 1.366 GB, free: 11.53 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.111e-05/0.345, allocations: 4 kB / 1.366 GB, free: 11.53 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004275/0.3454, allocations: 251.5 kB / 1.366 GB, free: 11.28 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.246e-05/0.3455, allocations: 11.92 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.569e-05/0.3455, allocations: 19.92 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003526/0.3458, allocations: 203.4 kB / 1.366 GB, free: 11.05 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.3458, allocations: 0 / 1.366 GB, free: 11.05 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3458, allocations: 0 / 1.366 GB, free: 11.05 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.3459, allocations: 4 kB / 1.366 GB, free: 11.05 MB / 1.061 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.0006747/0.3465, allocations: 327.5 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.3466, allocations: 12.02 kB / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.369e-05/0.3466, allocations: 34.75 kB / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004496/0.3471, allocations: 76.8 kB / 1.367 GB, free: 10.57 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.3472, allocations: 114.4 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.081e-05/0.3472, allocations: 4.375 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.301e-05/0.3472, allocations: 8.375 kB / 1.367 GB, free: 10.42 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004237/0.3477, allocations: 165.1 kB / 1.367 GB, free: 10.24 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.3477, allocations: 0 / 1.367 GB, free: 10.24 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.3477, allocations: 4 kB / 1.367 GB, free: 10.24 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.3477, allocations: 7.984 kB / 1.367 GB, free: 10.23 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004955/0.3482, allocations: 95.84 kB / 1.367 GB, free: 10.14 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006537/0.3489, allocations: 299.8 kB / 1.367 GB, free: 9.801 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006934/0.3495, allocations: 158.4 kB / 1.368 GB, free: 9.637 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002496/0.3498, allocations: 52.81 kB / 1.368 GB, free: 9.582 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.3498, allocations: 7.984 kB / 1.368 GB, free: 9.574 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.3499, allocations: 30.56 kB / 1.368 GB, free: 9.535 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.3499, allocations: 4 kB / 1.368 GB, free: 9.531 MB / 1.061 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.01804/0.3679, allocations: 2.683 MB / 1.37 GB, free: 6.789 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/0.368, allocations: 59.34 kB / 1.37 GB, free: 6.719 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.3681, allocations: 93.86 kB / 1.37 GB, free: 6.617 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 6.294e-05/0.3681, allocations: 33.64 kB / 1.37 GB, free: 6.578 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.742e-05/0.3682, allocations: 92.08 kB / 1.371 GB, free: 6.484 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 8.306e-05/0.3683, allocations: 39.69 kB / 1.371 GB, free: 6.445 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.3685, allocations: 65.58 kB / 1.371 GB, free: 6.375 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001618/0.3686, allocations: 314.8 kB / 1.371 GB, free: 6.059 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007091/0.3693, allocations: 195.8 kB / 1.371 GB, free: 5.867 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006737/0.37, allocations: 197.5 kB / 1.371 GB, free: 5.676 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001357/0.3714, allocations: 388.5 kB / 1.372 GB, free: 5.293 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3714, allocations: 0 / 1.372 GB, free: 5.293 MB / 1.061 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001614/0.373, allocations: 487.9 kB / 1.372 GB, free: 4.812 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.373, allocations: 8 kB / 1.372 GB, free: 4.805 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.373, allocations: 0 / 1.372 GB, free: 4.805 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.088e-05/0.3731, allocations: 0 / 1.372 GB, free: 4.805 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008175/0.3739, allocations: 111.7 kB / 1.372 GB, free: 4.695 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.3739, allocations: 4 kB / 1.372 GB, free: 4.691 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005883/0.3745, allocations: 47.94 kB / 1.372 GB, free: 4.645 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.847e-05/0.3745, allocations: 23.94 kB / 1.372 GB, free: 4.621 MB / 1.061 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.0001749/0.3747, allocations: 113.8 kB / 1.372 GB, free: 4.5 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.118e-05/0.3748, allocations: 7.953 kB / 1.372 GB, free: 4.492 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.366e-05/0.3749, allocations: 16.06 kB / 1.373 GB, free: 4.469 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.3749, allocations: 3.938 kB / 1.373 GB, free: 4.465 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3749, allocations: 0 / 1.373 GB, free: 4.465 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.3749, allocations: 0 / 1.373 GB, free: 4.465 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002364/0.3772, allocations: 0.9913 MB / 1.373 GB, free: 3.367 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.3772, allocations: 4 kB / 1.373 GB, free: 3.363 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008125/0.378, allocations: 107.7 kB / 1.374 GB, free: 3.258 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.3781, allocations: 0 / 1.374 GB, free: 3.258 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.657e-05/0.3781, allocations: 23.94 kB / 1.374 GB, free: 3.234 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.3781, allocations: 4 kB / 1.374 GB, free: 3.23 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3781, allocations: 0 / 1.374 GB, free: 3.23 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00244/0.3806, allocations: 0.7997 MB / 1.374 GB, free: 2.414 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001682/0.3807, allocations: 39.8 kB / 1.374 GB, free: 2.375 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.92e-05/0.3808, allocations: 8 kB / 1.374 GB, free: 2.367 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006632/0.3815, allocations: 44 kB / 1.374 GB, free: 2.324 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.769e-05/0.3816, allocations: 31.91 kB / 1.375 GB, free: 2.293 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.975e-05/0.3816, allocations: 27.94 kB / 1.375 GB, free: 2.266 MB / 1.061 GB Notification: Performance of sorting global known variables: time 4.576e-05/0.3817, allocations: 75.47 kB / 1.375 GB, free: 2.191 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3817, allocations: 0 / 1.375 GB, free: 2.191 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003895/0.382, allocations: 55.94 kB / 1.375 GB, free: 2.137 MB / 1.061 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.002862/0.3849, allocations: 1.341 MB / 1.376 GB, free: 0.7695 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001521/0.3864, allocations: 419.6 kB / 1.376 GB, free: 368 kB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 8.305e-06/0.3864, allocations: 0 / 1.376 GB, free: 368 kB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000759/0.3872, allocations: 223.7 kB / 1.377 GB, free: 144 kB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004026/0.3876, allocations: 8 kB / 1.377 GB, free: 136 kB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009047/0.3966, allocations: 2.95 MB / 1.379 GB, free: 13.11 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.077e-05/0.3967, allocations: 83.2 kB / 1.38 GB, free: 13 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0005501/0.3973, allocations: 93.69 kB / 1.38 GB, free: 12.91 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000281/0.3976, allocations: 63.3 kB / 1.38 GB, free: 12.85 MB / 1.076 GB Notification: Performance of SimCode: time 9.51e-07/0.3976, allocations: 0 / 1.38 GB, free: 12.85 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03652/0.4341, allocations: 5.338 MB / 1.385 GB, free: 7.648 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.23, allocations: 7.797 kB / 1.385 GB, free: 7.645 MB / 1.076 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv --start-time -1.5 --stop-time 1.5 --timeout 800 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0012 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv. Warning: Get data of variable y from file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv failed! Error: Could not read variable der_y in file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv. Warning: Get data of variable der_y from file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv failed! Error: Could not read variable der_err in file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv. Warning: Get data of variable der_err from file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv failed! Error: Could not read variable err in file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv. Warning: Get data of variable err from file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.043062631972134]