Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.InverseXDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_9_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.007386/0.007386, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001882/0.001882, allocations: 195.8 kB / 16.68 MB, free: 5.934 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.344 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.374/2.374, allocations: 390.3 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 64.17 kB / 0.9504 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2596, allocations: 140.4 MB / 1.088 GB, free: 1.953 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001638/0.2613, allocations: 0.596 MB / 1.088 GB, free: 1.359 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001834/0.2631, allocations: 1.452 MB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.056e-05/0.2632, allocations: 4 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.123e-05/0.2632, allocations: 4 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.711e-05/0.2632, allocations: 0 / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005237/0.2638, allocations: 135.4 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.515e-05/0.2638, allocations: 23.98 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.749e-05/0.2639, allocations: 8 kB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.255e-05/0.2639, allocations: 19.97 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.064e-05/0.264, allocations: 31.89 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.381e-05/0.264, allocations: 0 / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004441/0.2645, allocations: 319.3 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.83e-05/0.2645, allocations: 7.984 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.693e-05/0.2645, allocations: 11.92 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003176/0.2649, allocations: 187.8 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2649, allocations: 0 / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2649, allocations: 4 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.464e-06/0.2649, allocations: 0 / 1.09 GB, free: 15.15 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005085/0.2654, allocations: 371 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.2655, allocations: 8.031 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.91e-05/0.2655, allocations: 38.75 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004723/0.266, allocations: 72.8 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001046/0.2661, allocations: 160.4 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.2661, allocations: 4.375 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.393e-05/0.2662, allocations: 384 / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002668/0.2664, allocations: 81.75 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.2664, allocations: 3.938 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.2665, allocations: 0 / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.148e-06/0.2665, allocations: 4 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003128/0.2668, allocations: 59.94 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002454/0.267, allocations: 165.7 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006215/0.2677, allocations: 122.6 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001722/0.2679, allocations: 40.92 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004628/0.2683, allocations: 149 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.2684, allocations: 54.42 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 2.645e-06/0.2684, allocations: 3.984 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.001177/0.2696, allocations: 406.1 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/0.2696, allocations: 51.41 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.252e-05/0.2697, allocations: 93.86 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.2697, allocations: 25.7 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.976e-05/0.2697, allocations: 84.14 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.395e-05/0.2698, allocations: 23.91 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.631e-05/0.2698, allocations: 21.72 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000174/0.27, allocations: 310.8 kB / 1.093 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001737/0.2702, allocations: 39.95 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001602/0.2704, allocations: 35.97 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003153/0.2707, allocations: 80.8 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.2707, allocations: 0 / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004256/0.2711, allocations: 117.5 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.2711, allocations: 7.938 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.2712, allocations: 0 / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.2712, allocations: 0 / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.2713, allocations: 20.23 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.2713, allocations: 0 / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.2715, allocations: 23.98 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.2715, allocations: 7.984 kB / 1.093 GB, free: 12.22 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 (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 8.065e-05/0.2716, allocations: 105.8 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.1e-05/0.2716, allocations: 7.938 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004713/0.2721, allocations: 141.1 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.2721, allocations: 0 / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.2721, allocations: 0 / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.257e-06/0.2721, allocations: 0 / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001881/0.2723, allocations: 169.6 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2723, allocations: 3.938 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001627/0.2725, allocations: 19.98 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.2725, allocations: 0 / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.2725, allocations: 4 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.118e-05/0.2725, allocations: 11.98 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2725, allocations: 0 / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005975/0.2731, allocations: 180.9 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.227e-05/0.2732, allocations: 89.06 kB / 1.094 GB, free: 11.4 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.962e-05/0.2732, allocations: 0 / 1.094 GB, free: 11.4 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.2734, allocations: 20.05 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.373e-05/0.2734, allocations: 7.984 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.2734, allocations: 4 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.069e-05/0.2735, allocations: 75.28 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2735, allocations: 0 / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002416/0.2737, allocations: 35.86 kB / 1.094 GB, free: 11.26 MB / 0.8575 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.0009255/0.2746, allocations: 0.7567 MB / 1.094 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004161/0.2751, allocations: 88.17 kB / 1.094 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.2751, allocations: 0 / 1.094 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.2753, allocations: 43.91 kB / 1.095 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000158/0.2754, allocations: 11.98 kB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002091/0.2775, allocations: 1.352 MB / 1.096 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.2778, allocations: 0.6807 MB / 1.097 GB, free: 8.188 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.384e-05/0.2779, allocations: 16 kB / 1.097 GB, free: 8.172 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.962e-05/0.278, allocations: 19.36 kB / 1.097 GB, free: 8.152 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.278, allocations: 0 / 1.097 GB, free: 8.152 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01919/0.2972, allocations: 2.053 MB / 1.099 GB, free: 6.234 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.399/8.697, allocations: 9.969 kB / 1.099 GB, free: 6.227 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)