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.005178/0.005178, allocations: 101.8 kB / 15.73 MB, free: 5.555 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.001233/0.001233, allocations: 194.6 kB / 16.67 MB, free: 5.484 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: 4.316 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.451/2.451, allocations: 390.2 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 69.77 kB / 0.9505 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.382/0.3834, allocations: 140.4 MB / 1.088 GB, free: 1.91 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002245/0.3857, allocations: 0.7729 MB / 1.088 GB, free: 1.137 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002156/0.3879, allocations: 1.467 MB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.964e-05/0.388, allocations: 4 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.778e-05/0.388, allocations: 3.938 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.775e-05/0.3881, allocations: 7.938 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006629/0.3888, allocations: 153.9 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001075/0.3889, allocations: 59.64 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.449e-05/0.3889, allocations: 4 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.127e-05/0.389, allocations: 27.91 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.633e-05/0.3891, allocations: 27.91 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.61e-05/0.3891, allocations: 4 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004909/0.3896, allocations: 319.3 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.965e-05/0.3897, allocations: 15.92 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.986e-05/0.3897, allocations: 27.84 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003749/0.3901, allocations: 211.7 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3901, allocations: 0 / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3901, allocations: 8 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.3902, allocations: 0 / 1.091 GB, free: 14.8 MB / 0.8575 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.0006637/0.3908, allocations: 402.9 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.3909, allocations: 16.02 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.542e-05/0.3909, allocations: 34.75 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004743/0.3914, allocations: 72.8 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.3916, allocations: 168.3 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.202e-05/0.3916, allocations: 8.375 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.991e-05/0.3916, allocations: 4.375 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003968/0.392, allocations: 121.7 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.3921, allocations: 0 / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.3921, allocations: 3.984 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.3921, allocations: 4 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005093/0.3926, allocations: 99.91 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006102/0.3932, allocations: 340.6 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007014/0.3939, allocations: 150.5 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000248/0.3942, allocations: 56.8 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.3942, allocations: 4 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.321e-05/0.3943, allocations: 34.56 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.422e-06/0.3943, allocations: 0 / 1.092 GB, free: 13.14 MB / 0.8575 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.01993/0.4142, allocations: 2.838 MB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.524e-05/0.4143, allocations: 55.34 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.4144, allocations: 105.8 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.089e-05/0.4145, allocations: 25.7 kB / 1.095 GB, free: 9.992 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.612e-05/0.4146, allocations: 96.03 kB / 1.095 GB, free: 9.895 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.662e-05/0.4147, allocations: 39.73 kB / 1.095 GB, free: 9.855 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002049/0.4149, allocations: 73.52 kB / 1.095 GB, free: 9.777 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001758/0.4151, allocations: 314.8 kB / 1.095 GB, free: 9.461 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007455/0.4158, allocations: 195.8 kB / 1.096 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007311/0.4166, allocations: 191.8 kB / 1.096 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/0.4181, allocations: 399.8 kB / 1.096 GB, free: 8.691 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4181, allocations: 0 / 1.096 GB, free: 8.691 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001711/0.4198, allocations: 473.1 kB / 1.097 GB, free: 8.223 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/0.4199, allocations: 8 kB / 1.097 GB, free: 8.215 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.4199, allocations: 0 / 1.097 GB, free: 8.215 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.4199, allocations: 0 / 1.097 GB, free: 8.215 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008777/0.4208, allocations: 107.7 kB / 1.097 GB, free: 8.109 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.4208, allocations: 0 / 1.097 GB, free: 8.109 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006562/0.4215, allocations: 55.88 kB / 1.097 GB, free: 8.055 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.884e-05/0.4215, allocations: 27.92 kB / 1.097 GB, free: 8.027 MB / 0.8575 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.0001913/0.4217, allocations: 111.8 kB / 1.097 GB, free: 7.91 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.4218, allocations: 7.953 kB / 1.097 GB, free: 7.902 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.531e-05/0.4219, allocations: 15.91 kB / 1.097 GB, free: 7.883 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.4219, allocations: 11.94 kB / 1.097 GB, free: 7.871 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.4219, allocations: 0 / 1.097 GB, free: 7.871 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.422, allocations: 0 / 1.097 GB, free: 7.871 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002437/0.4244, allocations: 1.043 MB / 1.098 GB, free: 6.723 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.4244, allocations: 0 / 1.098 GB, free: 6.723 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008628/0.4253, allocations: 115.7 kB / 1.098 GB, free: 6.609 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.694e-06/0.4253, allocations: 0 / 1.098 GB, free: 6.609 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.388e-05/0.4254, allocations: 27.86 kB / 1.098 GB, free: 6.582 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.4254, allocations: 0 / 1.098 GB, free: 6.582 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4254, allocations: 0 / 1.098 GB, free: 6.582 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002494/0.4279, allocations: 0.7879 MB / 1.099 GB, free: 5.777 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001675/0.4281, allocations: 120.9 kB / 1.099 GB, free: 5.641 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.705e-05/0.4281, allocations: 7.984 kB / 1.099 GB, free: 5.633 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007252/0.4289, allocations: 52 kB / 1.099 GB, free: 5.582 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.83e-05/0.429, allocations: 23.92 kB / 1.099 GB, free: 5.559 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.527e-05/0.429, allocations: 23.94 kB / 1.099 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.836e-05/0.4291, allocations: 87.28 kB / 1.099 GB, free: 5.449 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.21e-07/0.4291, allocations: 0 / 1.099 GB, free: 5.449 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004007/0.4295, allocations: 55.92 kB / 1.099 GB, free: 5.395 MB / 0.8575 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.002908/0.4324, allocations: 1.344 MB / 1.101 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001666/0.4341, allocations: 419.5 kB / 1.101 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/0.4341, allocations: 7.938 kB / 1.101 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0007822/0.4349, allocations: 219.7 kB / 1.101 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004644/0.4354, allocations: 13.91 kB / 1.101 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009495/0.4449, allocations: 2.944 MB / 1.104 GB, free: 368 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.4453, allocations: 0.6928 MB / 1.105 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0005964/0.4459, allocations: 92.67 kB / 1.105 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003074/0.4462, allocations: 63.3 kB / 1.105 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of SimCode: time 4.71e-07/0.4462, allocations: 0 / 1.105 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02654/0.4728, allocations: 4.571 MB / 1.109 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.06/8.533, allocations: 13.39 kB / 1.109 GB, free: 11.04 MB / 0.8731 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)