Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.00122/0.001219, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 194 kB / 16.53 MB, free: 6.391 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.331/1.331, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.296/2.296, allocations: 390.3 MB / 0.6647 GB, free: 328 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 59.91 kB / 0.8127 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6125/0.6138, allocations: 140.4 MB / 0.9497 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001836/0.6157, allocations: 0.7696 MB / 0.9505 GB, free: 8.629 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001359/0.617, allocations: 1.468 MB / 0.9519 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.126e-05/0.6171, allocations: 1.219 kB / 0.9519 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.54e-05/0.6171, allocations: 3.938 kB / 0.9519 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.532e-05/0.6172, allocations: 3.938 kB / 0.9519 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004293/0.6176, allocations: 146.2 kB / 0.9521 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.819e-05/0.6177, allocations: 47.12 kB / 0.9521 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.254e-05/0.6177, allocations: 7.297 kB / 0.9521 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.183e-05/0.6178, allocations: 35.14 kB / 0.9522 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.526e-05/0.6179, allocations: 33.62 kB / 0.9522 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.6179, allocations: 4.531 kB / 0.9522 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003796/0.6183, allocations: 323.4 kB / 0.9525 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.731e-05/0.6183, allocations: 7.406 kB / 0.9525 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.074e-05/0.6183, allocations: 32.62 kB / 0.9525 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002695/0.6186, allocations: 213.1 kB / 0.9527 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.6186, allocations: 0.8438 kB / 0.9527 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.562e-06/0.6186, allocations: 0 / 0.9527 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.6186, allocations: 1.625 kB / 0.9527 GB, free: 6.922 MB / 0.7169 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.0005268/0.6192, allocations: 401.4 kB / 0.9531 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.6192, allocations: 9 kB / 0.9531 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.743e-05/0.6192, allocations: 32.72 kB / 0.9532 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004443/0.6197, allocations: 73.75 kB / 0.9532 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.454e-05/0.6198, allocations: 178.6 kB / 0.9534 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.6198, allocations: 7.953 kB / 0.9534 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/0.6198, allocations: 8.906 kB / 0.9534 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003438/0.6202, allocations: 106 kB / 0.9535 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.6202, allocations: 0 / 0.9535 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.6202, allocations: 9.5 kB / 0.9535 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.6202, allocations: 1.312 kB / 0.9535 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000482/0.6207, allocations: 99.08 kB / 0.9536 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004554/0.6212, allocations: 332.9 kB / 0.9539 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006442/0.6218, allocations: 160.4 kB / 0.9541 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002358/0.6221, allocations: 56.06 kB / 0.9542 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.561e-05/0.6221, allocations: 1.281 kB / 0.9542 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.524e-05/0.6221, allocations: 39.91 kB / 0.9542 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.6221, allocations: 0 / 0.9542 GB, free: 5.617 MB / 0.7169 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.018/0.6401, allocations: 2.833 MB / 0.957 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.589e-05/0.6402, allocations: 56.12 kB / 0.957 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.512e-05/0.6402, allocations: 103.7 kB / 0.9571 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.919e-05/0.6403, allocations: 26.86 kB / 0.9571 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.445e-05/0.6403, allocations: 89.67 kB / 0.9572 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.211e-05/0.6404, allocations: 43.73 kB / 0.9573 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.6405, allocations: 73.27 kB / 0.9573 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.789e-05/0.6406, allocations: 317.1 kB / 0.9576 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000672/0.6412, allocations: 192.6 kB / 0.9578 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006721/0.6419, allocations: 201.3 kB / 0.958 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/0.6433, allocations: 392.5 kB / 0.9584 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.6433, allocations: 0 / 0.9584 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001485/0.6448, allocations: 477.9 kB / 0.9588 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.6448, allocations: 5.031 kB / 0.9588 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.6448, allocations: 1.312 kB / 0.9588 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.6448, allocations: 0 / 0.9588 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008237/0.6456, allocations: 121.9 kB / 0.959 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.6457, allocations: 1.156 kB / 0.959 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006248/0.6463, allocations: 41.44 kB / 0.959 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.026e-05/0.6463, allocations: 30.78 kB / 0.959 GB, free: 2.469 MB / 0.7169 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.000119/0.6465, allocations: 112.3 kB / 0.9591 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.354e-05/0.6466, allocations: 7.969 kB / 0.9591 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.885e-05/0.6466, allocations: 13.3 kB / 0.9592 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.6466, allocations: 5.375 kB / 0.9592 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.6466, allocations: 3.984 kB / 0.9592 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.6466, allocations: 0 / 0.9592 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001926/0.6486, allocations: 1.062 MB / 0.9602 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.6486, allocations: 0 / 0.9602 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007938/0.6494, allocations: 112 kB / 0.9603 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.6494, allocations: 0 / 0.9603 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.552e-05/0.6494, allocations: 26.34 kB / 0.9603 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.6495, allocations: 320 / 0.9603 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.6495, allocations: 0 / 0.9603 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002225/0.6517, allocations: 0.7896 MB / 0.9611 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.6518, allocations: 124.3 kB / 0.9612 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.108e-05/0.6519, allocations: 0.9062 kB / 0.9612 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006986/0.6526, allocations: 47.09 kB / 0.9613 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.619e-05/0.6527, allocations: 26.3 kB / 0.9613 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.948e-05/0.6528, allocations: 30.55 kB / 0.9613 GB, free: 0.6562 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.544e-05/0.6528, allocations: 78.28 kB / 0.9614 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6528, allocations: 3.938 kB / 0.9614 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003747/0.6532, allocations: 55.28 kB / 0.9615 GB, free: 0.5703 MB / 0.7169 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.002621/0.6558, allocations: 1.345 MB / 0.9628 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001464/0.6573, allocations: 423.6 kB / 0.9632 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6573, allocations: 0.7188 kB / 0.9632 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007522/0.658, allocations: 225.8 kB / 0.9634 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003774/0.6584, allocations: 12.38 kB / 0.9634 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00875/0.6672, allocations: 2.935 MB / 0.9663 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002048/0.6674, allocations: 0.6912 MB / 0.9669 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0006451/0.6681, allocations: 91 kB / 0.967 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002666/0.6683, allocations: 72.02 kB / 0.9671 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of SimCode: time 4.31e-07/0.6684, allocations: 0 / 0.9671 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02089/0.6892, allocations: 4.539 MB / 0.9715 GB, free: 9.84 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.3/7.989, allocations: 8.25 kB / 0.9715 GB, free: 9.836 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1)