Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_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.005055/0.005055, allocations: 97.41 kB / 15.73 MB, free: 6.047 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.001249/0.001249, allocations: 197 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.508/1.508, allocations: 222.9 MB / 240.4 MB, free: 4.152 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002484/0.002484, allocations: 275.1 kB / 290.8 MB, free: 1.762 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.052/1.052, allocations: 178.6 MB / 0.5074 GB, free: 4.488 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003826/0.003826, allocations: 103.8 kB / 0.6943 GB, free: 3.535 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4767/0.4806, allocations: 89.14 MB / 0.7814 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001716/0.4823, allocations: 0.6086 MB / 0.782 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001966/0.4843, allocations: 1.455 MB / 0.7834 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.175e-05/0.4844, allocations: 0 / 0.7834 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.655e-05/0.4844, allocations: 0 / 0.7834 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.551e-05/0.4844, allocations: 5.469 kB / 0.7834 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004907/0.4849, allocations: 136.5 kB / 0.7835 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.27e-05/0.485, allocations: 24.92 kB / 0.7836 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.051e-05/0.4851, allocations: 3.547 kB / 0.7836 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.921e-05/0.4851, allocations: 25.56 kB / 0.7836 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.784e-05/0.4852, allocations: 25.58 kB / 0.7836 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.682e-05/0.4852, allocations: 2.688 kB / 0.7836 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004986/0.4857, allocations: 310.5 kB / 0.7839 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.276e-05/0.4858, allocations: 14.08 kB / 0.7839 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.125e-05/0.4858, allocations: 10.12 kB / 0.7839 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000344/0.4862, allocations: 192.7 kB / 0.7841 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4862, allocations: 0 / 0.7841 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.312e-06/0.4862, allocations: 0 / 0.7841 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.58e-06/0.4862, allocations: 0 / 0.7841 GB, free: 12.18 MB / 0.5606 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.0006333/0.4868, allocations: 380.4 kB / 0.7845 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.4869, allocations: 9.094 kB / 0.7845 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.785e-05/0.4869, allocations: 32 kB / 0.7845 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004683/0.4874, allocations: 66.34 kB / 0.7846 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001356/0.4875, allocations: 162.4 kB / 0.7847 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.4876, allocations: 2.453 kB / 0.7847 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.512e-05/0.4876, allocations: 6.562 kB / 0.7847 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002797/0.4879, allocations: 86.86 kB / 0.7848 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.4879, allocations: 5 kB / 0.7848 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.4879, allocations: 0.6562 kB / 0.7848 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.4879, allocations: 1.438 kB / 0.7848 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003167/0.4883, allocations: 64.91 kB / 0.7849 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002177/0.4885, allocations: 159 kB / 0.7851 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006335/0.4891, allocations: 118.4 kB / 0.7852 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001842/0.4893, allocations: 50.34 kB / 0.7852 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005065/0.4899, allocations: 151.2 kB / 0.7854 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.398e-05/0.4899, allocations: 40.62 kB / 0.7854 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=4): time 1.282e-06/0.4899, allocations: 7.938 kB / 0.7854 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5): time 0.001293/0.4912, allocations: 406.3 kB / 0.7858 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.982e-05/0.4913, allocations: 53.52 kB / 0.7858 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.645e-05/0.4914, allocations: 96.42 kB / 0.7859 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.4914, allocations: 27.02 kB / 0.786 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.677e-05/0.4914, allocations: 80.7 kB / 0.786 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.545e-05/0.4915, allocations: 23.92 kB / 0.7861 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.214e-05/0.4915, allocations: 21.88 kB / 0.7861 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.4917, allocations: 317.4 kB / 0.7864 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/0.4918, allocations: 34.27 kB / 0.7864 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001554/0.492, allocations: 39.27 kB / 0.7865 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000311/0.4923, allocations: 75.02 kB / 0.7865 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.4923, allocations: 0 / 0.7865 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003698/0.4927, allocations: 116.2 kB / 0.7866 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.4927, allocations: 9.156 kB / 0.7866 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.4927, allocations: 0 / 0.7866 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.4928, allocations: 0.9375 kB / 0.7866 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001454/0.4929, allocations: 22.02 kB / 0.7867 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.4929, allocations: 1.766 kB / 0.7867 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.657e-05/0.493, allocations: 11.61 kB / 0.7867 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.164e-05/0.493, allocations: 7.266 kB / 0.7867 GB, free: 10.08 MB / 0.5606 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 9.069e-05/0.4931, allocations: 111.8 kB / 0.7868 GB, free: 9.961 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.74e-05/0.4932, allocations: 9.078 kB / 0.7868 GB, free: 9.953 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004738/0.4937, allocations: 133 kB / 0.7869 GB, free: 9.898 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.4937, allocations: 6.812 kB / 0.7869 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4937, allocations: 0 / 0.7869 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.4937, allocations: 0.6094 kB / 0.7869 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001645/0.4939, allocations: 165.8 kB / 0.7871 GB, free: 9.699 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.4939, allocations: 8.188 kB / 0.7871 GB, free: 9.691 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.494, allocations: 26.7 kB / 0.7871 GB, free: 9.688 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.494, allocations: 1.906 kB / 0.7871 GB, free: 9.688 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.4941, allocations: 1.859 kB / 0.7871 GB, free: 9.688 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.4941, allocations: 1.125 kB / 0.7871 GB, free: 9.688 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.4941, allocations: 4 kB / 0.7871 GB, free: 9.684 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006051/0.4947, allocations: 190.3 kB / 0.7873 GB, free: 9.586 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.915e-05/0.4948, allocations: 91.31 kB / 0.7874 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.4948, allocations: 0.9688 kB / 0.7874 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.4949, allocations: 13.33 kB / 0.7874 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.708e-05/0.495, allocations: 11.83 kB / 0.7874 GB, free: 9.477 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.495, allocations: 2.859 kB / 0.7874 GB, free: 9.477 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.512e-05/0.495, allocations: 82.67 kB / 0.7875 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.495, allocations: 0 / 0.7875 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002559/0.4953, allocations: 31.08 kB / 0.7875 GB, free: 9.391 MB / 0.5606 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.0009868/0.4963, allocations: 0.751 MB / 0.7883 GB, free: 8.75 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003799/0.4967, allocations: 81.75 kB / 0.7884 GB, free: 8.738 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4967, allocations: 1.281 kB / 0.7884 GB, free: 8.738 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.4969, allocations: 49.33 kB / 0.7884 GB, free: 8.727 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001526/0.497, allocations: 2.984 kB / 0.7884 GB, free: 8.727 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/0.4991, allocations: 1.344 MB / 0.7897 GB, free: 7.582 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.4994, allocations: 0.6824 MB / 0.7904 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.691e-05/0.4995, allocations: 19.7 kB / 0.7904 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.034e-05/0.4996, allocations: 17.7 kB / 0.7904 GB, free: 6.859 MB / 0.5606 GB Notification: Performance of SimCode: time 2.9e-07/0.4996, allocations: 3.938 kB / 0.7904 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02425/0.5239, allocations: 2.071 MB / 0.7924 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.825/8.349, allocations: 15.3 kB / 0.7925 GB, free: 6.457 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)