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.001386/0.001386, 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.001608/0.001608, allocations: 194.2 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.275/1.275, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.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.445/2.445, allocations: 437.1 MB / 0.7104 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 67.91 kB / 0.8694 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5157/0.5171, allocations: 151.6 MB / 1.017 GB, free: 2.496 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001936/0.519, allocations: 0.774 MB / 1.018 GB, free: 1.719 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001677/0.5207, allocations: 1.466 MB / 1.02 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.246e-05/0.5208, allocations: 0 / 1.02 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.783e-05/0.5208, allocations: 3.938 kB / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.787e-05/0.5209, allocations: 3.938 kB / 1.02 GB, free: 232 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004866/0.5214, allocations: 147.4 kB / 1.02 GB, free: 84 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.146e-05/0.5215, allocations: 47.91 kB / 1.02 GB, free: 36 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.414e-05/0.5215, allocations: 15.88 kB / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.919e-05/0.5216, allocations: 27.98 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.31e-05/0.5217, allocations: 31.91 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.811e-05/0.5217, allocations: 8 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004279/0.5221, allocations: 319.3 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.414e-05/0.5222, allocations: 19.86 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.315e-05/0.5222, allocations: 23.86 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003053/0.5225, allocations: 213.8 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.5225, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.082e-06/0.5225, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.5225, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 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.000597/0.5231, allocations: 399.4 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.5232, allocations: 8.031 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.51e-05/0.5232, allocations: 38.75 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004501/0.5237, allocations: 68.84 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.71e-05/0.5238, allocations: 176.2 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.352e-05/0.5238, allocations: 4.375 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.553e-05/0.5238, allocations: 8.375 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003563/0.5242, allocations: 122.9 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.5242, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.5242, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.5242, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004864/0.5247, allocations: 107.9 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005183/0.5253, allocations: 328.7 kB / 1.022 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006519/0.5259, allocations: 162.4 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002442/0.5262, allocations: 60.81 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.347e-05/0.5262, allocations: 0 / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.14e-05/0.5262, allocations: 34.56 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 9.52e-07/0.5262, allocations: 0 / 1.022 GB, free: 13.73 MB / 0.7794 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.01786/0.5441, allocations: 2.834 MB / 1.025 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.325e-05/0.5442, allocations: 59.28 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.913e-05/0.5442, allocations: 109.8 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.504e-05/0.5443, allocations: 29.7 kB / 1.025 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.422e-05/0.5443, allocations: 84.05 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.863e-05/0.5444, allocations: 47.39 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.5445, allocations: 69.58 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.177e-05/0.5446, allocations: 318.8 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006741/0.5453, allocations: 195.8 kB / 1.026 GB, free: 9.863 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006593/0.546, allocations: 192.8 kB / 1.026 GB, free: 9.676 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.5473, allocations: 386.7 kB / 1.026 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.5474, allocations: 0 / 1.026 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001533/0.5489, allocations: 481.2 kB / 1.027 GB, free: 8.82 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.5489, allocations: 9.906 kB / 1.027 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.5489, allocations: 3.938 kB / 1.027 GB, free: 8.809 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.5489, allocations: 3.984 kB / 1.027 GB, free: 8.805 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008089/0.5498, allocations: 111.7 kB / 1.027 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.5498, allocations: 0 / 1.027 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000615/0.5504, allocations: 51.94 kB / 1.027 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.022e-05/0.5505, allocations: 19.94 kB / 1.027 GB, free: 8.625 MB / 0.7794 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.000131/0.5506, allocations: 113.8 kB / 1.027 GB, free: 8.504 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-05/0.5507, allocations: 7.906 kB / 1.027 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.844e-05/0.5507, allocations: 15.95 kB / 1.027 GB, free: 8.477 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.5507, allocations: 3.938 kB / 1.027 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.5508, allocations: 0 / 1.027 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.5508, allocations: 8 kB / 1.027 GB, free: 8.465 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002113/0.5529, allocations: 1.047 MB / 1.028 GB, free: 7.309 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.5529, allocations: 0 / 1.028 GB, free: 7.309 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008078/0.5537, allocations: 111.7 kB / 1.028 GB, free: 7.199 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.5537, allocations: 4 kB / 1.028 GB, free: 7.195 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.87e-05/0.5538, allocations: 23.94 kB / 1.028 GB, free: 7.172 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.5538, allocations: 3.938 kB / 1.028 GB, free: 7.168 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.5538, allocations: 0 / 1.028 GB, free: 7.168 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002315/0.5561, allocations: 0.7917 MB / 1.029 GB, free: 6.359 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.5563, allocations: 113 kB / 1.029 GB, free: 6.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.242e-05/0.5563, allocations: 8 kB / 1.029 GB, free: 6.223 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006718/0.557, allocations: 44 kB / 1.029 GB, free: 6.18 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.476e-05/0.5571, allocations: 27.92 kB / 1.029 GB, free: 6.152 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.388e-05/0.5572, allocations: 31.92 kB / 1.029 GB, free: 6.121 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.328e-05/0.5572, allocations: 75.28 kB / 1.029 GB, free: 6.047 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5572, allocations: 0 / 1.029 GB, free: 6.047 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003657/0.5576, allocations: 56 kB / 1.029 GB, free: 5.992 MB / 0.7794 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.5602, allocations: 1.344 MB / 1.03 GB, free: 4.621 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001445/0.5617, allocations: 431.5 kB / 1.031 GB, free: 4.199 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5617, allocations: 0 / 1.031 GB, free: 4.199 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0007238/0.5624, allocations: 227.7 kB / 1.031 GB, free: 3.977 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003521/0.5628, allocations: 14.77 kB / 1.031 GB, free: 3.965 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00846/0.5713, allocations: 2.941 MB / 1.034 GB, free: 0.9492 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/0.5715, allocations: 0.6885 MB / 1.035 GB, free: 240 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0006251/0.5721, allocations: 96.61 kB / 1.035 GB, free: 144 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002553/0.5724, allocations: 63.3 kB / 1.035 GB, free: 80 kB / 0.7794 GB Notification: Performance of SimCode: time 3.3e-07/0.5724, allocations: 0 / 1.035 GB, free: 80 kB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01969/0.5921, allocations: 4.536 MB / 1.039 GB, free: 11.66 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.185/7.777, allocations: 10.03 kB / 1.039 GB, free: 11.65 MB / 0.795 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)