Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.005717/0.005717, allocations: 100.1 kB / 15.73 MB, free: 6.062 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.001236/0.001237, allocations: 192.9 kB / 16.67 MB, free: 5.973 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.398/1.398, 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 10.1.1-maint.10.0.x/package.mo): time 2.638/2.638, allocations: 437 MB / 0.7105 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 63.91 kB / 1.018 GB, free: 9.824 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8588/0.8602, allocations: 151.6 MB / 1.166 GB, free: 3.742 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002313/0.8625, allocations: 0.7784 MB / 1.167 GB, free: 2.965 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002176/0.8647, allocations: 1.48 MB / 1.168 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.905e-05/0.8648, allocations: 0 / 1.168 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.062e-05/0.8649, allocations: 3.938 kB / 1.168 GB, free: 1.465 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.276e-05/0.8649, allocations: 3.938 kB / 1.168 GB, free: 1.461 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005607/0.8655, allocations: 147.5 kB / 1.169 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.94e-05/0.8656, allocations: 47.89 kB / 1.169 GB, free: 1.27 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.29e-05/0.8657, allocations: 4 kB / 1.169 GB, free: 1.266 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.719e-05/0.8658, allocations: 27.86 kB / 1.169 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.927e-05/0.8658, allocations: 39.88 kB / 1.169 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.106e-05/0.8659, allocations: 4 kB / 1.169 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004802/0.8664, allocations: 311.4 kB / 1.169 GB, free: 0.8906 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.513e-05/0.8664, allocations: 19.91 kB / 1.169 GB, free: 0.8711 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.245e-05/0.8664, allocations: 27.92 kB / 1.169 GB, free: 0.8438 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003702/0.8668, allocations: 211.1 kB / 1.169 GB, free: 0.6406 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.8668, allocations: 0 / 1.169 GB, free: 0.6406 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.363e-06/0.8668, allocations: 0 / 1.169 GB, free: 0.6406 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.8669, allocations: 0 / 1.169 GB, free: 0.6406 MB / 0.8887 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.0006869/0.8675, allocations: 406.9 kB / 1.17 GB, free: 200 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.8676, allocations: 12.86 kB / 1.17 GB, free: 188 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.067e-05/0.8676, allocations: 38.75 kB / 1.17 GB, free: 140 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004208/0.8681, allocations: 68.84 kB / 1.17 GB, free: 72 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001444/0.8682, allocations: 180.2 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.92e-05/0.8683, allocations: 8.375 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.8683, allocations: 8.359 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003623/0.8687, allocations: 107.2 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.8687, allocations: 4 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.8687, allocations: 8 kB / 1.17 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.96e-06/0.8687, allocations: 0 / 1.17 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004648/0.8692, allocations: 103.9 kB / 1.17 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006024/0.8698, allocations: 324.7 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006503/0.8705, allocations: 154.4 kB / 1.171 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002719/0.8708, allocations: 60.81 kB / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.8708, allocations: 0 / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/0.8708, allocations: 38.5 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.8708, allocations: 0 / 1.171 GB, free: 14.98 MB / 0.9044 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.01745/0.8883, allocations: 2.852 MB / 1.173 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.8884, allocations: 55.34 kB / 1.174 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.379e-05/0.8884, allocations: 105.8 kB / 1.174 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.254e-05/0.8885, allocations: 25.7 kB / 1.174 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.71e-05/0.8885, allocations: 92.03 kB / 1.174 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.571e-05/0.8886, allocations: 35.69 kB / 1.174 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001717/0.8888, allocations: 73.58 kB / 1.174 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.8889, allocations: 322.8 kB / 1.174 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006629/0.8896, allocations: 187.9 kB / 1.174 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006474/0.8902, allocations: 191.8 kB / 1.175 GB, free: 10.92 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001355/0.8916, allocations: 401.6 kB / 1.175 GB, free: 10.53 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.8916, allocations: 0 / 1.175 GB, free: 10.53 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001529/0.8932, allocations: 473.9 kB / 1.175 GB, free: 10.06 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.8932, allocations: 8 kB / 1.175 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.8932, allocations: 0 / 1.175 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.8932, allocations: 0 / 1.175 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000814/0.894, allocations: 111.7 kB / 1.175 GB, free: 9.941 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.8941, allocations: 0 / 1.175 GB, free: 9.941 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005945/0.8947, allocations: 43.94 kB / 1.175 GB, free: 9.898 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.275e-05/0.8947, allocations: 27.94 kB / 1.176 GB, free: 9.871 MB / 0.9044 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.0001486/0.8949, allocations: 121.8 kB / 1.176 GB, free: 9.742 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.768e-05/0.895, allocations: 3.953 kB / 1.176 GB, free: 9.738 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.323e-05/0.895, allocations: 15.95 kB / 1.176 GB, free: 9.719 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.895, allocations: 3.938 kB / 1.176 GB, free: 9.715 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.895, allocations: 3.938 kB / 1.176 GB, free: 9.711 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.8951, allocations: 4 kB / 1.176 GB, free: 9.707 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002202/0.8973, allocations: 1.043 MB / 1.177 GB, free: 8.555 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.8973, allocations: 0 / 1.177 GB, free: 8.555 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007903/0.8981, allocations: 111.7 kB / 1.177 GB, free: 8.445 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.8981, allocations: 0 / 1.177 GB, free: 8.445 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.05e-05/0.8982, allocations: 27.94 kB / 1.177 GB, free: 8.418 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.8982, allocations: 0 / 1.177 GB, free: 8.418 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.8982, allocations: 96 / 1.177 GB, free: 8.418 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00233/0.9005, allocations: 0.8048 MB / 1.178 GB, free: 7.598 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001552/0.9007, allocations: 117 kB / 1.178 GB, free: 7.465 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.551e-05/0.9007, allocations: 0 / 1.178 GB, free: 7.465 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006456/0.9014, allocations: 51.88 kB / 1.178 GB, free: 7.414 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.856e-05/0.9015, allocations: 31.98 kB / 1.178 GB, free: 7.383 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.716e-05/0.9016, allocations: 19.94 kB / 1.178 GB, free: 7.363 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.949e-05/0.9016, allocations: 83.27 kB / 1.178 GB, free: 7.281 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9016, allocations: 0 / 1.178 GB, free: 7.281 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003756/0.902, allocations: 52 kB / 1.178 GB, free: 7.23 MB / 0.9044 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.002625/0.9046, allocations: 1.344 MB / 1.179 GB, free: 5.859 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001422/0.906, allocations: 423.5 kB / 1.18 GB, free: 5.445 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.9061, allocations: 0 / 1.18 GB, free: 5.445 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0007228/0.9068, allocations: 223.7 kB / 1.18 GB, free: 5.227 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000354/0.9072, allocations: 15.77 kB / 1.18 GB, free: 5.215 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008399/0.9156, allocations: 2.947 MB / 1.183 GB, free: 2.191 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.9159, allocations: 0.7002 MB / 1.183 GB, free: 1.465 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0005274/0.9164, allocations: 89.08 kB / 1.184 GB, free: 1.379 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002651/0.9167, allocations: 63.3 kB / 1.184 GB, free: 1.316 MB / 0.9044 GB Notification: Performance of SimCode: time 3.1e-07/0.9167, allocations: 0 / 1.184 GB, free: 1.316 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02276/0.9395, allocations: 4.587 MB / 1.188 GB, free: 12.86 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.906/8.845, allocations: 13.52 kB / 1.188 GB, free: 12.85 MB / 0.92 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1)