Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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.InverseXDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",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.001257/0.001257, allocations: 108 kB / 15.61 MB, free: 152 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.001301/0.001301, allocations: 197 kB / 16.53 MB, free: 6.664 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.309/1.309, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.473/2.473, allocations: 437.1 MB / 0.7104 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001434, allocations: 75.89 kB / 0.8694 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.52/0.5214, allocations: 151.6 MB / 1.017 GB, free: 2.484 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001707/0.5232, allocations: 0.5959 MB / 1.018 GB, free: 1.883 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001608/0.5248, allocations: 1.454 MB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.968e-05/0.5248, allocations: 0 / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.114e-05/0.5249, allocations: 0 / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.738e-05/0.5249, allocations: 7.875 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004646/0.5254, allocations: 139.4 kB / 1.02 GB, free: 272 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.771e-05/0.5254, allocations: 27.92 kB / 1.02 GB, free: 244 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.963e-05/0.5255, allocations: 7.984 kB / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.491e-05/0.5255, allocations: 12 kB / 1.02 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.757e-05/0.5256, allocations: 35.88 kB / 1.02 GB, free: 188 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.482e-05/0.5256, allocations: 0 / 1.02 GB, free: 188 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004324/0.5261, allocations: 303.4 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.033e-05/0.5261, allocations: 15.97 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.511e-05/0.5261, allocations: 11.92 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002725/0.5264, allocations: 183.7 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.5264, allocations: 4 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.886e-06/0.5264, allocations: 4 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.017e-06/0.5264, allocations: 0 / 1.02 GB, free: 15.67 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004666/0.5269, allocations: 365.7 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.527, allocations: 11.97 kB / 1.021 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.306e-05/0.527, allocations: 30.75 kB / 1.021 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000444/0.5274, allocations: 68.84 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.571e-05/0.5276, allocations: 160.4 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.5276, allocations: 8.375 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.5276, allocations: 8.312 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002372/0.5278, allocations: 77.75 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.783e-06/0.5279, allocations: 0 / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.5279, allocations: 0 / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.5279, allocations: 0 / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003102/0.5282, allocations: 71.92 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001641/0.5284, allocations: 173.5 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005748/0.529, allocations: 130.5 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.5291, allocations: 40.92 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004288/0.5296, allocations: 157 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.5296, allocations: 38.5 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.353e-06/0.5296, allocations: 0 / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.001101/0.5307, allocations: 402.2 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.618e-05/0.5308, allocations: 51.41 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.568e-05/0.5308, allocations: 97.86 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.5308, allocations: 29.83 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.25e-05/0.5309, allocations: 80.14 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.754e-05/0.5309, allocations: 19.8 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.66e-05/0.531, allocations: 17.72 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.82e-05/0.531, allocations: 314.8 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000162/0.5312, allocations: 39.97 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001464/0.5314, allocations: 31.97 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003013/0.5317, allocations: 84.67 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.5317, allocations: 0 / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003677/0.532, allocations: 117.6 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.5321, allocations: 4 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.5321, allocations: 0 / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.5321, allocations: 0 / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001425/0.5322, allocations: 19.98 kB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.5323, allocations: 3.938 kB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.875e-05/0.5324, allocations: 19.97 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.709e-06/0.5324, allocations: 4 kB / 1.023 GB, free: 12.75 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 (6): * Single equations (assignments): 6 * 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 6.967e-05/0.5325, allocations: 113.8 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.5325, allocations: 7.938 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004393/0.5329, allocations: 137.3 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.5329, allocations: 0 / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.5329, allocations: 4.062 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.533, allocations: 0 / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000118/0.5331, allocations: 169.7 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.5331, allocations: 3.938 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001501/0.5332, allocations: 23.98 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.5333, allocations: 0 / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.5333, allocations: 3.984 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.5333, allocations: 0 / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.5333, allocations: 4 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005448/0.5338, allocations: 185 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.044e-05/0.5339, allocations: 89.06 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.5339, allocations: 4.062 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.5341, allocations: 11.98 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.619e-05/0.5341, allocations: 7.984 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.5341, allocations: 4 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.804e-05/0.5341, allocations: 79.28 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5341, allocations: 0 / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002243/0.5344, allocations: 31.92 kB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0008737/0.5352, allocations: 0.749 MB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003689/0.5356, allocations: 87.98 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.5356, allocations: 0 / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001675/0.5358, allocations: 51.89 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001436/0.536, allocations: 7.938 kB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.5379, allocations: 1.36 MB / 1.026 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001816/0.538, allocations: 0.6768 MB / 1.026 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001094/0.5382, allocations: 16.33 kB / 1.026 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.483e-05/0.5382, allocations: 19.42 kB / 1.026 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of SimCode: time 2.6e-07/0.5382, allocations: 0 / 1.026 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0166/0.5548, allocations: 2.014 MB / 1.028 GB, free: 6.781 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.006/7.561, allocations: 24.7 kB / 1.028 GB, free: 6.766 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)