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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007998/0.007998, allocations: 99.72 kB / 15.73 MB, free: 6.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001911/0.001911, allocations: 192.8 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.646/2.646, allocations: 469.4 MB / 0.7422 GB, free: 3.453 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002288/0.002288, allocations: 72.08 kB / 1.064 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.028/1.03, allocations: 159.1 MB / 1.22 GB, free: 2.238 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002207/1.032, allocations: 0.7893 MB / 1.221 GB, free: 1.449 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002053/1.034, allocations: 1.474 MB / 1.222 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.958e-05/1.034, allocations: 0 / 1.222 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.751e-05/1.034, allocations: 3.938 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.961e-05/1.034, allocations: 3.938 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005974/1.035, allocations: 147.4 kB / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 9.036e-05/1.035, allocations: 47.84 kB / 1.222 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.036e-05/1.035, allocations: 4 kB / 1.222 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.292e-05/1.035, allocations: 35.89 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.255e-05/1.035, allocations: 31.91 kB / 1.222 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.679e-05/1.035, allocations: 4 kB / 1.222 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004698/1.036, allocations: 327.3 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.343e-05/1.036, allocations: 7.938 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.185e-05/1.036, allocations: 27.91 kB / 1.223 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003341/1.036, allocations: 211.1 kB / 1.223 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/1.036, allocations: 0 / 1.223 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.643e-06/1.036, allocations: 0 / 1.223 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.529e-06/1.036, allocations: 0 / 1.223 GB, free: 15.12 MB / 0.9512 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.0006647/1.037, allocations: 406.9 kB / 1.223 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/1.037, allocations: 12.56 kB / 1.223 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.108e-05/1.037, allocations: 42.75 kB / 1.223 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004655/1.038, allocations: 72.78 kB / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/1.038, allocations: 176.2 kB / 1.223 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/1.038, allocations: 4.375 kB / 1.223 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.484e-05/1.038, allocations: 8.375 kB / 1.224 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003792/1.038, allocations: 113 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/1.038, allocations: 4 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/1.038, allocations: 4 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/1.038, allocations: 0 / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005175/1.039, allocations: 107.8 kB / 1.224 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005615/1.039, allocations: 328.7 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006627/1.04, allocations: 166.4 kB / 1.224 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002468/1.04, allocations: 52.81 kB / 1.224 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/1.04, allocations: 0 / 1.224 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/1.04, allocations: 34.56 kB / 1.224 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.093e-06/1.04, allocations: 4 kB / 1.224 GB, free: 13.45 MB / 0.9512 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.01857/1.059, allocations: 2.836 MB / 1.227 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/1.059, allocations: 55.34 kB / 1.227 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.142e-05/1.059, allocations: 105.8 kB / 1.227 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.56e-05/1.059, allocations: 25.7 kB / 1.227 GB, free: 10.31 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.694e-05/1.059, allocations: 96.03 kB / 1.227 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.651e-05/1.059, allocations: 35.69 kB / 1.227 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/1.059, allocations: 69.58 kB / 1.227 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.858e-05/1.059, allocations: 318.8 kB / 1.228 GB, free: 9.785 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006985/1.06, allocations: 191.8 kB / 1.228 GB, free: 9.598 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006649/1.061, allocations: 195.7 kB / 1.228 GB, free: 9.406 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001344/1.062, allocations: 388.5 kB / 1.228 GB, free: 9.023 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/1.062, allocations: 0 / 1.228 GB, free: 9.023 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001577/1.064, allocations: 481.3 kB / 1.229 GB, free: 8.547 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/1.064, allocations: 4 kB / 1.229 GB, free: 8.543 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/1.064, allocations: 0 / 1.229 GB, free: 8.543 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/1.064, allocations: 3.984 kB / 1.229 GB, free: 8.539 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008579/1.065, allocations: 119.7 kB / 1.229 GB, free: 8.422 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/1.065, allocations: 0 / 1.229 GB, free: 8.422 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006288/1.065, allocations: 39.94 kB / 1.229 GB, free: 8.383 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.707e-05/1.065, allocations: 27.94 kB / 1.229 GB, free: 8.355 MB / 0.9512 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.0001547/1.066, allocations: 121.8 kB / 1.229 GB, free: 8.227 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.849e-05/1.066, allocations: 7.953 kB / 1.229 GB, free: 8.219 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.414e-05/1.066, allocations: 12.05 kB / 1.229 GB, free: 8.195 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/1.066, allocations: 7.875 kB / 1.229 GB, free: 8.188 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/1.066, allocations: 3.938 kB / 1.229 GB, free: 8.184 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/1.066, allocations: 0 / 1.229 GB, free: 8.184 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002247/1.068, allocations: 1.047 MB / 1.23 GB, free: 7.031 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/1.068, allocations: 0 / 1.23 GB, free: 7.031 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008453/1.069, allocations: 111.7 kB / 1.23 GB, free: 6.922 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/1.069, allocations: 0 / 1.23 GB, free: 6.922 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.481e-05/1.069, allocations: 27.94 kB / 1.23 GB, free: 6.895 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/1.069, allocations: 0 / 1.23 GB, free: 6.895 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/1.069, allocations: 1.016 kB / 1.23 GB, free: 6.895 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002436/1.071, allocations: 0.8013 MB / 1.231 GB, free: 6.078 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001575/1.072, allocations: 120.9 kB / 1.231 GB, free: 5.941 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.872e-05/1.072, allocations: 0 / 1.231 GB, free: 5.941 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006732/1.072, allocations: 48 kB / 1.231 GB, free: 5.895 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.15e-05/1.072, allocations: 31.92 kB / 1.231 GB, free: 5.863 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.248e-05/1.073, allocations: 23.92 kB / 1.231 GB, free: 5.84 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.306e-05/1.073, allocations: 79.47 kB / 1.231 GB, free: 5.762 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/1.073, allocations: 0 / 1.231 GB, free: 5.762 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003884/1.073, allocations: 52 kB / 1.232 GB, free: 5.711 MB / 0.9512 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.002722/1.076, allocations: 1.348 MB / 1.233 GB, free: 4.336 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001487/1.077, allocations: 423.6 kB / 1.233 GB, free: 3.922 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/1.077, allocations: 0 / 1.233 GB, free: 3.922 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0007403/1.078, allocations: 227.7 kB / 1.233 GB, free: 3.699 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003784/1.078, allocations: 8 kB / 1.233 GB, free: 3.691 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009006/1.087, allocations: 2.953 MB / 1.236 GB, free: 0.6641 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003757/1.088, allocations: 0.6963 MB / 1.237 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.000546/1.088, allocations: 88.66 kB / 1.237 GB, free: 15.86 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00029/1.089, allocations: 67.3 kB / 1.237 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of SimCode: time 5.81e-07/1.089, allocations: 0 / 1.237 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02372/1.112, allocations: 4.584 MB / 1.242 GB, free: 11.34 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.697/8.809, allocations: 15.98 kB / 1.242 GB, free: 11.33 MB / 0.9669 GB (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 50 --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)